From: Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
To: Jean-Francois Moine <moinejf-GANU6spQydw@public.gmane.org>
Cc: alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw@public.gmane.org,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Kuninori Morimoto
<kuninori.morimoto.gx-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org>,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Xiubo Li <Li.Xiubo-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
Subject: Re: [PATCH v3 4/4] ASoC: simple-card: Add DT documentation for multi-DAI links
Date: Mon, 17 Mar 2014 16:43:39 +0000 [thread overview]
Message-ID: <20140317164339.GR11706@sirena.org.uk> (raw)
In-Reply-To: <d054780a0edf4b2338a52e48bff9144e19aa614f.1394883134.git.moinejf-GANU6spQydw@public.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 1428 bytes --]
On Sat, Mar 15, 2014 at 12:30:05PM +0100, Jean-Francois Moine wrote:
> There may be many couples of CPU/CODEC DAI links.
> The example 2 is extracted from the Cubox DT.
Oh, here's some documentation - please include the documentation
before the code, without the documentation the reader is going to have
no idea what the code is supposed to be implementing.
> + There may be one or many couples (simple-audio-card,cpu, simple-audio-card,codec)
> + (see example 2).
This doesn't mention how they're matched up.
> +sound {
> + compatible = "simple-audio-card";
> + simple-audio-card,name = "Cubox Audio";
> +
> + simple-audio-card,cpu@0 { /* I2S - HDMI */
> + sound-dai = <&audio1 0>;
> + format = "i2s";
> + };
> + simple-audio-card,codec@0 {
> + sound-dai = <&tda998x 0>;
> + };
> +
> + simple-audio-card,cpu@1 { /* S/PDIF - HDMI */
> + sound-dai = <&audio1 1>;
> + };
> + simple-audio-card,codec@1 {
> + sound-dai = <&tda998x 1>;
> + };
So, this is not exactly pretty as a binding. I would expect to see the
links explicitly represented in the DT so you see the two DAIs in each
link grouped into a container, the above isn't very easy to read and as
Jyri says this lack of clarity also causes practical problems in that
there's nowhere to place link specific parameters.
I think what I'd expect to see here is that the simple card can either
be a container with a link in it directly or a container of links.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
next prev parent reply other threads:[~2014-03-17 16:43 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-15 11:32 [PATCH v3 0/4] ASoC: simple-card: multi DAI links extension Jean-Francois Moine
2014-03-15 10:32 ` [PATCH v3 1/4] ASoC: simple-card: Simplify code Jean-Francois Moine
2014-03-17 16:24 ` Mark Brown
2014-03-15 11:09 ` [PATCH v3 2/4] ASoC: simple-card: dynamically allocate the DAI link and properties Jean-Francois Moine
2014-03-17 9:29 ` [alsa-devel] " Jyri Sarha
2014-03-17 10:23 ` Jean-Francois Moine
2014-03-17 10:27 ` [alsa-devel] " Jyri Sarha
2014-03-17 16:24 ` Mark Brown
2014-03-18 20:18 ` Mark Brown
2014-03-15 11:26 ` [PATCH v3 3/4] ASoC: simple-card: Handle many DAI links Jean-Francois Moine
2014-03-17 16:29 ` Mark Brown
2014-03-15 11:30 ` [PATCH v3 4/4] ASoC: simple-card: Add DT documentation for multi-DAI links Jean-Francois Moine
[not found] ` <d054780a0edf4b2338a52e48bff9144e19aa614f.1394883134.git.moinejf-GANU6spQydw@public.gmane.org>
2014-03-17 10:19 ` [alsa-devel] " Jyri Sarha
2014-03-17 16:43 ` Mark Brown [this message]
2014-03-18 8:17 ` Jean-Francois Moine
2014-03-18 10:41 ` Mark Brown
2014-03-19 10:08 ` Jyri Sarha
[not found] ` <53296CB7.1000909-l0cyMroinI0@public.gmane.org>
2014-03-19 13:46 ` Mark Brown
2014-03-19 18:32 ` Jyri Sarha
2014-03-19 19:14 ` Mark Brown
2014-03-19 16:07 ` Jean-Francois Moine
2014-03-19 18:51 ` [alsa-devel] " Lars-Peter Clausen
2014-03-19 19:15 ` Jyri Sarha
[not found] ` <5329ECC2.7040803-l0cyMroinI0@public.gmane.org>
2014-03-19 19:21 ` Mark Brown
[not found] ` <20140319192157.GW11706-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2014-03-19 19:31 ` Lars-Peter Clausen
[not found] ` <5329F0A1.8020801-Qo5EllUWu/uELgA04lAiVw@public.gmane.org>
2014-03-20 11:24 ` Jyri Sarha
2014-03-17 3:49 ` [PATCH v3 0/4] ASoC: simple-card: multi DAI links extension Li.Xiubo
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=20140317164339.GR11706@sirena.org.uk \
--to=broonie-dgejt+ai2ygdnm+yrofe0a@public.gmane.org \
--cc=Li.Xiubo-KZfg59tc24xl57MIdRCFDg@public.gmane.org \
--cc=alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=kuninori.morimoto.gx-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=moinejf-GANU6spQydw@public.gmane.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