ucm-config: fievel: disable speaker & int mic
copy ucm config from veyron, and rename.
delete speaker & int mic.
BUG=chrome-os-partner:58861
TEST=check on fievel, no speaker & int mic
Change-Id: I94ad50da2ced4ef93df9e1ccdfe69a42b84cee0d
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Reviewed-on: https://chromium-review.googlesource.com/423294
Reviewed-by: Cheng-Yi Chiang <cychiang@chromium.org>
diff --git a/ucm-config/veyron_fievel/ROCKCHIP-I2S/HiFi.conf b/ucm-config/veyron_fievel/ROCKCHIP-I2S/HiFi.conf
new file mode 100644
index 0000000..bf52f73
--- /dev/null
+++ b/ucm-config/veyron_fievel/ROCKCHIP-I2S/HiFi.conf
@@ -0,0 +1,103 @@
+SectionVerb {
+ Value {
+ OutputDspName "speaker_eq"
+ MinBufferLevel "512"
+ FullySpecifiedUCM "1"
+ }
+
+ EnableSequence [
+ cdev "hw:ROCKCHIPI2S"
+
+ cset "name='Left Speaker Mixer Left DAC Switch' on"
+ cset "name='Right Speaker Mixer Right DAC Switch' on"
+ cset "name='Headphone Left Switch' off"
+ cset "name='Headphone Right Switch' off"
+ cset "name='Digital EQ 3 Band Switch' off"
+ cset "name='Digital EQ 5 Band Switch' off"
+ cset "name='Digital EQ 7 Band Switch' off"
+ cset "name='Biquad Switch' off"
+ cset "name='Filter Mode' Music"
+ cset "name='ADC Oversampling Rate' 0"
+
+ cset "name='DMIC Mux' DMIC"
+ cset "name='MIC2 Mux' IN34"
+ cset "name='Right ADC Mixer MIC2 Switch' on"
+ cset "name='Left ADC Mixer MIC2 Switch' on"
+ cset "name='MIC2 Volume' 20"
+ cset "name='Headset Mic Switch' off"
+ cset "name='Int Mic Switch' on"
+
+ cset "name='ADCR Boost Volume' 4"
+ cset "name='ADCL Boost Volume' 4"
+ cset "name='ADCR Volume' 11"
+ cset "name='ADCL Volume' 11"
+
+ cset "name='Left Speaker Mixer Left DAC Switch' on"
+ cset "name='Right Speaker Mixer Right DAC Switch' on"
+ cset "name='Speaker Left Mixer Volume' 2"
+ cset "name='Speaker Right Mixer Volume' 2"
+ cset "name='Record Path DC Blocking' on"
+ cset "name='Playback Path DC Blocking' on"
+
+ cset "name='Speaker Left Switch' on"
+ cset "name='Speaker Right Switch' on"
+ cset "name='Speaker Switch' on"
+ ]
+
+ DisableSequence [
+ ]
+}
+
+SectionDevice."Headphone".0 {
+ Value {
+ PlaybackPCM "hw:ROCKCHIPI2S,0"
+ MixerName "Headphone"
+ JackType "gpio"
+ JackName "ROCKCHIP-I2S Headset Jack"
+ OutputDspName ""
+ }
+
+ EnableSequence [
+ cdev "hw:ROCKCHIPI2S"
+
+ cset "name='Speaker Switch' off"
+ cset "name='Headphone Switch' on"
+ cset "name='Headphone Left Switch' on"
+ cset "name='Headphone Right Switch' on"
+ ]
+ DisableSequence [
+ cdev "hw:ROCKCHIPI2S"
+
+ cset "name='Headphone Left Switch' off"
+ cset "name='Headphone Right Switch' off"
+ cset "name='Headphone Switch' off"
+ cset "name='Speaker Switch' on"
+ ]
+}
+
+SectionDevice."Mic".0 {
+ Value {
+ CapturePCM "hw:ROCKCHIPI2S,0"
+ MixerName "Headset Mic"
+ JackType "gpio"
+ JackName "ROCKCHIP-I2S Headset Jack"
+ }
+
+ EnableSequence [
+ cdev "hw:ROCKCHIPI2S"
+
+ cset "name='Int Mic Switch' off"
+ cset "name='DMIC Mux' ADC"
+ cset "name='Headset Mic Switch' on"
+ cset "name='Record Path DC Blocking' on"
+ ]
+
+ DisableSequence [
+ cdev "hw:ROCKCHIPI2S"
+
+ cset "name='Headset Mic Switch' off"
+ cset "name='DMIC Mux' DMIC"
+ cset "name='Int Mic Switch' on"
+ cset "name='Record Path DC Blocking' off"
+ ]
+}
diff --git a/ucm-config/veyron_fievel/ROCKCHIP-I2S/ROCKCHIP-I2S.conf b/ucm-config/veyron_fievel/ROCKCHIP-I2S/ROCKCHIP-I2S.conf
new file mode 100644
index 0000000..0c399b0
--- /dev/null
+++ b/ucm-config/veyron_fievel/ROCKCHIP-I2S/ROCKCHIP-I2S.conf
@@ -0,0 +1,6 @@
+Comment "Rockchip card"
+
+SectionUseCase."HiFi" {
+ File "HiFi.conf"
+ Comment "Default"
+}
diff --git a/ucm-config/veyron_fievel/RockchipHDMI/HiFi.conf b/ucm-config/veyron_fievel/RockchipHDMI/HiFi.conf
new file mode 100644
index 0000000..890c97c
--- /dev/null
+++ b/ucm-config/veyron_fievel/RockchipHDMI/HiFi.conf
@@ -0,0 +1,14 @@
+SectionVerb {
+ Value {
+ OutputDspName ""
+ MinBufferLevel "512"
+ }
+}
+
+SectionDevice."HDMI".0 {
+ Value {
+ JackName "RockchipHDMI HDMI Jack"
+ OutputDspName ""
+ EDIDFile "/sys/class/drm/card1-HDMI-A-1/edid"
+ }
+}
diff --git a/ucm-config/veyron_fievel/RockchipHDMI/RockchipHDMI.conf b/ucm-config/veyron_fievel/RockchipHDMI/RockchipHDMI.conf
new file mode 100644
index 0000000..a167d74
--- /dev/null
+++ b/ucm-config/veyron_fievel/RockchipHDMI/RockchipHDMI.conf
@@ -0,0 +1,6 @@
+Comment "Rockchip HDMI card"
+
+SectionUseCase."HiFi" {
+ File "HiFi.conf"
+ Comment "Default"
+}