[pulseaudio-discuss] [PATCH] alsa-mixer: recognize Dock headphone jack

Sjoerd Simons sjoerd at luon.net
Mon Sep 1 11:38:00 PDT 2014


On Mon, 2014-09-01 at 10:34 +0800, Raymond Yau wrote:
> >
> > Recognize the Dock headphone jack in the same way the normal & front
> > headphone jacks are detected.
> > ---
> >  src/modules/alsa/mixer/paths/analog-output-headphones.conf | 8 ++++++++
> >  src/modules/alsa/mixer/paths/analog-output-speaker.conf    | 4 ++++
> >  2 files changed, 12 insertions(+)
> >
> > diff --git a/src/modules/alsa/mixer/paths/analog-output-headphones.conf
> b/src/modules/alsa/mixer/paths/analog-output-headphones.conf
> > index 89d794f..199b2c5 100644
> > --- a/src/modules/alsa/mixer/paths/analog-output-headphones.conf
> > +++ b/src/modules/alsa/mixer/paths/analog-output-headphones.conf
> > @@ -25,6 +25,14 @@ description-key = analog-output-headphones
> >  [Properties]
> >  device.icon_name = audio-headphones
> >
> > +[Jack Dock Headphone]
> > +required-any = any
> 
> As you assume dock headphone and headphone share the same headphone volume
> control

The do on my machine indeed. For reference i've uploaded my alsa-info
into:
http://www.alsa-project.org/db/?f=5a1c208208ff33a2231d2d03d5bea5ec452dc24d

> Do you mean the current alsa driver support surround 40 for notebook with
> dock headphone is incorrect ?

I don't really understand this question sorry.

> > +
> > +[Jack Dock Headphone Phantom]
> > +required-any = any
> > +state.plugged = unknown
> > +state.unplugged = unknown
> > +
> 
> Any specific reason to add phantom Jack ?

Just following what all other jacks seem to do.. If it makes sense for
the front jack why not for the dock ? :) (Honestly i don't know)

> >  [Jack Front Headphone]
> >  required-any = any
> >
> > diff --git a/src/modules/alsa/mixer/paths/analog-output-speaker.conf
> b/src/modules/alsa/mixer/paths/analog-output-speaker.conf
> > index d79fad1..f708e61 100644
> > --- a/src/modules/alsa/mixer/paths/analog-output-speaker.conf
> > +++ b/src/modules/alsa/mixer/paths/analog-output-speaker.conf
> > @@ -29,6 +29,10 @@ device.icon_name = audio-speakers
> >  state.plugged = no
> >  state.unplugged = unknown
> >
> > +[Jack Dock Headphone]
> > +state.plugged = no
> > +state.unplugged = unknown
> > +
> >  [Jack Front Headphone]
> >  state.plugged = no
> >  state.unplugged = unknown
> > --
> _______________________________________________
> pulseaudio-discuss mailing list
> pulseaudio-discuss at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss




More information about the pulseaudio-discuss mailing list