]> git.alsa-project.org Git - alsa-lib.git/commitdiff
conf/ucm: GoogleNyan: Add configuration
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Thu, 15 Jan 2015 16:27:29 +0000 (17:27 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 19 Jan 2015 09:02:46 +0000 (10:02 +0100)
Taken from the ChromeOS sources, this configuration should apply to all
Nyan boards from Google, so far HP Chromebook 14 (nyan-blaze) and Acer
Chromebook 13 (nyan-big).

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
configure.ac
src/conf/ucm/GoogleNyan/GoogleNyan.conf [new file with mode: 0644]
src/conf/ucm/GoogleNyan/HiFi.conf [new file with mode: 0644]
src/conf/ucm/GoogleNyan/Makefile.am [new file with mode: 0644]
src/conf/ucm/Makefile.am

index 734163c8c321c52495cbf4c01ccbd5351ca727be..916280b8934adfa706715d6e4e1a3668862b977d 100644 (file)
@@ -654,6 +654,7 @@ AC_OUTPUT(Makefile doc/Makefile doc/pictures/Makefile doc/doxygen.cfg \
          src/conf/ucm/SDP4430/Makefile \
          src/conf/ucm/tegraalc5632/Makefile \
          src/conf/ucm/PAZ00/Makefile \
+         src/conf/ucm/GoogleNyan/Makefile \
          modules/Makefile modules/mixer/Makefile modules/mixer/simple/Makefile \
          alsalisp/Makefile aserver/Makefile \
          test/Makefile test/lsb/Makefile \
diff --git a/src/conf/ucm/GoogleNyan/GoogleNyan.conf b/src/conf/ucm/GoogleNyan/GoogleNyan.conf
new file mode 100644 (file)
index 0000000..efe6ad8
--- /dev/null
@@ -0,0 +1,5 @@
+Comment "Nyan internal card"
+SectionUseCase."HiFi" {
+       File "HiFi.conf"
+       Comment "Default"
+}
diff --git a/src/conf/ucm/GoogleNyan/HiFi.conf b/src/conf/ucm/GoogleNyan/HiFi.conf
new file mode 100644 (file)
index 0000000..b28fe91
--- /dev/null
@@ -0,0 +1,77 @@
+SectionVerb {
+       EnableSequence [
+               cdev "hw:GoogleNyan"
+               cset "name='Left Speaker Mixer Left DAC Switch' on"
+               cset "name='Right Speaker Mixer Right DAC Switch' on"
+               cset "name='Headphone Left Switch' on"
+               cset "name='Headphone Right Switch' on"
+               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' 10"
+               cset "name='MIC2 Boost Volume' 0"
+               cset "name='Mic Jack 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='Headphone Left Switch' on"
+               cset "name='Headphone Right Switch' on"
+               cset "name='Headphones Switch' off"
+               cset "name='Speaker Left Switch' on"
+               cset "name='Speaker Right Switch' on"
+               cset "name='Speakers Switch' on"
+       ]
+       DisableSequence [
+       ]
+}
+
+SectionDevice."Headphone".0 {
+       Value {
+               OutputDspName ""
+       }
+       EnableSequence [
+               cdev "hw:GoogleNyan"
+               cset "name='Speakers Switch' off"
+               cset "name='Headphones Switch' on"
+       ]
+       DisableSequence [
+               cdev "hw:GoogleNyan"
+               cset "name='Headphones Switch' off"
+               cset "name='Speakers Switch' on"
+       ]
+}
+
+SectionDevice."Mic".0 {
+       Value {
+               CaptureControl "MIC2"
+       }
+       EnableSequence [
+               cdev "hw:GoogleNyan"
+               cset "name='Int Mic Switch' off"
+               cset "name='DMIC Mux' ADC"
+               cset "name='Mic Jack Switch' on"
+               cset "name='Record Path DC Blocking' on"
+       ]
+       DisableSequence [
+               cdev "hw:GoogleNyan"
+               cset "name='Mic Jack Switch' off"
+               cset "name='DMIC Mux' DMIC"
+               cset "name='Int Mic Switch' on"
+               cset "name='Record Path DC Blocking' off"
+       ]
+}
diff --git a/src/conf/ucm/GoogleNyan/Makefile.am b/src/conf/ucm/GoogleNyan/Makefile.am
new file mode 100644 (file)
index 0000000..47c7fc9
--- /dev/null
@@ -0,0 +1,4 @@
+alsaconfigdir = @ALSA_CONFIG_DIR@
+ucmdir = $(alsaconfigdir)/ucm/GoogleNyan
+ucm_DATA = GoogleNyan.conf HiFi.conf
+EXTRA_DIST = $(ucm_DATA)
index bde89dfea440e04fcf7a680284bc080a41ac2ade..14fc7aee8e6c5aba072a915feee1775b5606e9ad 100644 (file)
@@ -1 +1 @@
-SUBDIRS=DAISY-I2S PandaBoard PandaBoardES SDP4430 tegraalc5632 PAZ00
+SUBDIRS=DAISY-I2S PandaBoard PandaBoardES SDP4430 tegraalc5632 PAZ00 GoogleNyan