]> code.delx.au - pulseaudio/commit
alsa-mixer: Switch to Headphone when Headphone mic jack is plugged in
authorDavid Henningsson <david.henningsson@canonical.com>
Tue, 16 Apr 2013 04:40:40 +0000 (06:40 +0200)
committerDavid Henningsson <david.henningsson@canonical.com>
Wed, 24 Apr 2013 10:18:23 +0000 (12:18 +0200)
commitca4942e89cf462e5f8c36ca9b8b689879083af6b
tree9bc6c2699e3b1416fe63a8699b0ee48edc4e1986
parent068a3ec9d4383e92241b72c7d146a42a189473b8
alsa-mixer: Switch to Headphone when Headphone mic jack is plugged in

When a "Headphone Mic" jack becomes available, we do not know if
a headphone or a mic has been plugged in. Therefore, setting both
paths to "unknown" is, in theory, the correct thing to do.
However, in practice, people are more likely to plug in a headphone
rather than a mic. Therefore, allow autoswitch to the headphone port
when the jack is plugged in.

A more advanced implementation would consider what was plugged in last
time depending on what port was selected on the input side at that
time, and set availability accordingly. However, such an implementation
will have to wait (probably at least until we have our fancy routing
system implementation).

Buglink: https://bugs.launchpad.net/bugs/1169143
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
src/modules/alsa/mixer/paths/analog-output-headphones.conf