aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>2021-02-02 16:55:29 +0000
committerSrinivas Kandagatla <srinivas.kandagatla@linaro.org>2021-02-02 16:55:29 +0000
commitb7ec44ca841a80dcfbb80cc8c11098e1c005b7be (patch)
treed9d295c377e66eae80ab3c0a614f7c23c0465bb0
parent6e1ed8ca7b87bf28c7c922b3cbb70ad7493abd95 (diff)
sdm845: add LENOVO Yoga C630 supportv1.2.4/c630
LENOVO YOGA C630 has MultiMedia1 dai setup as primary Playback so add required HiFi configuration as well. Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
-rw-r--r--ucm2/sdm845/HiFi-MM1.conf78
-rw-r--r--ucm2/sdm845/LENOVO-81JL-LenovoYOGAC630_13Q50-LNVNB161216.conf6
2 files changed, 84 insertions, 0 deletions
diff --git a/ucm2/sdm845/HiFi-MM1.conf b/ucm2/sdm845/HiFi-MM1.conf
new file mode 100644
index 0000000..d67b979
--- /dev/null
+++ b/ucm2/sdm845/HiFi-MM1.conf
@@ -0,0 +1,78 @@
+# Use case configuration for LenovoYOGAC6301.
+# Author: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
+
+SectionVerb {
+
+ EnableSequence [
+ cset "name='SLIMBUS_0_RX Audio Mixer MultiMedia1' 1"
+ cset "name='MultiMedia2 Mixer SLIMBUS_0_TX' 1"
+ ]
+
+ Include.wcde.File "/codecs/wcd934x/DefaultEnableSeq.conf"
+ Include.wsae.File "/codecs/wsa881x/DefaultEnableSeq.conf"
+
+ Include.wcdd {
+ File "/codecs/wcd934x/DefaultDisableSeq.conf"
+ Before.DisableSequence "0"
+ }
+
+ DisableSequence [
+ cset "name='SLIMBUS_0_RX Audio Mixer MultiMedia1' 0"
+ cset "name='MultiMedia2 Mixer SLIMBUS_0_TX' 0"
+ ]
+
+ Value {
+ TQ "HiFi"
+ }
+}
+
+SectionDevice."Speaker" {
+ Comment "Speaker playback"
+
+ Include.wcde.File "/codecs/wcd934x/SpeakerEnableSeq.conf"
+ Include.wsae.File "/codecs/wsa881x/SpeakerEnableSeq.conf"
+ Include.wsad.File "/codecs/wsa881x/SpeakerDisableSeq.conf"
+ Include.wcdd.File "/codecs/wcd934x/SpeakerDisableSeq.conf"
+
+ Value {
+ PlaybackPriority 100
+ PlaybackPCM "hw:${CardId}"
+ PlaybackVolume "RX2 Digital Volume"
+ }
+}
+
+SectionDevice."Headphones" {
+ Comment "Headphones playback"
+
+ ConflictingDevice [
+ "Speaker"
+ ]
+
+ Include.wcdhpe.File "/codecs/wcd934x/HeadphoneEnableSeq.conf"
+ Include.wcdhpd.File "/codecs/wcd934x/HeadphoneDisableSeq.conf"
+
+ Value {
+ PlaybackPriority 200
+ PlaybackPCM "hw:${CardId}"
+ PlaybackVolume "RX1 Digital Volume"
+ PlaybackVolume "RX2 Digital Volume"
+ }
+}
+
+SectionDevice."Mic" {
+ Comment "Mic"
+
+ Include.wcdmice.File "/codecs/wcd934x/HeadphoneMicEnableSeq.conf"
+ Include.wcdmicd.File "/codecs/wcd934x/HeadphoneMicDisableSeq.conf"
+
+ DisableSequence [
+ cset "name='AMIC MUX0' ZERO"
+ cset "name='ADC2 Volume' 0"
+ ]
+
+ Value {
+ CapturePriority 100
+ CapturePCM "hw:${CardId},1"
+ CaptureVolume "ADC2 Volume"
+ }
+}
diff --git a/ucm2/sdm845/LENOVO-81JL-LenovoYOGAC630_13Q50-LNVNB161216.conf b/ucm2/sdm845/LENOVO-81JL-LenovoYOGAC630_13Q50-LNVNB161216.conf
new file mode 100644
index 0000000..68fbcce
--- /dev/null
+++ b/ucm2/sdm845/LENOVO-81JL-LenovoYOGAC630_13Q50-LNVNB161216.conf
@@ -0,0 +1,6 @@
+Syntax 3
+
+SectionUseCase."HiFi" {
+ File "/sdm845/HiFi-MM1.conf"
+ Comment "HiFi quality Music."
+}