linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/1] Fix 32 bit format for adau7002
@ 2020-11-18  0:58 xuyuqing
  2020-11-18  0:58 ` [PATCH v1 1/1] ASoC: qcom: sc7180: fix " xuyuqing
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: xuyuqing @ 2020-11-18  0:58 UTC (permalink / raw)
  To: linux-kernel
  Cc: Mark Brown, Taniya Das, Rohit kumar, Banajit Goswami,
	Patrick Lai, Andy Gross, Bjorn Andersson, Liam Girdwood,
	Rob Herring, Jaroslav Kysela, Takashi Iwai, Srini Kandagatla,
	Stephan Gerhold, dianders, dgreid, tzungbi, cychiang, judyhsiao,
	linux-arm-kernel, linux-arm-msm, devicetree, alsa-devel,
	zhouguohui, xuyuqing

the microphone is attached to external codec(adau7002)
instead of rt5682.We need to always use 32 bit format on sc7180
to meet the clock requirement of adau7002:
The ADAU7002 requires a BCLK rate 
that is a minimum of 64× the LRCLK sample rate

xuyuqing (1):
  ASoC: qcom: sc7180: fix 32 bit format for adau7002

 sound/soc/qcom/sc7180.c | 3 +++
 1 file changed, 3 insertions(+)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH v1 1/1] ASoC: qcom: sc7180: fix 32 bit format for adau7002
  2020-11-18  0:58 [PATCH v1 0/1] Fix 32 bit format for adau7002 xuyuqing
@ 2020-11-18  0:58 ` xuyuqing
  2020-11-25 12:49 ` [PATCH v1 0/1] Fix " Mark Brown
  2020-11-27 16:20 ` Mark Brown
  2 siblings, 0 replies; 4+ messages in thread
From: xuyuqing @ 2020-11-18  0:58 UTC (permalink / raw)
  To: linux-kernel
  Cc: Mark Brown, Taniya Das, Rohit kumar, Banajit Goswami,
	Patrick Lai, Andy Gross, Bjorn Andersson, Liam Girdwood,
	Rob Herring, Jaroslav Kysela, Takashi Iwai, Srini Kandagatla,
	Stephan Gerhold, dianders, dgreid, tzungbi, cychiang, judyhsiao,
	linux-arm-kernel, linux-arm-msm, devicetree, alsa-devel,
	zhouguohui, xuyuqing

the microphone is attached to external codec(adau7002)
instead of rt5682.We need to always use 32 bit format on sc7180
to meet the clock requirement of adau7002:
The ADAU7002 requires a BCLK rate 
that is a minimum of 64× the LRCLK sample rate

Signed-off-by: xuyuqing <xuyuqing@huaqin.corp-partner.google.com>
---
 sound/soc/qcom/sc7180.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sound/soc/qcom/sc7180.c b/sound/soc/qcom/sc7180.c
index de70fa792aea..768566bb57a5 100644
--- a/sound/soc/qcom/sc7180.c
+++ b/sound/soc/qcom/sc7180.c
@@ -245,6 +245,7 @@ static int sc7180_adau7002_snd_startup(struct snd_pcm_substream *substream)
 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
 	struct snd_soc_dai *cpu_dai = asoc_rtd_to_cpu(rtd, 0);
 	struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0);
+	struct snd_pcm_runtime *runtime = substream->runtime;
 
 	switch (cpu_dai->id) {
 	case MI2S_PRIMARY:
@@ -252,6 +253,8 @@ static int sc7180_adau7002_snd_startup(struct snd_pcm_substream *substream)
 				    SND_SOC_DAIFMT_CBS_CFS |
 				    SND_SOC_DAIFMT_NB_NF |
 				    SND_SOC_DAIFMT_I2S);
+		runtime->hw.formats = SNDRV_PCM_FMTBIT_S32_LE;
+		snd_pcm_hw_constraint_msbits(runtime, 0, 32, 32);
 
 		break;
 	case MI2S_SECONDARY:
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH v1 0/1] Fix 32 bit format for adau7002
  2020-11-18  0:58 [PATCH v1 0/1] Fix 32 bit format for adau7002 xuyuqing
  2020-11-18  0:58 ` [PATCH v1 1/1] ASoC: qcom: sc7180: fix " xuyuqing
@ 2020-11-25 12:49 ` Mark Brown
  2020-11-27 16:20 ` Mark Brown
  2 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2020-11-25 12:49 UTC (permalink / raw)
  To: xuyuqing
  Cc: linux-kernel, Taniya Das, Rohit kumar, Banajit Goswami,
	Patrick Lai, Andy Gross, Bjorn Andersson, Liam Girdwood,
	Rob Herring, Jaroslav Kysela, Takashi Iwai, Srini Kandagatla,
	Stephan Gerhold, dianders, dgreid, tzungbi, cychiang, judyhsiao,
	linux-arm-kernel, linux-arm-msm, devicetree, alsa-devel,
	zhouguohui

[-- Attachment #1: Type: text/plain, Size: 624 bytes --]

On Wed, Nov 18, 2020 at 08:58:57AM +0800, xuyuqing wrote:
> the microphone is attached to external codec(adau7002)
> instead of rt5682.We need to always use 32 bit format on sc7180
> to meet the clock requirement of adau7002:
> The ADAU7002 requires a BCLK rate 
> that is a minimum of 64× the LRCLK sample rate

Please don't send cover letters for single patches, if there is anything
that needs saying put it in the changelog of the patch or after the ---
if it's administrative stuff.  This reduces mail volume and ensures that 
any important information is recorded in the changelog rather than being
lost. 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v1 0/1] Fix 32 bit format for adau7002
  2020-11-18  0:58 [PATCH v1 0/1] Fix 32 bit format for adau7002 xuyuqing
  2020-11-18  0:58 ` [PATCH v1 1/1] ASoC: qcom: sc7180: fix " xuyuqing
  2020-11-25 12:49 ` [PATCH v1 0/1] Fix " Mark Brown
@ 2020-11-27 16:20 ` Mark Brown
  2 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2020-11-27 16:20 UTC (permalink / raw)
  To: xuyuqing, linux-kernel
  Cc: dgreid, zhouguohui, Bjorn Andersson, linux-arm-kernel,
	Rob Herring, judyhsiao, Patrick Lai, cychiang, Takashi Iwai,
	linux-arm-msm, Stephan Gerhold, Srini Kandagatla, dianders,
	Andy Gross, Banajit Goswami, Rohit kumar, tzungbi, devicetree,
	Taniya Das, alsa-devel, Liam Girdwood

On Wed, 18 Nov 2020 08:58:57 +0800, xuyuqing wrote:
> the microphone is attached to external codec(adau7002)
> instead of rt5682.We need to always use 32 bit format on sc7180
> to meet the clock requirement of adau7002:
> The ADAU7002 requires a BCLK rate
> that is a minimum of 64× the LRCLK sample rate
> 
> xuyuqing (1):
>   ASoC: qcom: sc7180: fix 32 bit format for adau7002
> 
> [...]

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/1] ASoC: qcom: sc7180: fix 32 bit format for adau7002
      commit: 7f2c63d6ae0754e5389c5942cb3bd670ea6cff40

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-11-27 16:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-18  0:58 [PATCH v1 0/1] Fix 32 bit format for adau7002 xuyuqing
2020-11-18  0:58 ` [PATCH v1 1/1] ASoC: qcom: sc7180: fix " xuyuqing
2020-11-25 12:49 ` [PATCH v1 0/1] Fix " Mark Brown
2020-11-27 16:20 ` Mark Brown

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).