From 061e415ccca735f7d2190d95c6db5b19c7e64a4f Mon Sep 17 00:00:00 2001 From: Amery Song Date: Thu, 16 Jan 2020 10:46:25 +0800 Subject: [PATCH] ucm: add support for sof-cml_rt1011_rt5682 Signed-off-by: Amery Song --- ucm/sof-cml_rt1011_rt5682/Hdmi1.conf | 31 ++++++++++++++ ucm/sof-cml_rt1011_rt5682/Hdmi2.conf | 31 ++++++++++++++ ucm/sof-cml_rt1011_rt5682/Hdmi3.conf | 31 ++++++++++++++ ucm/sof-cml_rt1011_rt5682/HiFi.conf | 0 .../sof-cml_rt1011_rt5682.conf | 42 +++++++++++++++++++ 5 files changed, 135 insertions(+) create mode 100644 ucm/sof-cml_rt1011_rt5682/Hdmi1.conf create mode 100644 ucm/sof-cml_rt1011_rt5682/Hdmi2.conf create mode 100644 ucm/sof-cml_rt1011_rt5682/Hdmi3.conf create mode 100644 ucm/sof-cml_rt1011_rt5682/HiFi.conf create mode 100644 ucm/sof-cml_rt1011_rt5682/sof-cml_rt1011_rt5682.conf diff --git a/ucm/sof-cml_rt1011_rt5682/Hdmi1.conf b/ucm/sof-cml_rt1011_rt5682/Hdmi1.conf new file mode 100644 index 000000000..7d34dc3e6 --- /dev/null +++ b/ucm/sof-cml_rt1011_rt5682/Hdmi1.conf @@ -0,0 +1,31 @@ +SectionVerb { + + EnableSequence [ + cdev "hw:sofcmlrt1011rt5" + ] + + DisableSequence [ + cdev "hw:sofcmlrt1011rt5" + ] +} + +SectionDevice."HDMI1" { + Comment "HDMI1/DP1 Playback" + + Value { + PlaybackPCM "hw:sofcmlrt1011rt5,2" + PlaybackChannels "2" + JackControl "HDMI/DP,pcm=2 Jack" + PlaybackPriority "300" + } + + EnableSequence [ + cdev "hw:sofcmlrt1011rt5" + cset "name='IEC958 Playback Switch' on" + ] + + DisableSequence [ + cdev "hw:sofcmlrt1011rt5" + cset "name='IEC958 Playback Switch' off" + ] +} diff --git a/ucm/sof-cml_rt1011_rt5682/Hdmi2.conf b/ucm/sof-cml_rt1011_rt5682/Hdmi2.conf new file mode 100644 index 000000000..c2fd237b0 --- /dev/null +++ b/ucm/sof-cml_rt1011_rt5682/Hdmi2.conf @@ -0,0 +1,31 @@ +SectionVerb { + + EnableSequence [ + cdev "hw:sofcmlrt1011rt5" + ] + + DisableSequence [ + cdev "hw:sofcmlrt1011rt5" + ] +} + +SectionDevice."HDMI2" { + Comment "HDMI2/DP2 Playback" + + Value { + PlaybackPCM "hw:sofcmlrt1011rt5,3" + PlaybackChannels "2" + JackControl "HDMI/DP,pcm=3 Jack" + PlaybackPriority "400" + } + + EnableSequence [ + cdev "hw:sofcmlrt1011rt5" + cset "name='IEC958 Playback Switch',index=1 on" + ] + + DisableSequence [ + cdev "hw:sofcmlrt1011rt5" + cset "name='IEC958 Playback Switch',index=1 off" + ] +} diff --git a/ucm/sof-cml_rt1011_rt5682/Hdmi3.conf b/ucm/sof-cml_rt1011_rt5682/Hdmi3.conf new file mode 100644 index 000000000..f52cb80f8 --- /dev/null +++ b/ucm/sof-cml_rt1011_rt5682/Hdmi3.conf @@ -0,0 +1,31 @@ +SectionVerb { + + EnableSequence [ + cdev "hw:sofcmlrt1011rt5" + ] + + DisableSequence [ + cdev "hw:sofcmlrt1011rt5" + ] +} + +SectionDevice."HDMI3" { + Comment "HDMI3/DP3 Playback" + + Value { + PlaybackPCM "hw:sofcmlrt1011rt5,4" + PlaybackChannels "2" + JackControl "HDMI/DP,pcm=4 Jack" + PlaybackPriority "500" + } + + EnableSequence [ + cdev "hw:sofcmlrt1011rt5" + cset "name='IEC958 Playback Switch',index=2 on" + ] + + DisableSequence [ + cdev "hw:sofcmlrt1011rt5" + cset "name='IEC958 Playback Switch',index=2 off" + ] +} diff --git a/ucm/sof-cml_rt1011_rt5682/HiFi.conf b/ucm/sof-cml_rt1011_rt5682/HiFi.conf new file mode 100644 index 000000000..e69de29bb diff --git a/ucm/sof-cml_rt1011_rt5682/sof-cml_rt1011_rt5682.conf b/ucm/sof-cml_rt1011_rt5682/sof-cml_rt1011_rt5682.conf new file mode 100644 index 000000000..d3bd5758c --- /dev/null +++ b/ucm/sof-cml_rt1011_rt5682/sof-cml_rt1011_rt5682.conf @@ -0,0 +1,42 @@ +SectionUseCase."HiFi" { + File "HiFi.conf" + Comment "Default" +} + +SectionUseCase."Hdmi1" { + File "Hdmi1.conf" + Comment "Play to Hdmi1" +} + +SectionUseCase."Hdmi2" { + File "Hdmi2.conf" + Comment "Play to Hdmi2" +} + +SectionUseCase."Hdmi3" { + File "Hdmi3.conf" + Comment "Play to Hdmi3" +} + +SectionDefaults [ + cdev "hw:sofcmlrt1011rt5" + cset "name='Headphone Jack Switch' off" + cset "name='HPOL Playback Switch' on" + cset "name='HPOR Playback Switch' on" + cset "name='Stereo1 DAC MIXL DAC L1 Switch' 0" + cset "name='Stereo1 DAC MIXR DAC R1 Switch' 0" + cset "name='RECMIX1L CBJ Switch' 0" + cset "name='Stereo1 ADC L Mux' 0" + cset "name='Stereo1 ADC L1 Mux' 1" + cset "name='Stereo1 ADC L2 Mux' 0" + cset "name='Stereo1 ADC R Mux' 1" + cset "name='Stereo1 ADC R1 Mux' 1" + cset "name='Stereo1 ADC R2 Mux' 0" + cset "name='Stereo1 ADC MIXL ADC2 Switch' off" + cset "name='Stereo1 ADC MIXR ADC2 Switch' off" + cset "name='Stereo1 ADC MIXL ADC1 Switch' on" + cset "name='Stereo1 ADC MIXR ADC1 Switch' on" + cset "name='STO1 ADC Capture Switch' on" + cset "name='RECMIX1L CBJ Switch' on" + cset "name='IF1 01 ADC Swap Mux' 2" +]