aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-06-16 14:40:47 +0200
committerTakashi Iwai <tiwai@suse.de>2020-06-16 14:40:47 +0200
commit6ae8cdb38eb967f26a2c00c8b4da4263c0c73f54 (patch)
treed8b7d150e406fe7b2fb386ce8bc6503b43fb89ae
parent8241946f5082d5b03c4ec109434ea8a7a43d02cb (diff)
downloadhda-emu-6ae8cdb38eb967f26a2c00c8b4da4263c0c73f54.tar.gz
Fix the build with 5.8 kernel
snd_hda_queue_unsol_event() got dropped. Use the direct call of snd_hdac_bus_queue_event() as a quick fix. Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--hda-emu.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/hda-emu.c b/hda-emu.c
index 0fdaf38..6d0f36e 100644
--- a/hda-emu.c
+++ b/hda-emu.c
@@ -520,6 +520,7 @@ void hda_test_pm_reinit(void)
/*
* unsol even handling
*/
+extern void snd_hdac_bus_queue_event(struct hdac_bus *bus, u32 res, u32 res_ex);
static void issue_unsol(int caddr, int res)
{
@@ -541,7 +542,11 @@ static void issue_unsol(int caddr, int res)
else
res = (res & 0x3f) << 26;
+#if 0 // old API
snd_hda_queue_unsol_event(bus, res, caddr);
+#else
+ snd_hdac_bus_queue_event(&bus->core, res, caddr);
+#endif
}
#ifdef CONFIG_SND_HDA_RECONFIG