]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
ALSA: usb-audio: Add mute TLV for playback volumes on C-Media devices
authorTakashi Iwai <tiwai@suse.de>
Wed, 16 Aug 2017 12:18:37 +0000 (14:18 +0200)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Tue, 19 Sep 2017 09:05:21 +0000 (11:05 +0200)
commitd6912f0e5c9811a55cd1e94f8e024f1eb74184d7
tree041e63e9df076db92abe439acb3cfbe5e621f086
parent04b08ab2172e6eec8bb450f8538211223b191f1f
ALSA: usb-audio: Add mute TLV for playback volumes on C-Media devices

BugLink: http://bugs.launchpad.net/bugs/1713729
commit 0f174b3525a43bd51f9397394763925e0ebe7bc7 upstream.

C-Media devices (at least some models) mute the playback stream when
volumes are set to the minimum value.  But this isn't informed via TLV
and the user-space, typically PulseAudio, gets confused as if it's
still played in a low volume.

This patch adds the new flag, min_mute, to struct usb_mixer_elem_info
for indicating that the mixer element is with the minimum-mute volume.
This flag is set for known C-Media devices in
snd_usb_mixer_fu_apply_quirk() in turn.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=196669
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
sound/usb/mixer.c
sound/usb/mixer.h
sound/usb/mixer_quirks.c