Just in case, clear stream interrupts before enabling them.

This commit is contained in:
Alexander Motin 2012-01-31 12:57:21 +00:00
parent e01a4776d5
commit c6c4eaa848

View File

@ -1921,6 +1921,8 @@ hdac_stream_start(device_t dev, device_t child,
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;