From: Ben Dooks <ben.dooks@codethink.co.uk>
To: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>,
Mark Brown <broonie@kernel.org>
Cc: Linux-ALSA <alsa-devel@alsa-project.org>,
Simon <horms@verge.net.au>, Liam Girdwood <lgirdwood@gmail.com>
Subject: Re: [PATCH 5/6] ASoC: rsnd: care DMA slave channel name for DT
Date: Mon, 02 Jun 2014 22:33:45 +0100 [thread overview]
Message-ID: <538CEDB9.3020506@codethink.co.uk> (raw)
In-Reply-To: <87iooxc8pg.wl%kuninori.morimoto.gx@renesas.com>
On 23/05/14 07:25, Kuninori Morimoto wrote:
> Renesas sound driver is supporting to use DMAEngine.
> But, DMA slave channel name "tx", "rx" is not enough
> in DT case.
> Becuase, it has many ports and path combination.
>
> This patch adds rsnd_dma_of_name() to find
> DMA channel name, for example
> memory to SSI0 is "mem_ssi0",
> SSI0 to memory is "ssi0_mem",
> SSI0 to SRC0 is "ssi0_src0",
> SRC0 to SSI0 is "src0_ssi0",
> SRC0 to DVC0 is "src0_dvc0"...
I commented on another patch where the ssiX nodes are not being
used, this would be so much nicer if we removed the ssiX from the
name and used the of-pointer for the ssiX node to lookup the DMA...
This is going to produce a hugh list of DMA entries that are going
to be difficult to manage.
> Renesas sound want to use PIO transfer mode for some reasons.
> It will be PIO tranfer mode if device node doesn't have
> DMA settings.
>
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> ---
> .../devicetree/bindings/sound/renesas,rsnd.txt | 1 +
> sound/soc/sh/rcar/core.c | 80 +++++++++++++++++++-
> sound/soc/sh/rcar/ssi.c | 6 ++
> 3 files changed, 86 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/sound/renesas,rsnd.txt b/Documentation/devicetree/bindings/sound/renesas,rsnd.txt
> index a44e917..8346cab 100644
> --- a/Documentation/devicetree/bindings/sound/renesas,rsnd.txt
> +++ b/Documentation/devicetree/bindings/sound/renesas,rsnd.txt
> @@ -20,6 +20,7 @@ Required properties:
> SSI subnode properties:
> - interrupts : Should contain SSI interrupt for PIO transfer
> - shared-pin : if shared clock pin
> +- pio-transfer : use PIO transfer mode
>
> SRC subnode properties:
> no properties at this poin
> diff --git a/sound/soc/sh/rcar/ssi.c b/sound/soc/sh/rcar/ssi.c
> index 2d94a62..e0a4ba7 100644
> --- a/sound/soc/sh/rcar/ssi.c
> +++ b/sound/soc/sh/rcar/ssi.c
> @@ -589,6 +589,12 @@ static void rsnd_of_parse_ssi(struct platform_device *pdev,
> * irq
> */
> ssi_info->pio_irq = irq_of_parse_and_map(np, 0);
> +
> + /*
> + * DMA
> + */
> + ssi_info->dma_id = of_get_property(np, "pio-transfer", NULL) ?
> + 0 : 1;
How about checking for the dma node, and if no present?
--
Ben Dooks http://www.codethink.co.uk/
Senior Engineer Codethink - Providing Genius
next prev parent reply other threads:[~2014-06-02 21:34 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-23 6:21 [PATCH 0/6] ASoC: rsnd: tidyup for DMA support for DT Kuninori Morimoto
2014-05-23 6:24 ` [PATCH 1/6] ASoC: rsnd: DT node clean up by using the of_node_put() Kuninori Morimoto
2014-05-23 6:25 ` [PATCH 2/6] ASoC: rsnd: save platform_device instead of device Kuninori Morimoto
2014-05-23 6:25 ` [PATCH 3/6] ASoC: rsnd: remove rsnd_src_non_ops Kuninori Morimoto
2014-05-23 6:25 ` [PATCH 4/6] ASoC: rsnd: module name is unified Kuninori Morimoto
2014-05-23 6:25 ` [PATCH 5/6] ASoC: rsnd: care DMA slave channel name for DT Kuninori Morimoto
2014-06-02 21:33 ` Ben Dooks [this message]
2014-06-03 0:43 ` Kuninori Morimoto
2014-05-23 6:25 ` [PATCH 6/6] ASoC: rsnd: add rsnd_gen_dma_addr() for DMAC addr Kuninori Morimoto
2014-05-26 13:35 ` [PATCH 0/6] ASoC: rsnd: tidyup for DMA support for DT Mark Brown
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=538CEDB9.3020506@codethink.co.uk \
--to=ben.dooks@codethink.co.uk \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=horms@verge.net.au \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=lgirdwood@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox