]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
Librem 5 Devkit: modernize config
authorJaroslav Kysela <perex@perex.cz>
Mon, 23 Aug 2021 13:49:31 +0000 (15:49 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 23 Aug 2021 13:55:21 +0000 (15:55 +0200)
- remove extra default values
- remove explicit zeros
- add PlaybackMixerElem

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/NXP/iMX8/Librem_5_Devkit/HiFi.conf
ucm2/NXP/iMX8/Librem_5_Devkit/Librem 5 Devkit.conf

index f34aa924b478fbb02970adac1e286bbc1bfffc6a..9ead6a018102e439093c01c35cb5cc262415d4e1 100644 (file)
@@ -15,11 +15,9 @@ SectionVerb {
        DisableSequence [
                cset "name='PCM Playback Volume' 0"
        ]
-       Value {
-       }
 }
 
-SectionDevice."Handset".0 {
+SectionDevice."Handset" {
        Comment "Handset"
 
        ConflictingDevice [
@@ -38,15 +36,16 @@ SectionDevice."Handset".0 {
        ]
        Value {
                PlaybackPriority "1000"
-               PlaybackPCM "hw:${CardId},0"
+               PlaybackPCM "hw:${CardId}"
                PlaybackVolume "name='Lineout Playback Volume'"
                PlaybackSwitch "name='Lineout Playback Switch'"
+               PlaybackMixerElem "Lineout"
                CapturePriority "1000"
-               CapturePCM "hw:${CardId},0"
+               CapturePCM "hw:${CardId}"
        }
 }
 
-SectionDevice."Headset".0 {
+SectionDevice."Headset" {
        Comment "Headset"
 
        ConflictingDevice [
@@ -64,11 +63,12 @@ SectionDevice."Headset".0 {
        ]
        Value {
                PlaybackPriority "700"
-               PlaybackPCM "hw:${CardId},0"
+               PlaybackPCM "hw:${CardId}"
                PlaybackVolume "name='Headphone Playback Volume'"
                PlaybackSwitch "name='Headphone Playback Switch'"
+               PlaybackMixerElem "Headphone"
                CapturePriority "700"
-               CapturePCM "hw:${CardId},0"
+               CapturePCM "hw:${CardId}"
                JackControl "Headphones Jack"
        }
 }
index 933e3d43cc4e1f9e7de1d4147438c99cb51e8999..9153d3dc9d222725d40ea2175bd8d7fd43bfb188 100644 (file)
@@ -3,8 +3,3 @@ Syntax 2
 SectionUseCase."HiFi" {
        File "HiFi.conf"
 }
-
-ValueDefaults {
-       PlaybackPCM "hw:${CardId},0"
-       CapturePCM "hw:${CardId},0"
-}