ALSA: hda: cs35l41: Add read-only ALSA control for forced mute
authorStefan Binding <sbinding@opensource.cirrus.com>
Thu, 21 Sep 2023 16:28:49 +0000 (17:28 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 22 Sep 2023 08:47:50 +0000 (10:47 +0200)
commit4c870513fbb02b842408b840cf68ea8fe09ed82e
treec8249cdab307c4eb0294b3b3dae62c41c27f10ad
parent447106e92a0c86c332d40710436f38f64c322cd6
ALSA: hda: cs35l41: Add read-only ALSA control for forced mute

When the CS35L41 amp is requested to mute using the ACPI
notification mechanism, userspace is not notified that the amp
is muted. To allow userspace to know about the mute, add an
ALSA control which tracks the forced mute override.
This control does not track the overall mute state of the amp,
since the amp is only unmuted during playback anyway, instead
it tracks the mute override request from the ACPI notification.

Signed-off-by: Stefan Binding <sbinding@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20230921162849.1988124-5-sbinding@opensource.cirrus.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/cs35l41_hda.c