]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
Add initial support for generic SOF Skylake driver (DMIC)
authorJaroslav Kysela <perex@perex.cz>
Tue, 24 Sep 2019 11:39:14 +0000 (13:39 +0200)
committerJaroslav Kysela <perex@perex.cz>
Fri, 27 Sep 2019 08:32:15 +0000 (10:32 +0200)
Based on: https://github.com/RanderWang/intel-UCM/tree/hdmi/sof-skl_hda_card
Signed-off-by: Mark Pearson <mpearson@lenovo.com>
Cleanups, remove commented or empty configuration.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm/sof-skl_hda_card/HiFi.conf [new file with mode: 0644]
ucm/sof-skl_hda_card/sof-skl_hda_card.conf [new file with mode: 0644]

diff --git a/ucm/sof-skl_hda_card/HiFi.conf b/ucm/sof-skl_hda_card/HiFi.conf
new file mode 100644 (file)
index 0000000..5e074bf
--- /dev/null
@@ -0,0 +1,190 @@
+# Use case Configuration for skl-hda-card
+
+SectionVerb {
+
+       EnableSequence [
+               cdev "hw:sofsklhdacard"
+               cset "name='Master Playback Switch' on"
+               cset "name='Capture Switch' on"
+       ]
+
+       DisableSequence [
+               cdev "hw:sofsklhdacard"
+       ]
+}
+
+SectionDevice."Headphone" {
+       Comment "Headphone"
+
+       EnableSequence [
+               cdev "hw:sofsklhdacard"
+               cset "name='Headphone Playback Volume' 80"
+               cset "name='Headphone Playback Switch' on"
+       ]
+
+       DisableSequence [
+               cdev "hw:sofsklhdacard"
+               cset "name='Headphone Playback Switch' off"
+       ]
+
+       Value {
+               PlaybackPCM "hw:sofsklhdacard,0"
+               PlaybackChannels "2"
+               JackName "sof-skl_hda_card Headphone"
+               JackType "gpio"
+               JackSwitch "12"
+               JackControl "Headphone Jack"
+       }
+}
+
+SectionDevice."Speaker" {
+       Comment "Speaker"
+
+       EnableSequence [
+               cdev "hw:sofsklhdacard"
+               cset "name='Speaker Playback Switch' on"
+               cset "name='Speaker Playback Volume' 80"
+       ]
+
+       DisableSequence [
+               cset "name='Speaker Playback Switch' off"
+       ]
+
+       Value {
+               PlaybackPCM "hw:sofsklhdacard,0"
+               JackHWMute "Headphone"
+               PlaybackChannels "2"
+       }
+}
+
+SectionDevice."Bass Speaker" {
+       Comment "Bass Speaker"
+
+       EnableSequence [
+               cdev "hw:sofsklhdacard"
+               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:sofsklhdacard,0"
+               JackHWMute "Headphone"
+               PlaybackChannels "2"
+       }
+}
+
+SectionDevice."Headset" {
+       Comment "Headset Mic"
+
+       ConflictingDevice [
+               "DMIC Stereo"
+       ]
+
+       EnableSequence [
+               cdev "hw:sofsklhdacard"
+       ]
+
+       DisableSequence [
+               cdev "hw:sofsklhdacard"
+       ]
+
+       Value {
+               CapturePCM "hw:0,0"
+               CaptureChannels "2"
+               JackControl "Mic Jack"
+       }
+}
+
+SectionDevice."Dmic" {
+       Comment "DMIC Stereo"
+
+       ConflictingDevice [
+               "Headset Mic"
+       ]
+
+       EnableSequence [
+               cdev "hw:sofsklhdacard"
+               cset "name='PGA10.0 10 Master Capture Volume' 75"
+       ]
+
+       DisableSequence [
+               cdev "hw:sofsklhdacard"
+       ]
+
+       Value {
+               CapturePCM "hw:0,6"
+               CaptureChannels "2"
+       }
+}
+
+SectionDevice."HDMI1" {
+       Comment "HDMI1/DP1 Output"
+
+       EnableSequence [
+               cdev "hw:sofsklhdacard"
+               cset "name='hif5-0 Jack Switch' on"
+               cset "name='Pin5-Port0 Mux' 1"
+       ]
+
+       DisableSequence [
+               cdev "hw:sofsklhdacard"
+               cset "name='Pin5-Port0 Mux' 0"
+               cset "name='hif5-0 Jack Switch' off"
+       ]
+
+       Value {
+               PlaybackPCM "hw:0,3"
+               PlaybackChannels "2"
+               JackControl "HDMI/DP, pcm=11 Jack"
+       }
+}
+
+SectionDevice."HDMI2" {
+       Comment "HDMI2/DP2 Output"
+
+       EnableSequence [
+               cdev "hw:sofsklhdacard"
+               cset "name='hif6-0 Jack Switch' on"
+               cset "name='Pin6-Port0 Mux' 2"
+       ]
+
+       DisableSequence [
+               cdev "hw:sofsklhdacard"
+               cset "name='Pin6-Port0 Mux' 0"
+               cset "name='hif6-0 Jack Switch' off"
+       ]
+
+       Value {
+               PlaybackPCM "hw:0,4"
+               PlaybackChannels "2"
+               JackControl "HDMI/DP, pcm=12 Jack"
+       }
+}
+
+SectionDevice."HDMI3" {
+       Comment "HDMI3/DP3 Output"
+
+       EnableSequence [
+               cdev "hw:sofsklhdacard"
+               cset "name='hif7-0 Jack Switch' on"
+               cset "name='Pin7-Port0 Mux' 3"
+       ]
+
+       DisableSequence [
+               cdev "hw:sofsklhdacard"
+               cset "name='Pin7-Port0 Mux' 0"
+               cset "name='hif7-0 Jack Switch' off"
+       ]
+
+       Value {
+               PlaybackPCM "hw:0,5"
+               PlaybackChannels "2"
+               JackControl "HDMI/DP, pcm=13 Jack"
+       }
+}
+
diff --git a/ucm/sof-skl_hda_card/sof-skl_hda_card.conf b/ucm/sof-skl_hda_card/sof-skl_hda_card.conf
new file mode 100644 (file)
index 0000000..041ad15
--- /dev/null
@@ -0,0 +1,5 @@
+SectionUseCase."HiFi" {
+       File "HiFi.conf"
+       Comment "Play HiFi quality Music"
+}
+