# 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"
+ }
+ }
+ }
}
-
-# 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"
+ }
+ }
+ }
}
-
# 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"
]
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"
]
Value {
- CaptureChannels "2"
+ CapturePriority 100
+ CapturePCM "hw:${CardId},1"
+ CaptureChannels 2
JackDev "rt5660-jack"
JackControl "Line In Jack"
}