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

David Henningsson david.henningsson at canonical.com
Sun Sep 7 16:20:57 PDT 2014


Acked.

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
>

-- 
David Henningsson, Canonical Ltd.
https://launchpad.net/~diwic


More information about the pulseaudio-discuss mailing list