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

David Henningsson david.henningsson at canonical.com
Sun Aug 31 22:54:47 PDT 2014



On 2014-08-31 20:11, Sjoerd Simons wrote:
> Recognize the Dock headphone jack in the same way the normal & front
> headphone jacks are detected.

Hi Sjoerd,

The reason "Headphone" and "Front Headphone" are both in the same path, 
is because they're often mixed, i e, the jack is called "Front 
Headphone" but the volume control is called only "Headphone".

I'm not sure this is also the case for "Dock Headphone". In the case it 
isn't, "Dock Headphone" would need its own path rather than being 
integrated with the normal headphones path.

Could you check this?

> ---
>   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
> +
> +[Jack Dock Headphone Phantom]
> +required-any = any
> +state.plugged = unknown
> +state.unplugged = unknown
> +
>   [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
>

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


More information about the pulseaudio-discuss mailing list