linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] ASoC: fsl-asoc-card: Add WM8524 support
@ 2020-06-23  6:52 Shengjiu Wang
  2020-06-23  6:52 ` [PATCH 2/2] ASoC: bindings: fsl-asoc-card: Add compatible string for wm8524 Shengjiu Wang
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Shengjiu Wang @ 2020-06-23  6:52 UTC (permalink / raw)
  To: timur, nicoleotsuka, Xiubo.Lee, festevam, lgirdwood, broonie,
	perex, tiwai, alsa-devel, linuxppc-dev, linux-kernel

WM8524 only supports playback mode, and only works at
slave mode.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
---
 sound/soc/fsl/fsl-asoc-card.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/sound/soc/fsl/fsl-asoc-card.c b/sound/soc/fsl/fsl-asoc-card.c
index d0543a53764e..57ea1b072326 100644
--- a/sound/soc/fsl/fsl-asoc-card.c
+++ b/sound/soc/fsl/fsl-asoc-card.c
@@ -611,6 +611,15 @@ static int fsl_asoc_card_probe(struct platform_device *pdev)
 		priv->dai_link[2].dpcm_capture = 0;
 		priv->card.dapm_routes = audio_map_tx;
 		priv->card.num_dapm_routes = ARRAY_SIZE(audio_map_tx);
+	} else if (of_device_is_compatible(np, "fsl,imx-audio-wm8524")) {
+		codec_dai_name = "wm8524-hifi";
+		priv->card.set_bias_level = NULL;
+		priv->dai_fmt |= SND_SOC_DAIFMT_CBS_CFS;
+		priv->dai_link[1].dpcm_capture = 0;
+		priv->dai_link[2].dpcm_capture = 0;
+		priv->cpu_priv.slot_width = 32;
+		priv->card.dapm_routes = audio_map_tx;
+		priv->card.num_dapm_routes = ARRAY_SIZE(audio_map_tx);
 	} else {
 		dev_err(&pdev->dev, "unknown Device Tree compatible\n");
 		ret = -EINVAL;
@@ -760,6 +769,7 @@ static const struct of_device_id fsl_asoc_card_dt_ids[] = {
 	{ .compatible = "fsl,imx-audio-wm8962", },
 	{ .compatible = "fsl,imx-audio-wm8960", },
 	{ .compatible = "fsl,imx-audio-mqs", },
+	{ .compatible = "fsl,imx-audio-wm8524", },
 	{}
 };
 MODULE_DEVICE_TABLE(of, fsl_asoc_card_dt_ids);
-- 
2.21.0


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

* [PATCH 2/2] ASoC: bindings: fsl-asoc-card: Add compatible string for wm8524
  2020-06-23  6:52 [PATCH 1/2] ASoC: fsl-asoc-card: Add WM8524 support Shengjiu Wang
@ 2020-06-23  6:52 ` Shengjiu Wang
  2020-06-23 23:30   ` Nicolin Chen
  2020-06-23 23:30 ` [PATCH 1/2] ASoC: fsl-asoc-card: Add WM8524 support Nicolin Chen
  2020-06-24 15:38 ` Mark Brown
  2 siblings, 1 reply; 5+ messages in thread
From: Shengjiu Wang @ 2020-06-23  6:52 UTC (permalink / raw)
  To: timur, nicoleotsuka, Xiubo.Lee, festevam, lgirdwood, broonie,
	perex, tiwai, alsa-devel, linuxppc-dev, linux-kernel

In order to support wm8524 codec with fsl-asoc-card machine
driver, add compatible string "fsl,imx-audio-wm8524".

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
---
 Documentation/devicetree/bindings/sound/fsl-asoc-card.txt | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/sound/fsl-asoc-card.txt b/Documentation/devicetree/bindings/sound/fsl-asoc-card.txt
index ca9a3a43adfd..133d7e14a4d0 100644
--- a/Documentation/devicetree/bindings/sound/fsl-asoc-card.txt
+++ b/Documentation/devicetree/bindings/sound/fsl-asoc-card.txt
@@ -36,6 +36,8 @@ The compatible list for this generic sound card currently:
 
  "fsl,imx-audio-mqs"
 
+ "fsl,imx-audio-wm8524"
+
 Required properties:
 
   - compatible		: Contains one of entries in the compatible list.
-- 
2.21.0


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

* Re: [PATCH 1/2] ASoC: fsl-asoc-card: Add WM8524 support
  2020-06-23  6:52 [PATCH 1/2] ASoC: fsl-asoc-card: Add WM8524 support Shengjiu Wang
  2020-06-23  6:52 ` [PATCH 2/2] ASoC: bindings: fsl-asoc-card: Add compatible string for wm8524 Shengjiu Wang
@ 2020-06-23 23:30 ` Nicolin Chen
  2020-06-24 15:38 ` Mark Brown
  2 siblings, 0 replies; 5+ messages in thread
From: Nicolin Chen @ 2020-06-23 23:30 UTC (permalink / raw)
  To: Shengjiu Wang
  Cc: timur, Xiubo.Lee, festevam, lgirdwood, broonie, perex, tiwai,
	alsa-devel, linuxppc-dev, linux-kernel

On Tue, Jun 23, 2020 at 02:52:46PM +0800, Shengjiu Wang wrote:
> WM8524 only supports playback mode, and only works at
> slave mode.
> 
> Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>

Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>

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

* Re: [PATCH 2/2] ASoC: bindings: fsl-asoc-card: Add compatible string for wm8524
  2020-06-23  6:52 ` [PATCH 2/2] ASoC: bindings: fsl-asoc-card: Add compatible string for wm8524 Shengjiu Wang
@ 2020-06-23 23:30   ` Nicolin Chen
  0 siblings, 0 replies; 5+ messages in thread
From: Nicolin Chen @ 2020-06-23 23:30 UTC (permalink / raw)
  To: Shengjiu Wang
  Cc: timur, Xiubo.Lee, festevam, lgirdwood, broonie, perex, tiwai,
	alsa-devel, linuxppc-dev, linux-kernel

On Tue, Jun 23, 2020 at 02:52:47PM +0800, Shengjiu Wang wrote:
> In order to support wm8524 codec with fsl-asoc-card machine
> driver, add compatible string "fsl,imx-audio-wm8524".
> 
> Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>

Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>

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

* Re: [PATCH 1/2] ASoC: fsl-asoc-card: Add WM8524 support
  2020-06-23  6:52 [PATCH 1/2] ASoC: fsl-asoc-card: Add WM8524 support Shengjiu Wang
  2020-06-23  6:52 ` [PATCH 2/2] ASoC: bindings: fsl-asoc-card: Add compatible string for wm8524 Shengjiu Wang
  2020-06-23 23:30 ` [PATCH 1/2] ASoC: fsl-asoc-card: Add WM8524 support Nicolin Chen
@ 2020-06-24 15:38 ` Mark Brown
  2 siblings, 0 replies; 5+ messages in thread
From: Mark Brown @ 2020-06-24 15:38 UTC (permalink / raw)
  To: nicoleotsuka, festevam, linuxppc-dev, alsa-devel, Xiubo.Lee,
	lgirdwood, timur, tiwai, perex, Shengjiu Wang, linux-kernel

On Tue, 23 Jun 2020 14:52:46 +0800, Shengjiu Wang wrote:
> WM8524 only supports playback mode, and only works at
> slave mode.

Applied to

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

Thanks!

[1/2] ASoC: fsl-asoc-card: Add WM8524 support
      commit: 3cd990267401fc7d0b222fc81f637e75e46967e0
[2/2] ASoC: bindings: fsl-asoc-card: Add compatible string for wm8524
      commit: 3b3372fa65bab619f99bcfe272e92fb6faa07219

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] 5+ messages in thread

end of thread, other threads:[~2020-06-24 15:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-23  6:52 [PATCH 1/2] ASoC: fsl-asoc-card: Add WM8524 support Shengjiu Wang
2020-06-23  6:52 ` [PATCH 2/2] ASoC: bindings: fsl-asoc-card: Add compatible string for wm8524 Shengjiu Wang
2020-06-23 23:30   ` Nicolin Chen
2020-06-23 23:30 ` [PATCH 1/2] ASoC: fsl-asoc-card: Add WM8524 support Nicolin Chen
2020-06-24 15:38 ` 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).