mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-18 22:06:49 +07:00
ef9bec2748
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> |
||
---|---|---|
.. | ||
apl.c | ||
bdw.c | ||
byt.c | ||
cnl.c | ||
hda-bus.c | ||
hda-codec.c | ||
hda-ctrl.c | ||
hda-dai.c | ||
hda-dsp.c | ||
hda-ipc.c | ||
hda-loader.c | ||
hda-pcm.c | ||
hda-stream.c | ||
hda-trace.c | ||
hda.c | ||
hda.h | ||
intel-ipc.c | ||
Kconfig | ||
Makefile | ||
shim.h |