aboutsummaryrefslogtreecommitdiffstats
path: root/sound/usb/mixer_maps.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2021-11-16 07:54:14 +0100
committerTakashi Iwai <tiwai@suse.de>2021-11-16 07:55:15 +0100
commit85b741c1cb6854478fd1aa13ac231e2c1baf4c4b (patch)
tree55635183e461f3699c28b1d3c6450c3c62b9cbc8 /sound/usb/mixer_maps.c
parentALSA: usb-audio: Use int for dB map values (diff)
downloadlinux-dev-85b741c1cb6854478fd1aa13ac231e2c1baf4c4b.tar.xz
linux-dev-85b741c1cb6854478fd1aa13ac231e2c1baf4c4b.zip
ALSA: usb-audio: Add minimal-mute notion in dB mapping table
Some devices do mute the volume at the minimal volume, and for such devices, we need to set SNDRV_CTL_TLVT_DB_MINMAX_MUTE to the TLV information. It corresponds to setting usb_mixer_elem_info.min_mute flag in the USB-audio driver. This patch adds a new field min_mute in usbmix_dB_map so that the mixer map entry can pass the flag. Link: https://lore.kernel.org/r/20211116065415.11159-3-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/mixer_maps.c')
-rw-r--r--sound/usb/mixer_maps.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/usb/mixer_maps.c b/sound/usb/mixer_maps.c
index 92c06b1bb979..9d71c569b148 100644
--- a/sound/usb/mixer_maps.c
+++ b/sound/usb/mixer_maps.c
@@ -8,6 +8,7 @@
struct usbmix_dB_map {
int min;
int max;
+ bool min_mute;
};
struct usbmix_name_map {