ALSA: usb - Don't create "Speaker" mixer controls on headphones and headsets
authorDavid Henningsson <david.henningsson@canonical.com>
Fri, 23 Nov 2012 12:48:55 +0000 (13:48 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 29 Nov 2012 12:59:47 +0000 (13:59 +0100)
commit9b4ef97757953c6071563b7cbfc689e3dd771603
tree26e101a5305719041a09d5e3e96ebd79af845144
parentca10a7ebdff1c862ca1ef1d7bd2c6810e3c87e17
ALSA: usb - Don't create "Speaker" mixer controls on headphones and headsets

A lot of headsets/headphones have a "Speaker" mixer control. This confuses
PulseAudio to think it is a speaker instead of a headphone/headset.
Therfore, we rename it to "Headphone".

We determine if something is a headphone similar to how udev determines
form factor (see 78-sound-card.rules).

BugLink: https://bugs.launchpad.net/bugs/1082357
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/mixer.c