svn commit: r230807 - head/sys/dev/sound/pci/hda
Alexander Motin
mav at FreeBSD.org
Tue Jan 31 12:57:22 UTC 2012
Author: mav
Date: Tue Jan 31 12:57:21 2012
New Revision: 230807
URL: http://svn.freebsd.org/changeset/base/230807
Log:
Just in case, clear stream interrupts before enabling them.
Modified:
head/sys/dev/sound/pci/hda/hdac.c
Modified: head/sys/dev/sound/pci/hda/hdac.c
==============================================================================
--- head/sys/dev/sound/pci/hda/hdac.c Tue Jan 31 11:00:33 2012 (r230806)
+++ head/sys/dev/sound/pci/hda/hdac.c Tue Jan 31 12:57:21 2012 (r230807)
@@ -1921,6 +1921,8 @@ hdac_stream_start(device_t dev, device_t
ctl |= 1 << ss;
HDAC_WRITE_4(&sc->mem, HDAC_INTCTL, ctl);
+ HDAC_WRITE_1(&sc->mem, off + HDAC_SDSTS,
+ HDAC_SDSTS_DESE | HDAC_SDSTS_FIFOE | HDAC_SDSTS_BCIS);
ctl = HDAC_READ_1(&sc->mem, off + HDAC_SDCTL0);
ctl |= HDAC_SDCTL_IOCE | HDAC_SDCTL_FEIE | HDAC_SDCTL_DEIE |
HDAC_SDCTL_RUN;
More information about the svn-src-all
mailing list