]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
acp5x: add Stream Deck OLED Model
authorguylamar2006 <guychronister@outlook.com>
Fri, 29 Dec 2023 01:08:55 +0000 (19:08 -0600)
committerJaroslav Kysela <perex@perex.cz>
Tue, 9 Jan 2024 14:41:33 +0000 (15:41 +0100)
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/373
Signed-off-by: guylamar2006 <guychronister@outlook.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/AMD/acp5x/acp5x.conf

index a594ef3064f9fb83154e6470fb01563f4bf346cd..2e4486369537c8977e7d499d521cdcab994f6a10 100644 (file)
@@ -51,3 +51,42 @@ If.jupiter {
                Include.ctl-remap.File "/lib/ctl-remap.conf"
        }
 }
+
+#
+# Currently restricted to Steam Deck OLED hardware.
+#
+If.galileo {
+       Condition {
+               Type String
+               String1 "Galileo"
+               String2 "${sys:devices/virtual/dmi/id/product_name}"
+       }
+       True {
+               SectionUseCase."HiFi" {
+                       If.upstream {
+                               Condition {
+                                       Type ControlExists
+                                       Control "name='Left Analog PCM Volume'"
+                               }
+                               True.File "HiFi-upstream.conf"
+                               False.File "HiFi.conf"
+                       }
+                       Comment "Default"
+               }
+
+               BootSequence [
+                       cset "name='Digital Playback Volume' 252"
+                       cset "name='Left Analog PCM Volume' 17"
+                       cset "name='Right Analog PCM Volume' 17"
+                       cset "name='Left Digital PCM Volume' 870"
+                       cset "name='Right Digital PCM Volume' 870"
+                       cset "name='Headphone Volume' 2"
+                       cset "name='Digital Playback Volume' 192"
+                       cset "name='Mic Volume' 252"
+                       cset "name='Frontend PGA Volume' 27"
+               ]
+
+               Include.card-init.File "/lib/card-init.conf"
+               Include.ctl-remap.File "/lib/ctl-remap.conf"
+       }
+}