diff options
| author | Ranjani Sridharan <[email protected]> | 2019-06-26 00:04:50 -0700 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2019-07-22 13:09:25 +0100 |
| commit | ef9bec27485fefb6b93168fea73fda0dc9638046 (patch) | |
| tree | 49de86c5bcbafb400dd0ca46605a89b1f85c0ca8 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | 5f9e832c137075045d15cd6899ab0505cfb2ca4b (diff) | |
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 <[email protected]>
Signed-off-by: Ranjani Sridharan <[email protected]>
Reviewed-by: Takashi Iwai <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions