From: Mark Brown <broonie@kernel.org>
To: Xiubo Li <Li.Xiubo@freescale.com>
Cc: lgirdwood@gmail.com, timur@tabi.org, perex@perex.cz,
r64188@freescale.com, rob.herring@calxeda.com,
pawel.moll@arm.com, mark.rutland@arm.com, swarren@wwwdotorg.org,
ian.campbell@citrix.com, rob@landley.net, linux@arm.linux.org.uk,
tiwai@suse.de, grant.likely@linaro.org,
fabio.estevam@freescale.com, LW@KARO-electronics.de,
oskar@scara.com, shawn.guo@linaro.org, b42378@freescale.com,
b18965@freescale.com, devicetree@vger.kernel.org,
linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
alsa-devel@alsa-project.org
Subject: Re: [PATCHv3 1/7] ALSA: Add SAI SoC Digital Audio Interface driver.
Date: Wed, 18 Dec 2013 18:27:31 +0000 [thread overview]
Message-ID: <20131218182731.GE31886@sirena.org.uk> (raw)
In-Reply-To: <1387250684-23406-2-git-send-email-Li.Xiubo@freescale.com>
[-- Attachment #1: Type: text/plain, Size: 932 bytes --]
On Tue, Dec 17, 2013 at 11:24:38AM +0800, Xiubo Li wrote:
> This adds Freescale SAI ASoC Audio support.
> This implementation is only compatible with device tree definition.
This is mostly good, there are two small issues below but I've applied it
since they don't really affect the driver as a whole. Please send
followup patches to fix the issues below.
> +static int fsl_sai_dai_probe(struct snd_soc_dai *cpu_dai)
> +{
> + struct fsl_sai *sai = dev_get_drvdata(cpu_dai->dev);
> +
> + cpu_dai->playback_dma_data = &sai->dma_params_tx;
> + cpu_dai->capture_dma_data = &sai->dma_params_rx;
You should use snd_soc_dai_init_dma_data() for this.
> +static int fsl_sai_dai_remove(struct snd_soc_dai *cpu_dai)
> +{
> + cpu_dai->playback_dma_data = NULL;
> + cpu_dai->capture_dma_data = NULL;
> +
> + snd_soc_dai_set_drvdata(cpu_dai, NULL);
> +
> + return 0;
> +}
This is all unneeded and this function should be removed entirely.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2013-12-18 18:27 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-17 3:24 [PATCHv3 0/8] ALSA: Add SAI driver and enable SGT15000 codec Xiubo Li
2013-12-17 3:24 ` [PATCHv3 1/7] ALSA: Add SAI SoC Digital Audio Interface driver Xiubo Li
2013-12-18 18:27 ` Mark Brown [this message]
2013-12-17 3:24 ` [PATCHv3 2/7] ARM: dts: Add Freescale SAI ALSA SoC Digital Audio Interface node for VF610 Xiubo Li
2013-12-17 3:24 ` [PATCHv3 3/7] ARM: dts: Enable SAI ALSA SoC DAI device for Vybrid VF610 TOWER board Xiubo Li
2013-12-17 3:24 ` [PATCHv3 4/7] Documentation: Add device tree bindings for Freescale SAI Xiubo Li
2013-12-18 18:31 ` Mark Brown
2013-12-17 3:24 ` [PATCHv3 5/7] ASoC: fsl: Add SGTL5000 based audio machine driver Xiubo Li
2013-12-18 18:37 ` Mark Brown
2013-12-17 3:24 ` [PATCHv3 6/7] ARM: dts: Enable SGTL5000 codec based audio driver node for VF610 TOWER Xiubo Li
2013-12-17 3:24 ` [PATCHv3 7/7] Documentation: Add device tree bindings for Freescale VF610 sound Xiubo Li
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=20131218182731.GE31886@sirena.org.uk \
--to=broonie@kernel.org \
--cc=LW@KARO-electronics.de \
--cc=Li.Xiubo@freescale.com \
--cc=alsa-devel@alsa-project.org \
--cc=b18965@freescale.com \
--cc=b42378@freescale.com \
--cc=devicetree@vger.kernel.org \
--cc=fabio.estevam@freescale.com \
--cc=grant.likely@linaro.org \
--cc=ian.campbell@citrix.com \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=mark.rutland@arm.com \
--cc=oskar@scara.com \
--cc=pawel.moll@arm.com \
--cc=perex@perex.cz \
--cc=r64188@freescale.com \
--cc=rob.herring@calxeda.com \
--cc=rob@landley.net \
--cc=shawn.guo@linaro.org \
--cc=swarren@wwwdotorg.org \
--cc=timur@tabi.org \
--cc=tiwai@suse.de \
/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
all inboxes | Powered by JetHome®