[alsa-devel] [PATCH v2 1/2] ALSA: jack: create jack kcontrols for every jack input device

David Henningsson david.henningsson at canonical.com
Tue Mar 24 07:50:39 CET 2015



On 2015-03-23 17:41, Mark Brown wrote:
> On Mon, Mar 23, 2015 at 12:51:07PM +0100, David Henningsson wrote:
>> On 2015-03-23 11:56, Tanu Kaskinen wrote:
>
>>> One thing that is unclear for me is that how are those jacks represented
>>> that support any of headsets/headphones/microphones, but don't provide
>>> information about which device type has been plugged in.
>
>> For headphone or headset, independent switches:
>
>>   * "Headphone Jack"
>>   * "Headset Mic Jack"
>
>> For headphone or headset, one hw switch only:
>
>>   * "Headphone Jack"
>>   * "Headset Mic Phantom Jack"
>
> I'd have expected these to be the same thing, just with the second case
> always having the same state for both switches.

We need to distinguish the use cases: in case of independent switches, 
we can make the assumption that if the user plugged in a headset, the 
user wants to use the headset mic instead of the internal mic, so we 
switch to it.

In the other case, where we don't know if the user plugged in a 
headphone or a headset, we need to ask the user what (s)he plugged in, 
so we can determine whether to select headphone+internal mic or 
headphone+headset mic.

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


More information about the Alsa-devel mailing list