UCM config: Add chtmax98090 UCM config for Cyan

For Cyan board, add Maxim 98090 support

BUG=chrome-os-partner:40036
TEST=`emerge-cyan adhd` and verify ucm files are installed to
/build/cyan/usr/share/alsa/ucm

Change-Id: I30f00a4f5102662b5abd7c3c2fe275b43c18b9d1
Signed-off-by: Fang, Yang A <yang.a.fang@intel.com>
Signed-off-by: Sathyanarayana Nujella <sathyanarayana.nujella@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/270549
Reviewed-by: Bernie Thompson <bhthompson@chromium.org>
Reviewed-by: Dylan Reid <dgreid@chromium.org>
Commit-Queue: Bernie Thompson <bhthompson@chromium.org>
diff --git a/ucm-config/cyan/chtmax98090/HiFi.conf b/ucm-config/cyan/chtmax98090/HiFi.conf
new file mode 100644
index 0000000..3ee6f9f
--- /dev/null
+++ b/ucm-config/cyan/chtmax98090/HiFi.conf
@@ -0,0 +1,113 @@
+SectionVerb {
+	Value {
+		OutputDspName "speaker_eq"
+	}
+
+	EnableSequence [
+		cdev "hw:chtmax98090"
+
+		cset "name='codec_out0 mix 0 pcm0_in Switch' on"
+		cset "name='media0_out mix 0 media1_in Switch' on"
+		cset "name='media1_in Gain 0 Ramp Delay' 50"
+		cset "name='media1_in Gain 0 Switch' off"
+		cset "name='media1_in Gain 0 Volume' 80% 80%"
+		cset "name='pcm0_in Gain 0 Ramp Delay' 50"
+		cset "name='pcm0_in Gain 0 Switch' off"
+		cset "name='pcm0_in Gain 0 Volume' 80% 80%"
+		cset "name='codec_out0 Gain 0 Ramp Delay' 50"
+		cset "name='codec_out0 Gain 0 Switch' off"
+		cset "name='codec_out0 Gain 0 Volume' 70% 70%"
+		cset "name='pcm1_out mix 0 media_loop2_in Switch' 1"
+		cset "name='media_loop2_out mix 0 codec_in0 Switch' 1"
+		cset "name='codec_in0 Gain 0 Ramp Delay' 50"
+		cset "name='codec_in0 Gain 0 Switch' off"
+		cset "name='codec_in0 Gain 0 Volume' 80% 80%"
+		cset "name='media_loop2_out Gain 0 Ramp Delay' 50"
+		cset "name='media_loop2_out Gain 0 Switch' off"
+		cset "name='media_loop2_out Gain 0 Volume' 80% 80%"
+		cset "name='pcm1_out Gain 0 Ramp Delay' 50"
+		cset "name='pcm1_out Gain 0 Switch' off"
+		cset "name='pcm1_out Gain 0 Volume' 80% 80%"
+		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='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='Headphone Left Switch' on"
+		cset "name='Headphone Right Switch' on"
+		cset "name='Headphone Switch' off"
+
+		cset "name='Speaker Left Switch' on"
+		cset "name='Speaker Right Switch' on"
+		cset "name='Ext Spk Switch' on"
+
+	]
+
+	DisableSequence [
+	]
+}
+
+SectionDevice."Headphone".0 {
+	Value {
+		JackName "chtmax98090 Headset Jack"
+		OutputDspName ""
+	}
+
+	EnableSequence [
+		cdev "hw:chtmax98090"
+		cset "name='Ext Spk Switch' off"
+		cset "name='Speaker Left Switch' off"
+		cset "name='Speaker Right Switch' off"
+		cset "name='Headphone Switch' on"
+	]
+	DisableSequence [
+		cdev "hw:chtmax98090"
+		cset "name='Headphone Switch' off"
+		cset "name='Ext Spk Switch' on"
+		cset "name='Speaker Left Switch' on"
+		cset "name='Speaker Right Switch' on"
+	]
+}
+
+SectionDevice."Mic".0 {
+	Value {
+		JackName "chtmax98090 Headset Jack"
+	}
+
+	EnableSequence [
+		cdev "hw:chtmax98090"
+		cset "name='Int Mic Switch' off"
+		cset "name='Headset Mic Switch' on"
+		cset "name='DMIC Mux' ADC"
+		cset "name='Record Path DC Blocking' on"
+	]
+
+	DisableSequence [
+		cdev "hw:chtmax98090"
+		cset "name='Headset Mic Switch' off"
+		cset "name='Int Mic Switch' on"
+		cset "name='DMIC Mux' DMIC"
+		cset "name='Record Path DC Blocking' off"
+	]
+}
diff --git a/ucm-config/cyan/chtmax98090/chtmax98090.conf b/ucm-config/cyan/chtmax98090/chtmax98090.conf
new file mode 100644
index 0000000..2263279
--- /dev/null
+++ b/ucm-config/cyan/chtmax98090/chtmax98090.conf
@@ -0,0 +1,6 @@
+Comment "Cyan internal card"
+
+SectionUseCase."HiFi" {
+	File "HiFi.conf"
+	Comment "Default"
+}