]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
skylake-rt286: fixes and corrections
authorJaroslav Kysela <perex@perex.cz>
Mon, 27 Jan 2020 15:01:21 +0000 (16:01 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 5 Feb 2020 12:17:24 +0000 (13:17 +0100)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/skylake-rt286/Hdmi1.conf
ucm2/skylake-rt286/Hdmi2.conf
ucm2/skylake-rt286/HiFi.conf
ucm2/skylake-rt286/skylake-rt286.conf

index 975fd39896ee8e06267010057cb857b41fd69be8..5a569434d0759d925bc7e475f5ae7f177e00f34d 100644 (file)
@@ -1,16 +1,15 @@
 # Usecase for device HDMI1/Display Port stereo playback on Intel SKYLAKE/KABYLAKE platforms
 # For Audio in I2S mode
 
-SectionDevice."Hdmi1" {
+SectionDevice."HDMI1" {
         Comment "HDMI/Display Port 1 Stereo"
 
         Value {
+               PlaybackPriority 300
                 PlaybackPCM "hw:${CardId},4"
-                PlaybackChannels "2"
-                PlaybackPriority "3"
                If.1 {
                        Condition {
-                               ControlExists
+                               Type ControlExists
                                Control "iface=CARD,name='HDMI/DP,pcm=4 Jack'"
                        }
                        True {
index d6ca62f72be6c80498a8d36ca5d6a78fc34f221c..d2780b6d4b1f3c2204be94e74b35027d97ca96ce 100644 (file)
@@ -1,16 +1,15 @@
 # Usecase for device HDMI2/Display Port stereo playback on Intel SKYLAKE/KABYLAKE platforms
 # For Audio in I2S mode
 
-SectionDevice."Hdmi2" {
+SectionDevice."HDMI2" {
         Comment "HDMI/Display Port 2 Stereo"
 
         Value {
+               PlaybackPriority 400
                 PlaybackPCM "hw:${CardId},5"
-                PlaybackChannels "2"
-                PlaybackPriority "4"
                If.1 {
                        Condition {
-                               ControlExists
+                               Type ControlExists
                                Control "iface=CARD,name='HDMI/DP,pcm=5 Jack'"
                        }
                        True {
index 489170f33acf8808c3435dc25917e4f218053d34..9e94a1b1072d8490ed011dba618ae435aad44e94 100644 (file)
@@ -2,15 +2,12 @@
 # For Audio in I2S mode on Intel SKYLAKE/KABYLAKE platforms
 
 SectionVerb {
-
        EnableSequence [
                cset "name='media0_out mo dmic01_hifi_in mi Switch' 1"
        ]
 
        Value {
                TQ "HiFi"
-               CapturePCM "hw:${CardId},1"
-               PlaybackPCM "hw:${CardId},0"
        }
 }
 
@@ -20,6 +17,7 @@ SectionDevice."Headphones" {
        ConflictingDevice [
                "Speaker"
        ]
+
        EnableSequence [
                cset "name='HPO L Switch' 1"
                cset "name='HPO R Switch' 1"
@@ -27,11 +25,9 @@ SectionDevice."Headphones" {
                cset "name='Speaker Playback Switch' 0,0"
        ]
 
-       DisableSequence [
-       ]
        Value {
-               PlaybackChannels "2"
-               PlaybackPriority "1"
+               PlaybackPriority 200
+               PlaybackPCM "hw:${CardId}"
                JackControl "Headphone Jack"
                JackHWMute "Speaker"
        }
@@ -43,6 +39,7 @@ SectionDevice."Speaker" {
        ConflictingDevice [
                "Headphones"
        ]
+
        EnableSequence [
                cset "name='SPO Switch' 1"
                cset "name='Speaker Playback Switch' 1,1"
@@ -51,20 +48,18 @@ SectionDevice."Speaker" {
                cset "name='HPO R Switch' 0"
        ]
 
-       DisableSequence [
-       ]
        Value {
-               PlaybackChannels "2"
-               PlaybackPriority "1"
+               PlaybackPriority 100
+               PlaybackPCM "hw:${CardId}"
                JackHWMute "Headphones"
        }
 }
 
 SectionDevice."Headset" {
-       Comment "Headset Mic"
+       Comment "Headset Microphone"
 
        ConflictingDevice [
-               "dmiccap"
+               "Mic"
        ]
        EnableSequence [
                cset "name='media0_out mo codec0_in mi Switch' 1"
@@ -79,15 +74,14 @@ SectionDevice."Headset" {
                cset "name='media0_out mo codec0_in mi Switch' 0"
        ]
        Value {
-               CaptureChannels "2"
-               CapturePriority "2"
+               CapturePriority 200
+               CapturePCM "hw:${CardId},1"
                JackControl "Mic Jack"
        }
 }
 
-
-SectionDevice."dmiccap" {
-       Comment "DMIC Stereo"
+SectionDevice."Mic" {
+       Comment "Digital Stereo Microphone"
 
        ConflictingDevice [
                "Headset"
@@ -110,8 +104,10 @@ SectionDevice."dmiccap" {
                cset "name='ADC 0 Mux' 2"
        ]
        Value {
-               CaptureChannels "2"
-               CapturePriority "2"
+               CapturePriority 100
+               CapturePCM "hw:${CardId},1"
        }
 }
 
+<skylake-rt286/Hdmi1.conf>
+<skylake-rt286/Hdmi2.conf>
index efb8a20e0533fb13d3a9bb6dad1fa5d90568c91a..4ea57773cd2a93e6a88bf3060edc26446599c4e8 100644 (file)
@@ -8,19 +8,9 @@ SectionUseCase."HiFi" {
        Comment "Play and record HiFi quality Music"
 }
 
-SectionUseCase."Hdmi1" {
-        File "Hdmi1.conf"
-        Comment "Play on Hdmi/DP 1"
-}
-
-SectionUseCase."Hdmi2" {
-        File "Hdmi2.conf"
-        Comment "Play on Hdmi/DP 2"
-}
-
 ValueDefaults {
-       CaptureChannels "2"
-       CapturePriority "2"     
+       PlaybackChannels 2
+       CaptureChannels 2
 }
 
 SectionDefaults [