From: Hans de Goede <hdegoede@redhat.com>
To: alsa-devel@alsa-project.org
Cc: Takashi Iwai <tiwai@suse.de>, Hans de Goede <hdegoede@redhat.com>,
Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Subject: [PATCH 2/5] conf/ucm: chtrt5645: Microphone recording fixes
Date: Sat, 28 Apr 2018 21:51:57 +0200 [thread overview]
Message-ID: <20180428195200.11722-3-hdegoede@redhat.com> (raw)
In-Reply-To: <20180428195200.11722-1-hdegoede@redhat.com>
From: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Apply microphone recording changes from:
https://github.com/plbossart/UCM.git
Cc: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
[hdegoede@redhat.com: Drop non generic DMIC changes]
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
src/conf/ucm/chtrt5645/HiFi.conf | 50 ++++++++++++++++++++++++++------
1 file changed, 41 insertions(+), 9 deletions(-)
diff --git a/src/conf/ucm/chtrt5645/HiFi.conf b/src/conf/ucm/chtrt5645/HiFi.conf
index f63392d4..b97a9c00 100644
--- a/src/conf/ucm/chtrt5645/HiFi.conf
+++ b/src/conf/ucm/chtrt5645/HiFi.conf
@@ -4,8 +4,8 @@ SectionVerb {
TQ "HiFi"
# ALSA PCM device for HiFi
- PlaybackPCM "hw:chtrt5645,0"
- CapturePCM "hw:chtrt5645,0"
+ PlaybackPCM "hw:chtrt5645"
+ CapturePCM "hw:chtrt5645"
}
EnableSequence [
@@ -255,7 +255,7 @@ SectionDevice."Headphones" {
}
SectionDevice."Mic".0 {
- Comment "Internal Microphone"
+ Comment "Internal Analog Microphones"
Value {
CaptureChannels "2"
@@ -266,15 +266,33 @@ SectionDevice."Mic".0 {
cdev "hw:chtrt5645"
cset "name='Int Mic Switch' on"
- cset "name='Sto1 ADC MIXL ADC2 Switch' on"
- cset "name='Sto1 ADC MIXR ADC2 Switch' on"
+
+ cset "name='Sto1 ADC MIXL ADC1 Switch' on"
+ cset "name='Sto1 ADC MIXR ADC1 Switch' on"
+ cset "name='Sto1 ADC MIXL ADC2 Switch' off"
+ cset "name='Sto1 ADC MIXR ADC2 Switch' off"
+
+ cset "name='Mono ADC MIXL ADC1 Switch' on"
+ cset "name='Mono ADC MIXR ADC1 Switch' on"
+ cset "name='Mono ADC MIXL ADC2 Switch' off"
+ cset "name='Mono ADC MIXR ADC2 Switch' off"
+
+ cset "name='RECMIXL BST1 Switch' on"
+ cset "name='RECMIXR BST1 Switch' on"
+
]
DisableSequence [
cdev "hw:chtrt5645"
- cset "name='Sto1 ADC MIXL ADC2 Switch' off"
- cset "name='Sto1 ADC MIXR ADC2 Switch' off"
+ cset "name='Sto1 ADC MIXL ADC1 Switch' off"
+ cset "name='Sto1 ADC MIXR ADC1 Switch' off"
+ cset "name='Mono ADC MIXL ADC1 Switch' off"
+ cset "name='Mono ADC MIXR ADC1 Switch' off"
+
+ cset "name='RECMIXL BST1 Switch' off"
+ cset "name='RECMIXR BST1 Switch' off"
+
cset "name='Int Mic Switch' off"
]
}
@@ -292,19 +310,33 @@ SectionDevice."HSMic".0 {
cdev "hw:chtrt5645"
cset "name='Headset Mic Switch' on"
- cset "name='RECMIXL BST1 Switch' on"
- cset "name='RECMIXR BST1 Switch' on"
+
cset "name='Sto1 ADC MIXL ADC1 Switch' on"
cset "name='Sto1 ADC MIXR ADC1 Switch' on"
+ cset "name='Sto1 ADC MIXL ADC2 Switch' off"
+ cset "name='Sto1 ADC MIXR ADC2 Switch' off"
+
+ cset "name='Mono ADC MIXL ADC1 Switch' on"
+ cset "name='Mono ADC MIXR ADC1 Switch' on"
+ cset "name='Mono ADC MIXL ADC2 Switch' off"
+ cset "name='Mono ADC MIXR ADC2 Switch' off"
+
+ cset "name='RECMIXL BST1 Switch' on"
+ cset "name='RECMIXR BST1 Switch' on"
+
]
DisableSequence [
cdev "hw:chtrt5645"
cset "name='Headset Mic Switch' off"
+
cset "name='RECMIXL BST1 Switch' off"
cset "name='RECMIXR BST1 Switch' off"
cset "name='Sto1 ADC MIXL ADC1 Switch' off"
cset "name='Sto1 ADC MIXR ADC1 Switch' off"
+ cset "name='Mono ADC MIXL ADC1 Switch' on"
+ cset "name='Mono ADC MIXR ADC1 Switch' on"
+
]
}
--
2.17.0
next prev parent reply other threads:[~2018-04-28 19:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-28 19:51 [PATCH 0/5] conf/ucm: chtrt5645: Various updates Hans de Goede
2018-04-28 19:51 ` [PATCH 1/5] conf/ucm: chtrt5645: Cleanup and playback fixes Hans de Goede
2018-04-28 19:51 ` Hans de Goede [this message]
2018-04-28 19:51 ` [PATCH 3/5] conf/ucm: chtrt5645: Fix recording from internal analog microphone Hans de Goede
2018-04-28 19:51 ` [PATCH 4/5] conf/ucm: chtrt5645: At config for the Asus T100HA Hans de Goede
2018-04-28 19:52 ` [PATCH 5/5] conf/ucm: chtrt5645: At config for the Lenovo Ideapad Miix 320 Hans de Goede
2018-05-02 7:12 ` [PATCH 0/5] conf/ucm: chtrt5645: Various updates Takashi Iwai
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=20180428195200.11722-3-hdegoede@redhat.com \
--to=hdegoede@redhat.com \
--cc=alsa-devel@alsa-project.org \
--cc=pierre-louis.bossart@linux.intel.com \
--cc=tiwai@suse.de \
/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).