+++ /dev/null
-# Use case Configuration for ThinkPad X1 Carbon 7th
-
-<sof-hda-dsp/HiFi.conf>
-
-SectionDevice."BassSpeaker" {
- Comment "Bass Speaker"
-
- EnableSequence [
- cdev "hw:sofhdadsp"
- cset "name='Bass Speaker Playback Switch' on"
- cset "name='Speaker Playback Switch' on"
- cset "name='Speaker Playback Volume' 80"
- ]
-
- DisableSequence [
- cdev "hw:sofhdadsp"
- cset "name='Speaker Playback Switch' off"
- cset "name='Bass Speaker Playback Switch' off"
- ]
-
- Value {
- PlaybackPCM "hw:sofhdadsp,0"
- PlaybackChannels "2"
- }
-}
-
-# override JackHWMute
-SectionDevice."Headphone".!JackHWMute "Speaker BassSpeaker"
+++ /dev/null
-SectionUseCase."HiFi" {
- File "../LENOVO-20QE000VMC-ThinkPadX1Carbon7th-20QE000VMC/HiFi.conf"
- Comment "Play HiFi quality Music"
-}
-
-SectionUseCase."Hdmi" {
- File "../sof-hda-dsp/Hdmi.conf"
- Comment "Play to HDMI/DP"
-}
-
-ValueDefaults {
- PlaybackCTL "hw:sofhdadsp"
- CaptureCTL "hw:sofhdadsp"
-}
+++ /dev/null
-# Use case Configuration for sof-hda-dsp
-
-SectionVerb {
- EnableSequence [
- cdev "hw:sofhdadsp"
- cset "name='Master Playback Switch' on"
- cset "name='Capture Switch' on"
- ]
-
- DisableSequence [
- cdev "hw:sofhdadsp"
- ]
-}
-
-SectionDevice."Headphone" {
- Comment "Headphone"
-
- EnableSequence [
- cdev "hw:sofhdadsp"
- cset "name='Headphone Playback Switch' on"
- ]
-
- DisableSequence [
- cdev "hw:sofhdadsp"
- cset "name='Headphone Playback Switch' off"
- ]
-
- Value {
- PlaybackPCM "hw:sofhdadsp,0"
- PlaybackVolume "name='Headphone'"
- PlaybackSwitch "name='Headphone Playback Switch'"
- PlaybackChannels "2"
- JackName "sof-hda-dsp Headphone"
- JackType "gpio"
- JackSwitch "12"
- JackControl "Headphone Jack"
- JackHWMute "Speaker"
- }
-}
-
-SectionDevice."Speaker" {
- Comment "Speaker"
-
- EnableSequence [
- cdev "hw:sofhdadsp"
- cset "name='Speaker Playback Switch' on"
- ]
-
- DisableSequence [
- cdev "hw:sofhdadsp"
- cset "name='Speaker Playback Switch' off"
- ]
-
- Value {
- PlaybackPCM "hw:sofhdadsp,0"
- PlaybackVolume "name='Speaker'"
- PlaybackSwitch "name='Speaker Playback Switch'"
- PlaybackChannels "2"
- }
-}
-
-SectionDevice."HeadsetMic" {
- Comment "Headset Microphone"
-
- ConflictingDevice [
- "DigitalMic"
- ]
-
- EnableSequence [
- cdev "hw:sofhdadsp"
- ]
-
- DisableSequence [
- cdev "hw:sofhdadsp"
- ]
-
- Value {
- CapturePCM "hw:sofhdadsp,0"
- CaptureVolume "name='Capture'"
- CaptureSwitch "name='Capture Switch'"
- CaptureChannels "2"
- JackControl "Mic Jack"
- }
-}
-
-SectionDevice."DigitalMic" {
- Comment "Digital Microphone"
-
- ConflictingDevice [
- "HeadsetMic"
- ]
-
- EnableSequence [
- cdev "hw:sofhdadsp"
- ]
-
- DisableSequence [
- cdev "hw:sofhdadsp"
- ]
-
- Value {
- CapturePCM "hw:sofhdadsp,6"
- CaptureVolume "name='Dmic0 Capture Volume'"
- CaptureSwitch "name='Dmic0 Capture Switch'"
- CaptureChannels "2"
- }
-}
Comment "HDMI1/DP1 Output"
EnableSequence [
- cdev "hw:sofhdadsp"
cset "name='IEC958 Playback Switch' on"
]
DisableSequence [
- cdev "hw:sofhdadsp"
cset "name='IEC958 Playback Switch' off"
]
Value {
- PlaybackPCM "hw:sofhdadsp,3"
+ PlaybackPCM "hw:${CardId},3"
PlaybackChannels "2"
JackControl "HDMI/DP,pcm=3 Jack"
}
Comment "HDMI2/DP2 Output"
EnableSequence [
- cdev "hw:sofhdadsp"
cset "name='IEC958 Playback Switch',index=1 on"
]
DisableSequence [
- cdev "hw:sofhdadsp"
cset "name='IEC958 Playback Switch',index=1 off"
]
Value {
- PlaybackPCM "hw:sofhdadsp,4"
+ PlaybackPCM "hw:${CardId},4"
PlaybackChannels "2"
JackControl "HDMI/DP,pcm=4 Jack"
}
Comment "HDMI3/DP3 Output"
EnableSequence [
- cdev "hw:sofhdadsp"
cset "name='IEC958 Playback Switch',index=2 on"
]
DisableSequence [
- cdev "hw:sofhdadsp"
cset "name='IEC958 Playback Switch',index=2 off"
]
Value {
- PlaybackPCM "hw:sofhdadsp,5"
+ PlaybackPCM "hw:${CardId},5"
PlaybackChannels "2"
JackControl "HDMI/DP,pcm=5 Jack"
}
--- /dev/null
+# Use case Configuration for sof-hda-dsp
+
+SectionVerb {
+ EnableSequence [
+ cset "name='Master Playback Switch' on"
+ cset "name='Capture Switch' on"
+ ]
+}
+
+SectionDevice."Headphone" {
+ Comment "Headphone"
+
+ EnableSequence [
+ cset "name='Headphone Playback Switch' on"
+ ]
+
+ DisableSequence [
+ cset "name='Headphone Playback Switch' off"
+ ]
+
+ Value {
+ PlaybackPCM "hw:${CardId},0"
+ PlaybackVolume "Headphone Playback Volume"
+ PlaybackSwitch "Headphone Playback Switch"
+ PlaybackChannels "2"
+ JackName "SOF HDA DSP Headphone"
+ JackType "gpio"
+ JackSwitch "12"
+ If.1 {
+ Condition {
+ Type ControlExists
+ Control "name='Bass Speaker Playback Switch'"
+ }
+ True {
+ JackHWMute "Speaker BassSpeaker"
+ }
+ False {
+ JackHWMute "Speaker"
+ }
+ }
+ If.2 {
+ Condition {
+ Type ControlExists
+ Control "iface=CARD,name='Headphone Mic Jack'"
+ }
+ True {
+ JackControl "Headphone Mic Jack"
+ }
+ False {
+ JackControl "Headphone Jack"
+ }
+ }
+ }
+}
+
+SectionDevice."Speaker" {
+ Comment "Speaker"
+
+ EnableSequence [
+ cset "name='Speaker Playback Switch' on"
+ ]
+
+ DisableSequence [
+ cset "name='Speaker Playback Switch' off"
+ ]
+
+ Value {
+ PlaybackPCM "hw:${CardId},0"
+ PlaybackVolume "Speaker Playback Volume"
+ PlaybackSwitch "Speaker Playback Switch"
+ PlaybackChannels "2"
+ }
+}
+
+If.1 {
+ Condition {
+ Type ControlExists
+ Control "name='Bass Speaker Playback Switch'"
+ }
+ True {
+ SectionDevice."BassSpeaker" {
+ Comment "Bass Speaker"
+
+ EnableSequence [
+ cset "name='Bass Speaker Playback Switch' on"
+ cset "name='Speaker Playback Switch' on"
+ cset "name='Speaker Playback Volume' 80"
+ ]
+
+ DisableSequence [
+ cset "name='Speaker Playback Switch' off"
+ cset "name='Bass Speaker Playback Switch' off"
+ ]
+
+ Value {
+ PlaybackPCM "hw:${CardId},0"
+ PlaybackChannels "2"
+ }
+ }
+ }
+}
+
+SectionDevice."HeadsetMic" {
+ Comment "Headset Microphone"
+
+ ConflictingDevice [
+ "DigitalMic"
+ ]
+
+ Value {
+ CapturePCM "hw:${CardId},0"
+ CaptureVolume "Capture Volume"
+ CaptureSwitch "Capture Switch"
+ CaptureChannels "2"
+ JackControl "Mic Jack"
+ }
+}
+
+SectionDevice."DigitalMic" {
+ Comment "Digital Microphone"
+
+ ConflictingDevice [
+ "HeadsetMic"
+ ]
+
+ Value {
+ CapturePCM "hw:${CardId},6"
+ CaptureVolume "Dmic0 Capture Volume"
+ CaptureSwitch "Dmic0 Capture Switch"
+ CaptureChannels "2"
+ }
+}
+Syntax 2
+
SectionUseCase."HiFi" {
File "HiFi.conf"
Comment "Play HiFi quality Music"
File "Hdmi.conf"
Comment "Play to HDMI/DP"
}
-
-ValueDefaults {
- PlaybackCTL "hw:sofhdadsp"
- CaptureCTL "hw:sofhdadsp"
-}