From 8376d43a7bb31288289c14a17551ccaf42c28d58 Mon Sep 17 00:00:00 2001 From: guylamar2006 Date: Thu, 28 Dec 2023 19:08:55 -0600 Subject: [PATCH] acp5x: add Stream Deck OLED Model Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/373 Signed-off-by: guylamar2006 Signed-off-by: Jaroslav Kysela --- ucm2/AMD/acp5x/acp5x.conf | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/ucm2/AMD/acp5x/acp5x.conf b/ucm2/AMD/acp5x/acp5x.conf index a594ef3..2e44863 100644 --- a/ucm2/AMD/acp5x/acp5x.conf +++ b/ucm2/AMD/acp5x/acp5x.conf @@ -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" + } +} -- 2.47.3