Re: [PATCH 08/28] ALSA: control: Add kcontrol callbacks for lock/unlock

From: Takashi Iwai

Date: Tue Sep 29 2026 - 06:01:52 EST


On Sun, 20 Sep 2026 06:53:47 +0200,
James Calligeros wrote:
>
> From: Hector Martin <marcan@xxxxxxxxx>
>
> This allows drivers to implement policy around locking/unlocking
> controls, such as enforcing that a group of controls may only be locked
> by the same process/file, and taking actions when the controls
> lock/unlock (such as granting special access on lock and resetting
> values on unlock).
>
> This is, in particular, useful to implement volume safety controls, such
> that only a particular process (that locks controls and completes a
> handshake) may increase volumes above a given safe limit. It also allows
> the volume to be automatically lowered if that process dies (which will
> trigger an implicit unlock).
>
> Signed-off-by: Hector Martin <marcan@xxxxxxxxx>
> Signed-off-by: James Calligeros <jcalligeros99@xxxxxxxxx>

This doesn't sound like a good approach to me, and this looks rather
irrelevant with the purpose of the series.


thanks,

Takashi