]> code.delx.au - pulseaudio/commit
alsa-mixer: Disable headphones when playing to speakers
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Mon, 10 Jun 2013 12:47:39 +0000 (18:17 +0530)
committerTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Mon, 10 Jun 2013 14:01:53 +0000 (17:01 +0300)
commit22aac4e9fdb3786178f7815a0cb2150f588b1582
tree6a64bacd3d97373a4e183e44974bbcd08a87b713
parent07290d9da7a50ab9b3c6b3a7acaac6353d09801b
alsa-mixer: Disable headphones when playing to speakers

Assume that the headphone port volume is lower than the speaker volume.
When plugging in headphones, if the path is active, while the jack is
being inserted and before it is actually detected as being plugged in,
it will still receive the signal being played (which is at a higher
volume than it will be when plugged in completely). The volume
difference manifests as a volume spike when the headphones are plugged
in, before the final volume is set.

This patch is required to prevent such a volume spike when plugging in
headphones. The problem is not fixed completely, but the spike is
shortened. To be fixed completely, we need to apply the port volume
before unmuting the new path.
src/modules/alsa/mixer/paths/analog-output-speaker.conf