WSL2-Linux-Kernel/sound/pci/hda
Ranjani Sridharan ef9bec2748
ASoC: SOF: Intel: hda: Make hdac_device device-managed
snd_hdac_ext_bus_device_exit() has been recently modified
to no longer free the hdac device. SOF allocates memory for
hdac_device and hda_hda_priv with kzalloc. Make them
device-managed instead so that they will be freed when the
SOF driver is unloaded.

Because of the above change, hda_codec is device-managed and
it will be freed when the ASoC device is removed. Freeing
the codec in snd_hda_codec_dev_release() leads to kernel
panic while unloading and reloading the ASoC driver. So,
avoid freeing the hda_codec for ASoC driver. This is done in
the same patch to avoid bisect failure.

Signed-off-by: Libin Yang <libin.yang@intel.com>
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20190626070450.7229-1-ranjani.sridharan@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2019-07-22 13:09:25 +01:00
..
Kconfig
Makefile
ca0132_regs.h
hda_auto_parser.c
hda_auto_parser.h
hda_beep.c
hda_beep.h
hda_bind.c
hda_codec.c ASoC: SOF: Intel: hda: Make hdac_device device-managed 2019-07-22 13:09:25 +01:00
hda_controller.c
hda_controller.h
hda_controller_trace.h
hda_eld.c
hda_generic.c
hda_generic.h
hda_hwdep.c
hda_intel.c
hda_intel.h
hda_intel_trace.h
hda_jack.c
hda_jack.h
hda_local.h
hda_proc.c
hda_sysfs.c
hda_tegra.c
hp_x360_helper.c
patch_analog.c
patch_ca0110.c
patch_ca0132.c
patch_cirrus.c
patch_cmedia.c
patch_conexant.c
patch_hdmi.c ALSA: hda - Don't resume forcibly i915 HDMI/DP codec 2019-07-16 22:46:13 +02:00
patch_realtek.c ALSA: hda/realtek: apply ALC891 headset fixup to one Dell machine 2019-07-16 09:34:57 +02:00
patch_si3054.c
patch_sigmatel.c
patch_via.c
thinkpad_helper.c