ALSA: usb-audio: Add minimal-mute notion in dB mapping table
authorTakashi Iwai <tiwai@suse.de>
Tue, 16 Nov 2021 06:54:14 +0000 (07:54 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 16 Nov 2021 06:55:15 +0000 (07:55 +0100)
commit85b741c1cb6854478fd1aa13ac231e2c1baf4c4b
tree55635183e461f3699c28b1d3c6450c3c62b9cbc8
parentfd23116d7b8dffa05f42a857eee6ee9cce238d24
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>
sound/usb/mixer.c
sound/usb/mixer_maps.c