From 3e80e0f7779f6d24642aa84b95c277f839034792 Mon Sep 17 00:00:00 2001 From: Tanu Kaskinen Date: Sun, 28 Oct 2018 13:15:53 +0200 Subject: [PATCH] alsa-mixer: swap lineout and headphone priorities Headphones should have higher priority than lineout. Many people have speakers always connected to lineout, and when plugging in headphones, the audio should move to the headphones, which requires headphones to have higher priority than lineout. Previously this was handled by marking lineout unavailable when plugging in headphones, but we don't do that any more. --- src/modules/alsa/mixer/paths/analog-output-headphones-2.conf | 2 +- src/modules/alsa/mixer/paths/analog-output-headphones.conf | 2 +- src/modules/alsa/mixer/paths/analog-output-lineout.conf | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/alsa/mixer/paths/analog-output-headphones-2.conf b/src/modules/alsa/mixer/paths/analog-output-headphones-2.conf index ddabf7769..30815d0a8 100644 --- a/src/modules/alsa/mixer/paths/analog-output-headphones-2.conf +++ b/src/modules/alsa/mixer/paths/analog-output-headphones-2.conf @@ -18,7 +18,7 @@ ; See analog-output.conf.common for an explanation on the directives [General] -priority = 89 +priority = 98 description-key = analog-output-headphones [Properties] diff --git a/src/modules/alsa/mixer/paths/analog-output-headphones.conf b/src/modules/alsa/mixer/paths/analog-output-headphones.conf index b6ee70ba8..d2147c50f 100644 --- a/src/modules/alsa/mixer/paths/analog-output-headphones.conf +++ b/src/modules/alsa/mixer/paths/analog-output-headphones.conf @@ -18,7 +18,7 @@ ; See analog-output.conf.common for an explanation on the directives [General] -priority = 90 +priority = 99 description-key = analog-output-headphones [Properties] diff --git a/src/modules/alsa/mixer/paths/analog-output-lineout.conf b/src/modules/alsa/mixer/paths/analog-output-lineout.conf index 3df517129..9a6af3ad8 100644 --- a/src/modules/alsa/mixer/paths/analog-output-lineout.conf +++ b/src/modules/alsa/mixer/paths/analog-output-lineout.conf @@ -14,7 +14,7 @@ # along with PulseAudio; if not, see . [General] -priority = 99 +priority = 90 description-key = analog-output-lineout [Jack Line Out]