Re: [PATCH] ALSA: core: Fix control device release issue
2 Jun
2020
2 Jun
'20
2:24 p.m.
We use snd_pcm_add_usr_ctls() in component's .pcm_new(), unfortunately snd_soc_dapm_add_routes() meets error during adding card->dapm_routes/of_dapm_routes, it will goto probe_end to call soc_cleanup_card_resources().
The commit dc82e52492f6 ("ALSA: core: Assure control device to be registered at last") will make pcm device release is prior to control device release, but the control device needs to use pcm pointor, which is already freed by pcm device release.
I suggest to improve this change description.
Regards, Markus
1664
Age (days ago)
1664
Last active (days ago)
0 comments
1 participants
participants (1)
-
Markus Elfring