aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@perex.cz>2020-01-27 16:01:21 +0100
committerJaroslav Kysela <perex@perex.cz>2020-02-05 13:17:24 +0100
commited9918179e37e091a861cea57022d45ff50b2bca (patch)
treed04524916c1ebbbe1bee98eea76fb3e97c5372e7
parent54f0ed010f7353b37a7b0eee109537675323b9d8 (diff)
skylake-rt286: fixes and corrections
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
-rw-r--r--ucm2/skylake-rt286/Hdmi1.conf7
-rw-r--r--ucm2/skylake-rt286/Hdmi2.conf7
-rw-r--r--ucm2/skylake-rt286/HiFi.conf36
-rw-r--r--ucm2/skylake-rt286/skylake-rt286.conf14
4 files changed, 24 insertions, 40 deletions
diff --git a/ucm2/skylake-rt286/Hdmi1.conf b/ucm2/skylake-rt286/Hdmi1.conf
index 975fd39..5a56943 100644
--- a/ucm2/skylake-rt286/Hdmi1.conf
+++ b/ucm2/skylake-rt286/Hdmi1.conf
@@ -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 {
diff --git a/ucm2/skylake-rt286/Hdmi2.conf b/ucm2/skylake-rt286/Hdmi2.conf
index d6ca62f..d2780b6 100644
--- a/ucm2/skylake-rt286/Hdmi2.conf
+++ b/ucm2/skylake-rt286/Hdmi2.conf
@@ -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 {
diff --git a/ucm2/skylake-rt286/HiFi.conf b/ucm2/skylake-rt286/HiFi.conf
index 489170f..9e94a1b 100644
--- a/ucm2/skylake-rt286/HiFi.conf
+++ b/ucm2/skylake-rt286/HiFi.conf
@@ -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>
diff --git a/ucm2/skylake-rt286/skylake-rt286.conf b/ucm2/skylake-rt286/skylake-rt286.conf
index efb8a20..4ea5777 100644
--- a/ucm2/skylake-rt286/skylake-rt286.conf
+++ b/ucm2/skylake-rt286/skylake-rt286.conf
@@ -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 [