]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
kblrt5660: corrections and fixes
authorJaroslav Kysela <perex@perex.cz>
Wed, 5 Feb 2020 01:54:11 +0000 (02:54 +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/kblrt5660/Hdmi1.conf
ucm2/kblrt5660/Hdmi2.conf
ucm2/kblrt5660/HiFi.conf

index b6adbaa834dca4da80709d4eed80bb7241d74a31..ccf51183fdd3015c9da85a309a2ae30ffd384d5c 100755 (executable)
@@ -1,14 +1,24 @@
 # Usecase for device HDMI1/Display Port stereo playback on Intel KABYLAKE platforms
 # For Audio in I2S mode
 
-SectionDevice."Hdmi1" {
-        Comment "HDMI/Display Port 1 Stereo"
+SectionDevice."HDMI1" {
+       Comment "HDMI/Display Port 1 Stereo"
 
-        Value {
-                PlaybackPCM "hw:${CardId},2"
-                PlaybackChannels "2"
-                PlaybackPriority "2"
-                JackControl "HDMI/DP, pcm=4 Jack"
-        }
+       Value {
+               PlaybackPriority 200
+               PlaybackPCM "hw:${CardId},2"
+               PlaybackChannels 2
+               If.1 {
+                       Condition {
+                               Type ControlExists
+                               Control "iface=CARD,name='HDMI/DP,pcm=4 Jack'"
+                       }
+                       True {
+                               JackControl "HDMI/DP,pcm=4 Jack"
+                       }
+                       False {
+                               JackControl "HDMI/DP, pcm=4 Jack"
+                       }
+               }
+       }
 }
-
index 19e9bd0b300ba8fad2ec76252fc27f67df70a6ef..c5e400166ed7ba53d8d4f8ecabaa49f2e567eed9 100755 (executable)
@@ -1,14 +1,24 @@
-# Usecase for device HDMI2/Display Port stereo playback on Intel KABYLAKE platforms
+# Usecase for device HDMI1/Display Port stereo playback on Intel KABYLAKE platforms
 # For Audio in I2S mode
 
-SectionDevice."Hdmi2" {
-        Comment "HDMI/Display Port 2 Stereo"
+SectionDevice."HDMI2" {
+       Comment "HDMI/Display Port 2 Stereo"
 
-        Value {
-                PlaybackPCM "hw:${CardId},3"
-                PlaybackChannels "2"
-                PlaybackPriority "3"
-                JackControl "HDMI/DP, pcm=5 Jack"
-        }
+       Value {
+               PlaybackPriority 300
+               PlaybackPCM "hw:${CardId},3"
+               PlaybackChannels 2
+               If.1 {
+                       Condition {
+                               Type ControlExists
+                               Control "iface=CARD,name='HDMI/DP,pcm=5 Jack'"
+                       }
+                       True {
+                               JackControl "HDMI/DP,pcm=5 Jack"
+                       }
+                       False {
+                               JackControl "HDMI/DP, pcm=5 Jack"
+                       }
+               }
+       }
 }
-
index af0d805a3aa75eb6449e46f37a543c687e1be58c..0f5d46dafb15b7bb4a03cf2285e85593a67ef005 100755 (executable)
@@ -1,18 +1,8 @@
 # UCM for Intel Kabylake platforms with RT5660
 # For Audio in I2S mode
 
-SectionVerb {
-
-       # ALSA PCM
-       Value {
-               # ALSA PCM device for HiFi
-               PlaybackPCM "hw:${CardId},0"
-               CapturePCM "hw:${CardId},1"
-       }
-}
-
-SectionDevice."LineOut" {
-       Comment "LineOut playback"
+SectionDevice."Line1" {
+       Comment "Line playback"
 
        EnableSequence [
                cset "name='DAC1 Playback Volume' 30"
@@ -36,14 +26,16 @@ SectionDevice."LineOut" {
        ]
 
        Value {
-               PlaybackChannels "2"
+               PlaybackPriority 100
+               PlaybackPCM "hw:${CardId}"
+               PlaybackChannels 2
                JackDev "rt5660-jack"
                JackControl "Line Out Jack"
        }
 }
 
-SectionDevice."LineIn" {
-       Comment "LineIn capture"
+SectionDevice."Line2" {
+       Comment "Line capture"
 
        EnableSequence [
                cset "name='ADC Capture Volume' 30"
@@ -67,7 +59,9 @@ SectionDevice."LineIn" {
        ]
 
        Value {
-               CaptureChannels "2"
+               CapturePriority 100
+               CapturePCM "hw:${CardId},1"             
+               CaptureChannels 2
                JackDev "rt5660-jack"
                JackControl "Line In Jack"
        }