rk_i2s: change interrupt type from MISC to AV (audio/video)

This gives a higher priority to the interrupt handling thread.
We need it because its work (filling the hardware FIFO) is time sensitive.
This commit is contained in:
Andriy Gapon 2021-09-24 20:06:49 +03:00
parent 408a9efd75
commit 406e959d07

View file

@ -544,7 +544,7 @@ rk_i2s_dai_setup_intr(device_t dev, driver_intr_t intr_handler, void *intr_arg)
struct rk_i2s_softc *sc = device_get_softc(dev);
if (bus_setup_intr(dev, sc->res[1],
INTR_TYPE_MISC | INTR_MPSAFE, NULL, intr_handler, intr_arg,
INTR_TYPE_AV | INTR_MPSAFE, NULL, intr_handler, intr_arg,
&sc->intrhand)) {
device_printf(dev, "cannot setup interrupt handler\n");
return (ENXIO);