From: Nicolin Chen <nicoleotsuka@gmail.com>
To: Zidan Wang <zidan.wang@freescale.com>
Cc: alsa-devel@alsa-project.org, broonie@kernel.org, tiwai@suse.com
Subject: Re: [PATCH v2] ASoC: fsl-asoc-card: add wm8960 support
Date: Fri, 14 Aug 2015 12:19:02 -0700 [thread overview]
Message-ID: <20150814191901.GA9884@Asurada> (raw)
In-Reply-To: <d873df2b23a6d39099b3c62db8901d78a60d9362.1439550574.git.zidan.wang@freescale.com>
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
>
next prev parent reply other threads:[~2015-08-14 19:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-14 11:11 [PATCH v2] ASoC: fsl-asoc-card: add wm8960 support Zidan Wang
2015-08-14 19:19 ` Nicolin Chen [this message]
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
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=20150814191901.GA9884@Asurada \
--to=nicoleotsuka@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=tiwai@suse.com \
--cc=zidan.wang@freescale.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 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.