git: 406e959d07c7 - main - rk_i2s: change interrupt type from MISC to AV (audio/video)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 28 Jan 2024 11:37:12 UTC
The branch main has been updated by avg:
URL: https://cgit.FreeBSD.org/src/commit/?id=406e959d07c78521fb755d94dc784d377f302cfe
commit 406e959d07c78521fb755d94dc784d377f302cfe
Author: Andriy Gapon <avg@FreeBSD.org>
AuthorDate: 2021-09-24 17:06:49 +0000
Commit: Andriy Gapon <avg@FreeBSD.org>
CommitDate: 2024-01-28 11:36:19 +0000
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.
---
sys/arm64/rockchip/rk_i2s.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/arm64/rockchip/rk_i2s.c b/sys/arm64/rockchip/rk_i2s.c
index 6d3db56919d7..08fbbd7915bf 100644
--- a/sys/arm64/rockchip/rk_i2s.c
+++ b/sys/arm64/rockchip/rk_i2s.c
@@ -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);