From: mpa@pengutronix.de (Markus Pargmann)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v5 02/10] ASoC: imx-pcm-dma: DT support
Date: Wed, 24 Apr 2013 16:36:31 +0200 [thread overview]
Message-ID: <1366814199-14827-3-git-send-email-mpa@pengutronix.de> (raw)
In-Reply-To: <1366814199-14827-1-git-send-email-mpa@pengutronix.de>
This patch adds the possibility to pass a of_node as platform_data which
is used by generic-pcm-dma to request a DMA slave channel.
Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
---
Notes:
Changes in v5:
- Use dev.parent pointer to get the of_node.
sound/soc/fsl/imx-pcm-dma.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/sound/soc/fsl/imx-pcm-dma.c b/sound/soc/fsl/imx-pcm-dma.c
index c246fb5..f9577e1 100644
--- a/sound/soc/fsl/imx-pcm-dma.c
+++ b/sound/soc/fsl/imx-pcm-dma.c
@@ -62,9 +62,11 @@ static const struct snd_dmaengine_pcm_config imx_dmaengine_pcm_config = {
int imx_pcm_dma_init(struct platform_device *pdev)
{
+ if (pdev->dev.parent)
+ pdev->dev.of_node = pdev->dev.parent->of_node;
+
return snd_dmaengine_pcm_register(&pdev->dev, &imx_dmaengine_pcm_config,
SND_DMAENGINE_PCM_FLAG_NO_RESIDUE |
- SND_DMAENGINE_PCM_FLAG_NO_DT |
SND_DMAENGINE_PCM_FLAG_COMPAT);
}
--
1.8.1.5
next prev parent reply other threads:[~2013-04-24 14:36 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-24 14:36 [PATCH v5 00/10] ASoC: fsl-ssi: ac97-slave support Markus Pargmann
2013-04-24 14:36 ` [PATCH v5 01/10] ASoC: phycore-ac97: Add DT support Markus Pargmann
2013-04-24 19:45 ` Sascha Hauer
2013-04-25 3:35 ` Shawn Guo
2013-04-25 11:02 ` Markus Pargmann
2013-04-24 14:36 ` Markus Pargmann [this message]
2013-04-24 14:36 ` [PATCH v5 03/10] ASoC: imx-pcm-fiq: Introduce pcm-fiq-params Markus Pargmann
2013-04-24 14:36 ` [PATCH v5 04/10] ASoC: fsl-ssi: Add support for imx-pcm-fiq Markus Pargmann
2013-04-24 14:36 ` [PATCH v5 05/10] ASoC: fsl-ssi: Use generic DMA bindings if possible Markus Pargmann
2013-04-24 14:36 ` [PATCH v5 06/10] ARM: imx: Export ac97 reset functions Markus Pargmann
2013-04-24 14:36 ` [PATCH v5 07/10] ASoC: fsl-ssi: imx ac97 support Markus Pargmann
2013-04-25 3:50 ` Shawn Guo
2013-04-25 11:37 ` Markus Pargmann
2013-04-24 14:36 ` [PATCH v5 08/10] ASoC: fsl: Kconfig: Use fsl-ssi for phycore-ac97 Markus Pargmann
2013-04-24 14:36 ` [PATCH v5 09/10] ASoC: fsl: Move fsl-ssi binding doc to sound/ Markus Pargmann
2013-04-24 14:36 ` [PATCH v5 10/10] ASoC: fsl: Update fsl-ssi binding doc Markus Pargmann
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=1366814199-14827-3-git-send-email-mpa@pengutronix.de \
--to=mpa@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
/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;
as well as URLs for NNTP newsgroup(s).