* [PATCH v2] ASoC: fsl-asoc-card: add wm8960 support
@ 2015-08-14 11:11 Zidan Wang
2015-08-14 19:19 ` Nicolin Chen
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Zidan Wang @ 2015-08-14 11:11 UTC (permalink / raw)
To: nicoleotsuka; +Cc: alsa-devel, broonie, tiwai, Zidan Wang
add wm8960 support for fsl-asoc-card
Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
---
sound/soc/fsl/fsl-asoc-card.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/sound/soc/fsl/fsl-asoc-card.c b/sound/soc/fsl/fsl-asoc-card.c
index 040362f..5aeb6ed 100644
--- a/sound/soc/fsl/fsl-asoc-card.c
+++ b/sound/soc/fsl/fsl-asoc-card.c
@@ -23,6 +23,7 @@
#include "../codecs/sgtl5000.h"
#include "../codecs/wm8962.h"
+#include "../codecs/wm8960.h"
#define RX 0
#define TX 1
@@ -479,6 +480,12 @@ static int fsl_asoc_card_probe(struct platform_device *pdev)
priv->codec_priv.fll_id = WM8962_SYSCLK_FLL;
priv->codec_priv.pll_id = WM8962_FLL;
priv->dai_fmt |= SND_SOC_DAIFMT_CBM_CFM;
+ } else if (of_device_is_compatible(np, "fsl,imx-audio-wm8960")) {
+ codec_dai_name = "wm8960-hifi";
+ priv->card.set_bias_level = fsl_asoc_card_set_bias_level;
+ priv->codec_priv.fll_id = WM8960_SYSCLK_AUTO;
+ priv->codec_priv.pll_id = WM8960_SYSCLK_AUTO;
+ priv->dai_fmt |= SND_SOC_DAIFMT_CBM_CFM;
} else {
dev_err(&pdev->dev, "unknown Device Tree compatible\n");
return -EINVAL;
@@ -582,6 +589,7 @@ static const struct of_device_id fsl_asoc_card_dt_ids[] = {
{ .compatible = "fsl,imx-audio-cs42888", },
{ .compatible = "fsl,imx-audio-sgtl5000", },
{ .compatible = "fsl,imx-audio-wm8962", },
+ { .compatible = "fsl,imx-audio-wm8960", },
{}
};
--
1.9.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v2] ASoC: fsl-asoc-card: add wm8960 support
2015-08-14 11:11 [PATCH v2] ASoC: fsl-asoc-card: add wm8960 support Zidan Wang
@ 2015-08-14 19:19 ` Nicolin Chen
2015-08-15 16:22 ` Applied "ASoC: fsl-asoc-card: add wm8960 support" to the asoc tree Mark Brown
2016-04-05 17:38 ` [PATCH v2] ASoC: fsl-asoc-card: add wm8960 support Fabio Estevam
2 siblings, 0 replies; 5+ messages in thread
From: Nicolin Chen @ 2015-08-14 19:19 UTC (permalink / raw)
To: Zidan Wang; +Cc: alsa-devel, broonie, tiwai
On Fri, Aug 14, 2015 at 07:11:09PM +0800, Zidan Wang wrote:
> add wm8960 support for fsl-asoc-card
>
> Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
> ---
Please put a change log between these two lines next time.
Thanks
Nicolin
> sound/soc/fsl/fsl-asoc-card.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/sound/soc/fsl/fsl-asoc-card.c b/sound/soc/fsl/fsl-asoc-card.c
> index 040362f..5aeb6ed 100644
> --- a/sound/soc/fsl/fsl-asoc-card.c
> +++ b/sound/soc/fsl/fsl-asoc-card.c
> @@ -23,6 +23,7 @@
>
> #include "../codecs/sgtl5000.h"
> #include "../codecs/wm8962.h"
> +#include "../codecs/wm8960.h"
>
> #define RX 0
> #define TX 1
> @@ -479,6 +480,12 @@ static int fsl_asoc_card_probe(struct platform_device *pdev)
> priv->codec_priv.fll_id = WM8962_SYSCLK_FLL;
> priv->codec_priv.pll_id = WM8962_FLL;
> priv->dai_fmt |= SND_SOC_DAIFMT_CBM_CFM;
> + } else if (of_device_is_compatible(np, "fsl,imx-audio-wm8960")) {
> + codec_dai_name = "wm8960-hifi";
> + priv->card.set_bias_level = fsl_asoc_card_set_bias_level;
> + priv->codec_priv.fll_id = WM8960_SYSCLK_AUTO;
> + priv->codec_priv.pll_id = WM8960_SYSCLK_AUTO;
> + priv->dai_fmt |= SND_SOC_DAIFMT_CBM_CFM;
> } else {
> dev_err(&pdev->dev, "unknown Device Tree compatible\n");
> return -EINVAL;
> @@ -582,6 +589,7 @@ static const struct of_device_id fsl_asoc_card_dt_ids[] = {
> { .compatible = "fsl,imx-audio-cs42888", },
> { .compatible = "fsl,imx-audio-sgtl5000", },
> { .compatible = "fsl,imx-audio-wm8962", },
> + { .compatible = "fsl,imx-audio-wm8960", },
> {}
> };
>
> --
> 1.9.1
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Applied "ASoC: fsl-asoc-card: add wm8960 support" to the asoc tree
2015-08-14 11:11 [PATCH v2] ASoC: fsl-asoc-card: add wm8960 support Zidan Wang
2015-08-14 19:19 ` Nicolin Chen
@ 2015-08-15 16:22 ` Mark Brown
2016-04-05 17:38 ` [PATCH v2] ASoC: fsl-asoc-card: add wm8960 support Fabio Estevam
2 siblings, 0 replies; 5+ messages in thread
From: Mark Brown @ 2015-08-15 16:22 UTC (permalink / raw)
To: Zidan Wang, Nicolin Chen, Mark Brown; +Cc: alsa-devel
The patch
ASoC: fsl-asoc-card: add wm8960 support
has been applied to the asoc tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
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
>From 50e0ee01382b8e08289d3db209738c5856fd25cf Mon Sep 17 00:00:00 2001
From: Zidan Wang <zidan.wang@freescale.com>
Date: Fri, 14 Aug 2015 19:11:09 +0800
Subject: [PATCH] ASoC: fsl-asoc-card: add wm8960 support
add wm8960 support for fsl-asoc-card
Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
sound/soc/fsl/fsl-asoc-card.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/sound/soc/fsl/fsl-asoc-card.c b/sound/soc/fsl/fsl-asoc-card.c
index 040362f..5aeb6ed 100644
--- a/sound/soc/fsl/fsl-asoc-card.c
+++ b/sound/soc/fsl/fsl-asoc-card.c
@@ -23,6 +23,7 @@
#include "../codecs/sgtl5000.h"
#include "../codecs/wm8962.h"
+#include "../codecs/wm8960.h"
#define RX 0
#define TX 1
@@ -479,6 +480,12 @@ static int fsl_asoc_card_probe(struct platform_device *pdev)
priv->codec_priv.fll_id = WM8962_SYSCLK_FLL;
priv->codec_priv.pll_id = WM8962_FLL;
priv->dai_fmt |= SND_SOC_DAIFMT_CBM_CFM;
+ } else if (of_device_is_compatible(np, "fsl,imx-audio-wm8960")) {
+ codec_dai_name = "wm8960-hifi";
+ priv->card.set_bias_level = fsl_asoc_card_set_bias_level;
+ priv->codec_priv.fll_id = WM8960_SYSCLK_AUTO;
+ priv->codec_priv.pll_id = WM8960_SYSCLK_AUTO;
+ priv->dai_fmt |= SND_SOC_DAIFMT_CBM_CFM;
} else {
dev_err(&pdev->dev, "unknown Device Tree compatible\n");
return -EINVAL;
@@ -582,6 +589,7 @@ static const struct of_device_id fsl_asoc_card_dt_ids[] = {
{ .compatible = "fsl,imx-audio-cs42888", },
{ .compatible = "fsl,imx-audio-sgtl5000", },
{ .compatible = "fsl,imx-audio-wm8962", },
+ { .compatible = "fsl,imx-audio-wm8960", },
{}
};
--
2.5.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v2] ASoC: fsl-asoc-card: add wm8960 support
2015-08-14 11:11 [PATCH v2] ASoC: fsl-asoc-card: add wm8960 support Zidan Wang
2015-08-14 19:19 ` Nicolin Chen
2015-08-15 16:22 ` Applied "ASoC: fsl-asoc-card: add wm8960 support" to the asoc tree Mark Brown
@ 2016-04-05 17:38 ` Fabio Estevam
2016-04-05 17:40 ` Fabio Estevam
2 siblings, 1 reply; 5+ messages in thread
From: Fabio Estevam @ 2016-04-05 17:38 UTC (permalink / raw)
To: Zidan Wang; +Cc: Nicolin Chen, alsa-devel@alsa-project.org, Mark Brown
Hi Zidan,
On Fri, Aug 14, 2015 at 8:11 AM, Zidan Wang <zidan.wang@freescale.com> wrote:
> add wm8960 support for fsl-asoc-card
>
> Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
Have you managed to get fsl-asoc-card to work with wm8960 on a imx7d-sdb board?
I am trying to do this now, but after running 'aplay file.wav' I get
no sound and the prompt never comes back.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2] ASoC: fsl-asoc-card: add wm8960 support
2016-04-05 17:38 ` [PATCH v2] ASoC: fsl-asoc-card: add wm8960 support Fabio Estevam
@ 2016-04-05 17:40 ` Fabio Estevam
0 siblings, 0 replies; 5+ messages in thread
From: Fabio Estevam @ 2016-04-05 17:40 UTC (permalink / raw)
To: Zidan Wang; +Cc: Nicolin Chen, alsa-devel@alsa-project.org, Mark Brown
Resending with Zidan's NXP email.
On Tue, Apr 5, 2016 at 2:38 PM, Fabio Estevam <festevam@gmail.com> wrote:
> Hi Zidan,
>
> On Fri, Aug 14, 2015 at 8:11 AM, Zidan Wang <zidan.wang@freescale.com> wrote:
>> add wm8960 support for fsl-asoc-card
>>
>> Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
>
> Have you managed to get fsl-asoc-card to work with wm8960 on a imx7d-sdb board?
>
> I am trying to do this now, but after running 'aplay file.wav' I get
> no sound and the prompt never comes back.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-04-05 17:40 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-14 11:11 [PATCH v2] ASoC: fsl-asoc-card: add wm8960 support Zidan Wang
2015-08-14 19:19 ` Nicolin Chen
2015-08-15 16:22 ` Applied "ASoC: fsl-asoc-card: add wm8960 support" to the asoc tree Mark Brown
2016-04-05 17:38 ` [PATCH v2] ASoC: fsl-asoc-card: add wm8960 support Fabio Estevam
2016-04-05 17:40 ` Fabio Estevam
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.