diff options
author | Dylan Reid <dgreid@chromium.org> | 2017-12-06 16:26:48 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-12-08 03:59:17 -0800 |
commit | e78c98a6d34f5a9d75002eab033607e47484b030 (patch) | |
tree | 579a7a98af86e71dbb37860fd28c969738c252b9 /ucm-config | |
parent | 01613ee8b647454150fc0c58c86757d75ccae019 (diff) | |
download | adhd-e78c98a6d34f5a9d75002eab033607e47484b030.tar.gz |
config: Add cyan configs for SOF
Add a UCM and cras config for cyan running sound open firmware. The card
has a different name so both the legacy and new configs can live
side-by-side.
Input doesn't work yet. That will be added soon.
Change-Id: Ie352e9a35f3eba30b0b111a15d88502c7e9cde16
Signed-off-by: Dylan Reid <dgreid@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/812427
Reviewed-by: Ben Zhang <benzh@chromium.org>
Reviewed-by: Prashant Malani <pmalani@google.com>
Diffstat (limited to 'ucm-config')
-rw-r--r-- | ucm-config/cyan/cht-bsw-max98090/HiFi.conf | 132 | ||||
-rw-r--r-- | ucm-config/cyan/cht-bsw-max98090/cht-bsw-max98090.conf | 6 |
2 files changed, 138 insertions, 0 deletions
diff --git a/ucm-config/cyan/cht-bsw-max98090/HiFi.conf b/ucm-config/cyan/cht-bsw-max98090/HiFi.conf new file mode 100644 index 00000000..09ef6dbf --- /dev/null +++ b/ucm-config/cyan/cht-bsw-max98090/HiFi.conf @@ -0,0 +1,132 @@ +SectionVerb { + + EnableSequence [ + cdev "hw:chtbswmax98090" + + cset "name='Left Speaker Mixer Left DAC Switch' on" + cset "name='Right Speaker Mixer Right DAC 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='MIC2 Volume' 10" + cset "name='MIC2 Boost Volume' 0" + + cset "name='ADCR Boost Volume' 4" + cset "name='ADCL Boost Volume' 4" + cset "name='ADCR Volume' 11" + cset "name='ADCL Volume' 11" + + cset "name='Speaker Left Mixer Volume' 3" + cset "name='Speaker Right Mixer Volume' 3" + cset "name='Record Path DC Blocking' on" + cset "name='Playback Path DC Blocking' on" + + cset "name='Headphone Left Switch' off" + cset "name='Headphone Right Switch' off" + cset "name='Headphone Switch' off" + cset "name='Left Headphone Mixer Left DAC Switch' on" + cset "name='Right Headphone Mixer Right DAC Switch' on" + + cset "name='Speaker Left Switch' off" + cset "name='Speaker Right Switch' off" + cset "name='Ext Spk Switch' off" + + cset "name='Headset Mic Switch' off" + cset "name='Int Mic Switch' off" + ] + + DisableSequence [ + ] + + # ALSA PCM + Value { + # ALSA PCM device for HiFi + PlaybackPCM "hw:chtbswmax98090,0" + CapturePCM "hw:chtbswmax98090,0" + OutputDspName "speaker_eq" + FullySpecifiedUCM "1" + } +} + +SectionDevice."Headphone" { + Comment "Headphone" + + Value { + PlaybackPCM "hw:chtbswmax98090,0" + PlaybackChannels 2 + OutputDspName "" + MixerName "Headphone" + JackType "gpio" + JackName "cht-bsw-max98090 Headset Jack" + } + + EnableSequence [ + cdev "hw:chtbswmax98090" + + cset "name='Headphone Left Switch' on" + cset "name='Headphone Right Switch' on" + cset "name='Headphone Switch' on" + ] + DisableSequence [ + cdev "hw:chtbswmax98090" + + cset "name='Headphone Left Switch' off" + cset "name='Headphone Right Switch' off" + cset "name='Headphone Switch' off" + ] +} + +SectionDevice."Speaker" { + Comment "Speakers" + + EnableSequence [ + cdev "hw:chtbswmax98090" + + cset "name='Speaker Left Switch' on" + cset "name='Speaker Right Switch' on" + cset "name='Ext Spk Switch' on" + ] + DisableSequence [ + cdev "hw:chtbswmax98090" + + cset "name='Speaker Left Switch' off" + cset "name='Speaker Right Switch' off" + cset "name='Ext Spk Switch' off" + ] + + Value { + PlaybackPCM "hw:chtbswmax98090,0" + PlaybackChannels 2 + MixerName "Ext Spk" + } +} + +SectionModifier."Speaker Swap Mode".0 { + Comment "Swap the left and right channels of speaker." + + EnableSequence [ + cdev "hw:chtbswmax98090" + + cset "name='Left Speaker Mixer Left DAC Switch' off" + cset "name='Right Speaker Mixer Right DAC Switch' off" + cset "name='Left Speaker Mixer Right DAC Switch' on" + cset "name='Right Speaker Mixer Left DAC Switch' on" + ] + + DisableSequence [ + cdev "hw:chtbswmax98090" + + cset "name='Left Speaker Mixer Right DAC Switch' off" + cset "name='Right Speaker Mixer Left DAC Switch' off" + cset "name='Left Speaker Mixer Left DAC Switch' on" + cset "name='Right Speaker Mixer Right DAC Switch' on" + ] +} + +# Input doesn't work yet. TODO(dgreid) diff --git a/ucm-config/cyan/cht-bsw-max98090/cht-bsw-max98090.conf b/ucm-config/cyan/cht-bsw-max98090/cht-bsw-max98090.conf new file mode 100644 index 00000000..26a5bc05 --- /dev/null +++ b/ucm-config/cyan/cht-bsw-max98090/cht-bsw-max98090.conf @@ -0,0 +1,6 @@ +Comment "cht-bsw-max98090 internal card" + +SectionUseCase."HiFi" { + File "HiFi.conf" + Comment "Default" +} |