+++ /dev/null
-# Usecase for device HDMI1/Display Port stereo playback on Intel SKYLAKE/KABYLAKE platforms
-# For Audio in I2S mode
-
-SectionDevice."Hdmi1" {
- Comment "HDMI/Display Port 1 Stereo"
-
- EnableSequence [
- exec "echo Hdmi1 EnableSequnece"
- ]
-
- DisableSequence [
- exec "echo Hdmi1 DisableSequnece"
- ]
-
- Value {
- PlaybackPCM "hw:broxtonrt298,4"
- PlaybackChannels "2"
- PlaybackPriority "3"
- JackControl "HDMI/DP, pcm=4 Jack"
- }
-}
-
--- /dev/null
+# Usecase for device HDMI1/Display Port stereo playback on Intel SKYLAKE/KABYLAKE platforms
+# For Audio in I2S mode
+
+SectionDevice."Hdmi1" {
+ Comment "HDMI/Display Port 1 Stereo"
+
+ Value {
+ PlaybackPCM "hw:${CardId},4"
+ PlaybackPriority "3"
+ 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"
+ }
+ }
+ }
+}
--- /dev/null
+# Usecase for device HDMI1/Display Port stereo playback on Intel SKYLAKE/KABYLAKE platforms
+# For Audio in I2S mode
+
+SectionDevice."Hdmi2" {
+ Comment "HDMI/Display Port 2 Stereo"
+
+ Value {
+ PlaybackPCM "hw:${CardId},5"
+ PlaybackPriority "4"
+ 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"
+ }
+ }
+ }
+}
SectionVerb {
EnableSequence [
- cdev "hw:broxtonrt298"
cset "name='media0_out mo dmic01_hifi_in mi Switch' 1"
]
- DisableSequence [
- cdev "hw:broxtonrt298"
- ]
-
Value {
TQ "HiFi"
- CapturePCM "hw:broxtonrt298,1"
- PlaybackPCM "hw:broxtonrt298,0"
+ CapturePCM "hw:${CardId},1"
+ PlaybackPCM "hw:${CardId},0"
}
}
-SectionDevice."dmiccap" {
+SectionDevice."DigitalMic" {
Comment "DMIC Stereo"
ConflictingDevice [
]
EnableSequence [
-
- cdev "hw:broxtonrt298"
- exec "echo broxtonrt298 dmiccap called"
cset "name='media0_out mo dmic01_hifi_in mi Switch' 1"
cset "name='media0_out mo codec0_in mi Switch' 0"
cset "name='Mic Jack Switch' 0"
]
DisableSequence [
- cdev "hw:broxtonrt298"
cset "name='media0_out mo codec0_in mi Switch' 1"
cset "name='media0_out mo dmic01_hifi_in mi Switch' 0"
cset "name='Mic Jack Switch' 1"
cset "name='ADC 0 Mux' 0"
]
- Value {
- CaptureChannels "2"
- CapturePriority "2"
- }
}
SectionDevice."Headphones" {
ConflictingDevice [
"Speaker"
]
+
EnableSequence [
- cdev "hw:broxtonrt298"
- exec "echo broxtonrt298 Headphone called"
cset "name='HPO L Switch' 1"
cset "name='HPO R Switch' 1"
cset "name='Headphone Jack Switch' 1"
cset "name='Speaker Playback Switch' 0,0"
]
- DisableSequence [
- cdev "hw:broxtonrt298"
- ]
Value {
- PlaybackChannels "2"
- PlaybackPriority "1"
JackControl "Headphone Jack"
JackHWMute "Speaker"
}
ConflictingDevice [
"Headphones"
]
+
EnableSequence [
- cdev "hw:broxtonrt298"
- exec "echo broxtonrt298 speaker called"
cset "name='SPO Switch' 1"
cset "name='Speaker Playback Switch' 1,1"
cset "name='Speaker Switch' 1"
cset "name='HPO R Switch' 0"
]
- DisableSequence [
- ]
Value {
- PlaybackChannels "2"
- PlaybackPriority "1"
JackHWMute "Headphones"
}
}
Comment "Headset Mic"
ConflictingDevice [
- "dmiccap"
+ "DigitalMic"
]
+
EnableSequence [
- cdev "hw:broxtonrt298"
- exec "echo broxtonrt298 Headset called"
cset "name='media0_out mo codec0_in mi Switch' 1"
cset "name='ADC0 Capture Volume' 105,105"
cset "name='ADC 0 Mux' 0"
]
DisableSequence [
- cdev "hw:broxtonrt298"
cset "name='media0_out mo dmic01_hifi_in mi Switch' 1"
cset "name='media0_out mo codec0_in mi Switch' 0"
]
+
Value {
- CaptureChannels "2"
- CapturePriority "2"
JackControl "Mic Jack"
}
}
# UCM for Intel Broxton platforms
# For Audio in I2S mode
+Syntax 2
+
SectionUseCase."HiFi" {
File "HiFi.conf"
Comment "Play and record HiFi quality Music"
}
ValueDefaults {
- PlaybackCTL "hw:broxtonrt298"
- CaptureCTL "hw:broxtonrt298"
+ PlaybackChannels "2"
+ PlaybackPriority "1"
CaptureChannels "2"
CapturePriority "2"
}
SectionDefaults [
- cdev "hw:broxtonrt298"
- exec "echo broxtonrt298 CONF Defaults"
cset "name='Headphone Jack Switch' 1"
cset "name='Speaker Switch' 1"
cset "name='Speaker Playback Switch' 0,0"