]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
ucm2: sof-essx8336: drop conditional control settings
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sun, 3 Apr 2022 11:13:00 +0000 (08:13 -0300)
committerJaroslav Kysela <perex@perex.cz>
Mon, 23 May 2022 13:07:23 +0000 (15:07 +0200)
The Headphone controls are used by both speaker and headphone,
due to that, can't be used to detect if the device has Speaker
and/or headphones.

Also, all such controls are already initialized during the
BootSequence.

So, just drop them.

Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/144
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/Intel/sof-essx8336/sof-essx8336.conf

index 91b840025cc9f892e381a885ec03d0ae6d87836b..da92e314aa1f71c959c1c3c5cf80c0afb1e96664 100644 (file)
@@ -39,28 +39,6 @@ SectionUseCase."HiFi" {
        File "/Intel/sof-essx8336/HiFi.conf"
        Comment "Play and record HiFi quality Music"
 }
-
-# the kcontrols initial values, which will be set by `alsactl init`
-If.speaker {
-       Condition {
-               Type ControlExists
-               Control "DAC Playback Volume"
-       }
-       True.BootSequence [
-               cset "name='DAC Playback Volume' 60%"
-       ]
-}
-
-If.headphone {
-       Condition {
-               Type ControlExists
-               Control "name='Headphone Playback Volume'"
-       }
-       True.BootSequence [
-               cset "name='Headphone Playback Volume' 60%"
-       ]
-}
-
 If.dmic {
        Condition {
                Type String
@@ -77,12 +55,3 @@ If.dmic {
        }
 }
 
-If.Capture {
-       Condition {
-               Type ControlExists
-               Control "name='ADC Capture Volume'"
-       }
-       True.BootSequence [
-               cset "name='ADC Capture Volume' 60%"
-       ]
-}