From: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
To: Yu-Hsuan Hsu <yuhsuan@chromium.org>
Cc: linux-kernel@vger.kernel.org,
Cezary Rojewski <cezary.rojewski@intel.com>,
Liam Girdwood <liam.r.girdwood@linux.intel.com>,
Jie Yang <yang.jie@linux.intel.com>,
Mark Brown <broonie@kernel.org>, Jaroslav Kysela <perex@perex.cz>,
Takashi Iwai <tiwai@suse.com>,
Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>,
Tzung-Bi Shih <tzungbi@google.com>,
Thomas Gleixner <tglx@linutronix.de>,
alsa-devel@alsa-project.org
Subject: Re: [alsa-devel] [PATCH] ASoC: Intel: kbl_rt5663_rt5514_max98927: Add dmic format constraint
Date: Fri, 13 Sep 2019 12:27:39 -0500 [thread overview]
Message-ID: <bd442561-8fd9-0814-66c6-e08a21bb1a97@linux.intel.com> (raw)
In-Reply-To: <CAGvk5PpCOG0Jii_vksrewZ_Dfmc+OVM9C6pkCYLY=n+ac-wVaA@mail.gmail.com>
please don't top-post on public mailing lists, thanks.
On 9/13/19 9:45 AM, Yu-Hsuan Hsu wrote:
> Thanks for the review! If I'm not mistaken, the microphone is attached
> to external codec(rt5514) instead of PCH on Kabylake platform. So there
> should be a TDM between DMICs and PCH. We can see in the
> kabylake_ssp0_hw_params function, there are some operations about
> setting tdm slot_width to 16 bits. Therefore, I think it only supports
> S16_LE format for DMICs. Is it correct?
Ah yes, ok. we have other machine drivers where dmic refers to the PCH
attached case, thanks for the precision.
I am still not clear on the problem, you are adding this constraint to a
front-end, so in theory the copier element in the firmware should take
care of converting from 16-bits recorded on the TDM link to the 24 bits
used by the application. Is this not the case? is this patch based on an
actual error and if yes can you share more information to help check
where the problem happens, topology maybe?
>
> Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com
> <mailto:pierre-louis.bossart@linux.intel.com>> 於 2019年9月12日 週四 下
> 午9:02寫道:
>
> On 9/11/19 9:27 PM, Yu-Hsuan Hsu wrote:
> > 24 bits recording from DMIC is not supported for KBL platform because
> > the TDM slot between PCH and codec is 16 bits only. We should add a
> > constraint to remove that unsupported format.
>
> Humm, when you use DMICs they are directly connected to the PCH with a
> standard 1-bit PDM. There is no notion of TDM or slot.
>
> It could very well be that the firmware/topology only support 16 bit (I
> vaguely recall another case where 24 bits was added), but the
> description in the commit message would need to be modified to make the
> reason for this change clearer.
>
> >
> > Signed-off-by: Yu-Hsuan Hsu <yuhsuan@chromium.org
> <mailto:yuhsuan@chromium.org>>
> > ---
> > sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c | 3 +++
> > 1 file changed, 3 insertions(+)
> >
> > diff --git a/sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c
> b/sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c
> > index 74dda8784f1a01..67b276a65a8d2d 100644
> > --- a/sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c
> > +++ b/sound/soc/intel/boards/kbl_rt5663_rt5514_max98927.c
> > @@ -400,6 +400,9 @@ static int kabylake_dmic_startup(struct
> snd_pcm_substream *substream)
> > snd_pcm_hw_constraint_list(runtime, 0,
> SNDRV_PCM_HW_PARAM_CHANNELS,
> > dmic_constraints);
> >
> > + runtime->hw.formats = SNDRV_PCM_FMTBIT_S16_LE;
> > + snd_pcm_hw_constraint_msbits(runtime, 0, 16, 16);
> > +
> > return snd_pcm_hw_constraint_list(substream->runtime, 0,
> > SNDRV_PCM_HW_PARAM_RATE, &constraints_rates);
> > }
> >
>
next prev parent reply other threads:[~2019-09-13 17:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-12 2:27 [PATCH] ASoC: Intel: kbl_rt5663_rt5514_max98927: Add dmic format constraint Yu-Hsuan Hsu
2019-09-12 13:02 ` [alsa-devel] " Pierre-Louis Bossart
2019-09-13 16:01 ` Yu-Hsuan Hsu
[not found] ` <CAGvk5PpCOG0Jii_vksrewZ_Dfmc+OVM9C6pkCYLY=n+ac-wVaA@mail.gmail.com>
2019-09-13 17:27 ` Pierre-Louis Bossart [this message]
2019-09-14 8:34 ` Yu-Hsuan Hsu
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=bd442561-8fd9-0814-66c6-e08a21bb1a97@linux.intel.com \
--to=pierre-louis.bossart@linux.intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=cezary.rojewski@intel.com \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=liam.r.girdwood@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=perex@perex.cz \
--cc=tglx@linutronix.de \
--cc=tiwai@suse.com \
--cc=tzungbi@google.com \
--cc=yang.jie@linux.intel.com \
--cc=yuhsuan@chromium.org \
/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