[pulseaudio-discuss] [PATCH] alsa-mixer: Mark "Line HP Swap" as required-any

Tanu Kaskinen tanu.kaskinen at linux.intel.com
Mon Sep 8 01:27:21 PDT 2014


On Mon, 2014-09-08 at 01:20 +0200, David Henningsson wrote:
> Acked.

Thanks, pushed.

> On 2014-09-07 14:20, Tanu Kaskinen wrote:
> > In the (theoretical) case that no other elements exists but
> > "Line HP Swap", the presence of that element signals that there are
> > headphone and line-out outputs, otherwise there would be nothing to
> > swap.
> > ---
> >   src/modules/alsa/mixer/paths/analog-output-headphones.conf | 1 +
> >   src/modules/alsa/mixer/paths/analog-output-lineout.conf    | 1 +
> >   2 files changed, 2 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..5222c23 100644
> > --- a/src/modules/alsa/mixer/paths/analog-output-headphones.conf
> > +++ b/src/modules/alsa/mixer/paths/analog-output-headphones.conf
> > @@ -77,6 +77,7 @@ override-map.2 = all-left,all-right
> >
> >   [Element Line HP Swap]
> >   switch = on
> > +required-any = any
> >
> >   ; This profile path is intended to control the first headphones, not
> >   ; the second headphones. But it should not hurt if we leave the second
> > diff --git a/src/modules/alsa/mixer/paths/analog-output-lineout.conf b/src/modules/alsa/mixer/paths/analog-output-lineout.conf
> > index d5e24b1..40af699 100644
> > --- a/src/modules/alsa/mixer/paths/analog-output-lineout.conf
> > +++ b/src/modules/alsa/mixer/paths/analog-output-lineout.conf
> > @@ -82,6 +82,7 @@ volume = off
> >
> >   [Element Line HP Swap]
> >   switch = off
> > +required-any = any
> >
> >   ; This profile path is intended to control the default output, not the
> >   ; headphones. But it should not hurt if we leave the headphone jack
> >
> 

-- 
Tanu



More information about the pulseaudio-discuss mailing list