[alsa-devel] [RFC 2/4] alsa: add locked variant for snd_ctl_remove_id
Takashi Iwai
tiwai at suse.de
Tue Feb 16 15:13:25 CET 2016
On Tue, 16 Feb 2016 14:54:57 +0100,
Vaibhav Agarwal wrote:
>
> +Takashi
>
> On 15 February 2016 at 19:32, Mark Brown <broonie at kernel.org> wrote:
> > On Mon, Feb 15, 2016 at 05:49:30PM +0530, Vaibhav Agarwal wrote:
> >> While removing kcontrols due to dynamic dai_link/codec removal,
> >> mutex/semaphore for soc-card/sound card is already acquired.
> >> Thus, added lock already acquired variant for ctl_remove_id.
> >
> > Please use subject lines matching the style for the subsystem and
> > remember to CC maintainers on patch submission.
> Sure, will follow the convention for subject lines as well.
I prefer reducing snd_ctl_remove_id() as well. Just wrap the call of
the unlocked one with down/up_write().
Takashi
More information about the Alsa-devel
mailing list