[alsa-devel] [PATCH] ALSA: usb - Don't create "Speaker" mixer controls on headphones and headsets

Takashi Iwai tiwai at suse.de
Thu Nov 29 14:00:39 CET 2012


At Mon, 26 Nov 2012 11:06:41 +0100,
Clemens Ladisch wrote:
> 
> Takashi Iwai wrote:
> > David Henningsson wrote:
> >> 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 at canonical.com>
> >> ---
> >>  sound/usb/mixer.c |   30 ++++++++++++++++++++++++++++++
> >>  1 file changed, 30 insertions(+)
> >>
> >> I tried to find a better way of doing this using the existing quirk or
> >> map infrastructure but it didn't seem to fit, so added a new
> >> explicit check.
> >
> > Hrm, indeed it's pretty hackish although it'd work heuristically.
> 
> This is for devices that have explicitly marked their output
> terminal as speakers, so I don't see any method to make this less
> hackish.

OK, I merged it now.


thanks,

Takashi


More information about the Alsa-devel mailing list