]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
USB-Audio: ALC4080 - detect Speaker / Front Headphone controls
authorJaroslav Kysela <perex@perex.cz>
Fri, 7 Oct 2022 09:15:29 +0000 (11:15 +0200)
committerJaroslav Kysela <perex@perex.cz>
Fri, 7 Oct 2022 16:36:48 +0000 (18:36 +0200)
BugLink: https://github.com/alsa-project/alsa-ucm-conf/issues/227
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/USB-Audio/Realtek/ALC4080-HiFi.conf

index e18de59a9e71c219c355bd38430225b510808986..b1e013032a29e29f816ddf1daa593a88eacaab67 100644 (file)
@@ -32,6 +32,25 @@ Define {
        SpdifPCM "hw:${CardId},3"
 }
 
+If.speaker_ctl {
+       Condition {
+               Type ControlExists
+               Control "name='Speaker Playback Switch'"
+       }
+       True.Define.SpeakerMixer "Speaker"
+}
+
+If.front_hp_ctl {
+       Condition {
+               Type ControlExists
+               Control "name='Front Headphone Playback Switch'"
+       }
+       True.Define {
+               HeadphonesMixer "Front Headphone"
+               HeadphonesMindex "0"
+       }
+}
+
 If.spdif_dev2 {
        Condition {
                Type RegexMatch