Revert "ALSA: hda: Fix page fault in snd_hda_codec_shutdown()"
authorTakashi Iwai <tiwai@suse.de>
Fri, 15 Jul 2022 18:29:03 +0000 (20:29 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 15 Jul 2022 18:29:40 +0000 (20:29 +0200)
commit53f07e9b010b966017e32be1ca1bbcbcc4cee73d
tree0580ce85def6803a572ddf053be7432c66325181
parentd59d2277febbad93e42137a50673dd1c16199813
Revert "ALSA: hda: Fix page fault in snd_hda_codec_shutdown()"

This reverts commit 980b3a8790b402e959a6d773b38b771019682be1.

The commit didn't consider the fact that ASoC hdac-hda driver
initializes the HD-audio stuff without calling
snd_hda_codec_device_init().  Hence this caused a regression leading
to Oops.

Revert the commit to restore the behavior.

Fixes: 980b3a8790b4 ("ALSA: hda: Fix page fault in snd_hda_codec_shutdown()")
Link: https://lore.kernel.org/r/3c40df55-3aee-1e08-493b-7b30cd84dc00@linux.intel.com
Link: https://lore.kernel.org/r/20220715182903.19594-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c