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.