From: Charles Keepax <ckeepax@opensource.cirrus.com>
To: Svyatoslav Ryhel <clamor95@gmail.com>
Cc: Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>, Jaroslav Kysela <perex@perex.cz>,
Takashi Iwai <tiwai@suse.com>,
Maxim Schwalm <maxim.schwalm@gmail.com>,
Dmitry Osipenko <digetx@gmail.com>,
<patches@opensource.cirrus.com>, <alsa-devel@alsa-project.org>,
<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v1 1/1] ASoC: wm8903: implement DMIC support
Date: Mon, 27 Mar 2023 08:32:08 +0000 [thread overview]
Message-ID: <20230327083208.GQ68926@ediswmail.ad.cirrus.com> (raw)
In-Reply-To: <20230325083643.7575-2-clamor95@gmail.com>
On Sat, Mar 25, 2023 at 10:36:43AM +0200, Svyatoslav Ryhel wrote:
> Add DMIC input and routing.
>
> Tested-by: Svyatoslav Ryhel <clamor95@gmail.com> # ASUS TF300T
> Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
> ---
> sound/soc/codecs/wm8903.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/sound/soc/codecs/wm8903.c b/sound/soc/codecs/wm8903.c
> index 41346e5ec5ad..9c2f0aadcff3 100644
> --- a/sound/soc/codecs/wm8903.c
> +++ b/sound/soc/codecs/wm8903.c
> @@ -9,7 +9,6 @@
> *
> * TODO:
> * - TDM mode configuration.
> - * - Digital microphone support.
> */
>
> #include <linux/module.h>
> @@ -816,6 +815,7 @@ SND_SOC_DAPM_INPUT("IN2L"),
> SND_SOC_DAPM_INPUT("IN2R"),
> SND_SOC_DAPM_INPUT("IN3L"),
> SND_SOC_DAPM_INPUT("IN3R"),
> +SND_SOC_DAPM_INPUT("DMIC"),
> SND_SOC_DAPM_INPUT("DMICDAT"),
There is already a datapath for the DMIC here, DMICDAT. Are you
sure you don't just need to set the "Left/Right ADC Input" muxes
correctly through the ALSA controls?
>
> SND_SOC_DAPM_OUTPUT("HPOUTL"),
> @@ -996,6 +996,9 @@ static const struct snd_soc_dapm_route wm8903_intercon[] = {
> { "AIFTXL", NULL, "Left Capture Mux" },
> { "AIFTXR", NULL, "Right Capture Mux" },
>
> + { "ADCL", NULL, "DMIC" },
> + { "ADCR", NULL, "DMIC" },
> +
And at any rate these should not be directly connected to the
ADC you need some muxing to indicate whether the DMIC or AMICs
are active. Which the DMICDAT path appears to already have.
Thanks,
Charles
next prev parent reply other threads:[~2023-03-27 8:38 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-25 8:36 [PATCH v1 0/1] Implement DMIC support in WM8903 Svyatoslav Ryhel
2023-03-25 8:36 ` [PATCH v1 1/1] ASoC: wm8903: implement DMIC support Svyatoslav Ryhel
2023-03-27 8:32 ` Charles Keepax [this message]
2023-03-27 8:37 ` Svyatoslav Ryhel
2023-03-27 10:14 ` Charles Keepax
2023-03-27 14:48 ` Svyatoslav Ryhel
2023-03-27 8:33 ` [PATCH v1 0/1] Implement DMIC support in WM8903 Charles Keepax
2023-03-27 8:38 ` Svyatoslav Ryhel
2023-03-27 10:03 ` Charles Keepax
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=20230327083208.GQ68926@ediswmail.ad.cirrus.com \
--to=ckeepax@opensource.cirrus.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=clamor95@gmail.com \
--cc=digetx@gmail.com \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=maxim.schwalm@gmail.com \
--cc=patches@opensource.cirrus.com \
--cc=perex@perex.cz \
--cc=tiwai@suse.com \
/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
all inboxes | Powered by JetHome®