Skip to content

Commit 1711072

Browse files
crojewsk-intelbroonie
authored andcommitted
ASoC: Intel: Skylake: Fix driver hang during shutdown
AudioDSP cores and HDAudio links need to be turned off on shutdown to ensure no communication or data transfer occurs during the procedure. Fixes: c5a76a2 ("ASoC: Intel: Skylake: Add shutdown callback") Signed-off-by: Cezary Rojewski <[email protected]> Tested-by: Lukasz Majczak <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 4ac587f commit 1711072

File tree

1 file changed

+4
-1
lines changed
  • sound/soc/intel/skylake

1 file changed

+4
-1
lines changed

sound/soc/intel/skylake/skl.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1107,7 +1107,10 @@ static void skl_shutdown(struct pci_dev *pci)
11071107
if (!skl->init_done)
11081108
return;
11091109

1110-
snd_hdac_stop_streams_and_chip(bus);
1110+
snd_hdac_stop_streams(bus);
1111+
snd_hdac_ext_bus_link_power_down_all(bus);
1112+
skl_dsp_sleep(skl->dsp);
1113+
11111114
list_for_each_entry(s, &bus->stream_list, list) {
11121115
stream = stream_to_hdac_ext_stream(s);
11131116
snd_hdac_ext_stream_decouple(bus, stream, false);

0 commit comments

Comments
 (0)