[pulseaudio-discuss] [PATCH 2/4] alsa-mixer: Add Phantom Jack support
David Henningsson
david.henningsson at canonical.com
Thu Jun 28 09:36:37 PDT 2012
On 06/28/2012 06:35 PM, Tanu Kaskinen wrote:
> On Thu, 2012-06-28 at 16:27 +0200, David Henningsson wrote:
>> For kernel 3.6, "phantom jack" kctls have been added. They serve as
>> a marker that a particular port exist. They were made so we can detect
>> that there actually are speakers and internal mic on a laptop, even if
>> there are no other indications (volume controls etc).
>>
>> Signed-off-by: David Henningsson <david.henningsson at canonical.com>
>> ---
>> .../mixer/paths/analog-input-internal-mic.conf | 4 ++++
>> .../alsa/mixer/paths/analog-output-speaker.conf | 5 +++++
>> 2 files changed, 9 insertions(+)
>>
>> diff --git a/src/modules/alsa/mixer/paths/analog-input-internal-mic.conf b/src/modules/alsa/mixer/paths/analog-input-internal-mic.conf
>> index ba15f1c..a8cbb40 100644
>> --- a/src/modules/alsa/mixer/paths/analog-input-internal-mic.conf
>> +++ b/src/modules/alsa/mixer/paths/analog-input-internal-mic.conf
>> @@ -39,6 +39,10 @@ state.unplugged = unknown
>> state.plugged = no
>> state.unplugged = unknown
>>
>> +[Jack Internal Mic Phantom]
>> +state.plugged = unknown
>> +state.unplugged = unknown
>> +
>
> Should this have "required-any = any", similarly to Jack Speaker
> Phantom?
Of course. Thanks for the review.
>
>> [Element Internal Mic Boost]
>> required-any = any
>> switch = select
>> diff --git a/src/modules/alsa/mixer/paths/analog-output-speaker.conf b/src/modules/alsa/mixer/paths/analog-output-speaker.conf
>> index 9c58ed9..cea02c2 100644
>> --- a/src/modules/alsa/mixer/paths/analog-output-speaker.conf
>> +++ b/src/modules/alsa/mixer/paths/analog-output-speaker.conf
>> @@ -26,6 +26,11 @@ name = analog-output-speaker
>> state.plugged = no
>> state.unplugged = unknown
>>
>> +[Jack Speaker Phantom]
>> +required-any = any
>> +state.plugged = unknown
>> +state.unplugged = unknown
>> +
>> [Element Hardware Master]
>> switch = mute
>> volume = merge
>
--
David Henningsson, Canonical Ltd.
https://launchpad.net/~diwic
More information about the pulseaudio-discuss
mailing list