OSDN Git Service

USB-Audio/ALC1220: Bump analog Speaker priority over S/PDIF
authorMarijn Suijten <marijns95@gmail.com>
Thu, 14 Jan 2021 13:11:50 +0000 (14:11 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 15 Jan 2021 12:52:15 +0000 (13:52 +0100)
The `S/PDIF` port does not have any jack sensing, and with a priority
higher than the `Speakers` it will always be selected by default instead
of the `Speakers` even if unplugged.

Swapping the priorities around allows analog `Speakers` to be selected
first, _if_ they are plugged in. Otherwise `S/PDIF` is used.

Signed-off-by: Marijn Suijten <marijns95@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/USB-Audio/Realtek-ALC1220-VB-Desktop-HiFi.conf

index 344db83..cbf7154 100644 (file)
@@ -2,7 +2,7 @@ SectionDevice."Speaker" {
        Comment "Speakers"
        Value {
               PlaybackChannels 8
-              PlaybackPriority 100
+              PlaybackPriority 200
               PlaybackPCM "hw:${CardId}"
               JackControl "Speaker Jack"
               PlaybackMixerElem "Speaker"
@@ -22,7 +22,7 @@ SectionDevice."Headphones" {
 SectionDevice."SPDIF" {
        Comment "S/PDIF Out"
        Value {
-               PlaybackPriority 200
+               PlaybackPriority 100
                PlaybackPCM "hw:${CardId},2"
                PlaybackMixerElem "IEC958"
        }