From: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
To: perex@perex.cz
Cc: alsa-devel@alsa-project.org,
Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Subject: [PATCH 4/4] ucm2: Add ucm for Lenovo-YOGA-C630-13Q50 laptop
Date: Thu, 5 Mar 2020 13:44:04 +0000 [thread overview]
Message-ID: <20200305134404.7690-5-srinivas.kandagatla@linaro.org> (raw)
In-Reply-To: <20200305134404.7690-1-srinivas.kandagatla@linaro.org>
This laptop has by 2 WSA Smart speakers over Soundwire and 3.5mm
headset audio connection.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
---
ucm2/Lenovo-YOGA-C630-13Q50/HiFi.conf | 98 +++++++++++++++++++
.../Lenovo-YOGA-C630-13Q50.conf | 6 ++
2 files changed, 104 insertions(+)
create mode 100644 ucm2/Lenovo-YOGA-C630-13Q50/HiFi.conf
create mode 100644 ucm2/Lenovo-YOGA-C630-13Q50/Lenovo-YOGA-C630-13Q50.conf
diff --git a/ucm2/Lenovo-YOGA-C630-13Q50/HiFi.conf b/ucm2/Lenovo-YOGA-C630-13Q50/HiFi.conf
new file mode 100644
index 0000000..bc4f914
--- /dev/null
+++ b/ucm2/Lenovo-YOGA-C630-13Q50/HiFi.conf
@@ -0,0 +1,98 @@
+# Use case configuration for LenovoYOGAC6301.
+# Author: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
+
+SectionVerb {
+
+ EnableSequence [
+ cdev "hw:LenovoYOGAC6301"
+ cset "name='SLIMBUS_0_RX Audio Mixer MultiMedia1' 1"
+ cset "name='MultiMedia2 Mixer SLIMBUS_0_TX' 1"
+
+ <codecs/wcd934x/DefaultEnableSeq.conf>
+ <codecs/wsa881x/DefaultEnableSeq.conf>
+ ]
+
+ DisableSequence [
+ cdev "hw:LenovoYOGAC6301"
+ <codecs/wcd934x/DefaultDisableSeq.conf>
+ cset "name='SLIMBUS_0_RX Audio Mixer MultiMedia1' 0"
+ cset "name='MultiMedia2 Mixer SLIMBUS_0_TX' 0"
+ ]
+
+ Value {
+ TQ "HiFi"
+ }
+}
+
+SectionDevice."Speakers" {
+ Comment "Speakers playback"
+
+ ConflictingDevice [
+ "HeadPhones"
+ ]
+
+
+ EnableSequence [
+ cdev "hw:LenovoYOGAC6301"
+ <codecs/wcd934x/SpeakerEnableSeq.conf>
+ <codecs/wsa881x/SpeakerEnableSeq.conf>
+ ]
+
+ DisableSequence [
+ cdev "hw:LenovoYOGAC6301"
+ <codecs/wsa881x/SpeakerDisableSeq.conf>
+ <codecs/wcd934x/SpeakerDisableSeq.conf>
+ ]
+
+ Value {
+ PlaybackPCM "hw:LenovoYOGAC6301,0"
+ PlaybackChannels "2"
+ PlaybackVolume "RX1 Digital Volume"
+ PlaybackVolume "RX2 Digital Volume"
+ }
+}
+
+SectionDevice."HeadPhones" {
+ Comment "HeadPhones playback"
+
+ ConflictingDevice [
+ "Speakers"
+ ]
+
+ EnableSequence [
+ cdev "hw:LenovoYOGAC6301"
+ <codecs/wcd934x/HeadphoneEnableSeq.conf>
+ ]
+
+ DisableSequence [
+ cdev "hw:LenovoYOGAC6301"
+ <codecs/wcd934x/HeadphoneDisableSeq.conf>
+ ]
+
+ Value {
+ PlaybackPCM "hw:LenovoYOGAC6301,0"
+ PlaybackChannels "2"
+ PlaybackVolume "RX1 Digital Volume"
+ PlaybackVolume "RX2 Digital Volume"
+ }
+}
+
+SectionDevice."HeadPhonesMic" {
+ Comment "HeadPhones Mic"
+
+ EnableSequence [
+ <codecs/wcd934x/HeadphoneMicEnableSeq.conf>
+ ]
+
+ DisableSequence [
+ <codecs/wcd934x/HeadphoneMicDisableSeq.conf>
+ cset "name='AMIC MUX0' ZERO"
+ cset "name='ADC2 Volume' 0"
+ ]
+
+ Value {
+ CapturePCM "hw:LenovoYOGAC6301,1"
+ CaptureChannels "2"
+ CaptureVolume "ADC2 Volume"
+ }
+}
diff --git a/ucm2/Lenovo-YOGA-C630-13Q50/Lenovo-YOGA-C630-13Q50.conf b/ucm2/Lenovo-YOGA-C630-13Q50/Lenovo-YOGA-C630-13Q50.conf
new file mode 100644
index 0000000..114466a
--- /dev/null
+++ b/ucm2/Lenovo-YOGA-C630-13Q50/Lenovo-YOGA-C630-13Q50.conf
@@ -0,0 +1,6 @@
+Syntax 2
+
+SectionUseCase."HiFi" {
+ File "HiFi.conf"
+ Comment "HiFi Music."
+}
--
2.21.0
next prev parent reply other threads:[~2020-03-05 13:48 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-05 13:44 [PATCH 0/4] ucm2: Add support to SDM845 based platforms Srinivas Kandagatla
2020-03-05 13:44 ` [PATCH 1/4] ucm2: codecs: wcd934x: Add Codec sequences Srinivas Kandagatla
2020-03-05 13:44 ` [PATCH 2/4] ucm2: codecs: wsa881x: add codec sequences Srinivas Kandagatla
2020-03-05 13:44 ` [PATCH 3/4] ucm2: DB845c: Add ucm for DB845c board Srinivas Kandagatla
2020-03-05 13:44 ` Srinivas Kandagatla [this message]
2020-03-30 14:10 ` [PATCH 0/4] ucm2: Add support to SDM845 based platforms Srinivas Kandagatla
2020-03-30 14:19 ` Jaroslav Kysela
2020-03-30 14:25 ` Srinivas Kandagatla
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200305134404.7690-5-srinivas.kandagatla@linaro.org \
--to=srinivas.kandagatla@linaro.org \
--cc=alsa-devel@alsa-project.org \
--cc=perex@perex.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).