From: Jyri Sarha <jsarha@ti.com>
To: Jean-Francois Moine <moinejf@free.fr>
Cc: Rob Herring <robh@kernel.org>,
alsa-devel@alsa-project.org,
Russell King - ARM Linux <linux@arm.linux.org.uk>,
peter.ujfalusi@ti.com, devicetree@vger.kernel.org,
airlied@linux.ie, tomi.valkeinen@ti.com, arnaud.pouliquen@st.com,
dri-devel@lists.freedesktop.org, liam.r.girdwood@linux.intel.com,
tony@atomide.com, broonie@kernel.org, bcousson@baylibre.com,
linux-omap@vger.kernel.org
Subject: Re: Alternative binding proposal for tda998x audio (Was: Re: [PATCH RFC v5 4/8] drm/i2c: tda998x: Add support of a DT graph of ports)
Date: Tue, 1 Mar 2016 20:29:17 +0200 [thread overview]
Message-ID: <56D5DF7D.7090608@ti.com> (raw)
In-Reply-To: <20160301171630.630a47dc00060645f89bb8ab@free.fr>
On 03/01/16 18:16, Jean-Francois Moine wrote:
> On Tue, 1 Mar 2016 17:51:09 +0200
> Jyri Sarha <jsarha@ti.com> wrote:
>
>> I know that it works, I have used it myself until now, but it is not
>> needed and there is no driver that parses audio port endpoints. I see no
>> point specifying something in the binding that is not used and there no
>> specific plan to ever use it.
>>
>> AFAIU my proposed binding should work equally well with simple-card,
>> with or without multi-codec support.
>
> As told many times, the simple card is a pure Linux specific entity.
> It does not describe any hardware. It should not appear in a DT, or,
> if it does, its compatible should be "linux, simple-audio-card".
> Then, how can the other OSs know the links between the audio
> devices and the audio encoders/connectors?
>
I understand the short comings of simple-card and it's binding. However,
the binding is documented and it is feasible to extract the audio
connections from a simple-card binding too. In fact it models the I2S
connections better than straight out of the box graph binding. Actually
a graph is not the best way describe an i2s-bus with multiple DAIs
(codec or CPU) connected to it.
> On the other way, the audio graph does not impose any particular
> software design. It just describes the links between the different
> hardware components and each OS is free to implement its own layout.
>
That is true. In the most narrow sense the i2s protocol details, or even
TDM time-slot selections should not be in the dtb. However, is not
feasible to write a generic machine driver that would deduce the ideal
audio configuration just based on the i2s wiring between the audio
components simply because that is not enough information*. So to put it
simply the simple-card is not the perfect solution for the problem, but
even with its flaws it is better than straight out of the box graph
binding, and it is still entirely feasible to extract all needed
information for any audio implementation from that binding.
Still even with my proposed binding there is nothing that prevents
adding the graph binding on top of that if it is ever needed.
Best regards,
Jyri
* With a complete set of information of all audio wiring and component
capabilities, including the analog only components, it would probably be
possible to deduce a generic configuration that would work in the most
common - simple cases, but let's not go there now.
next prev parent reply other threads:[~2016-03-01 18:29 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-17 14:49 [PATCH RFC v5 0/8] Implement generic ASoC HDMI codec and use it in tda998x Jyri Sarha
2016-02-17 14:49 ` [PATCH RFC v5 1/8] ALSA: pcm: add IEC958 channel status helper for hw_params Jyri Sarha
2016-02-17 14:49 ` [PATCH RFC v5 2/8] ASoC: hdmi-codec: Add hdmi-codec for external HDMI-encoders Jyri Sarha
2016-02-22 14:22 ` Arnaud Pouliquen
2016-03-08 16:59 ` Arnaud Pouliquen
[not found] ` <cover.1455720381.git.jsarha-l0cyMroinI0@public.gmane.org>
2016-02-17 14:49 ` [PATCH RFC v5 3/8] ASoC: hdmi-codec: Add audio abort() callback for video side to use Jyri Sarha
2016-02-17 14:49 ` [PATCH RFC v5 4/8] drm/i2c: tda998x: Add support of a DT graph of ports Jyri Sarha
[not found] ` <842e221030a0b14bc862790eb2f5bc97bb29c012.1455720381.git.jsarha-l0cyMroinI0@public.gmane.org>
2016-02-18 14:35 ` Rob Herring
2016-02-18 15:18 ` Jean-Francois Moine
2016-02-18 15:32 ` Russell King - ARM Linux
2016-02-25 13:42 ` Jyri Sarha
[not found] ` <56CF04DA.8080905-l0cyMroinI0@public.gmane.org>
2016-02-26 0:43 ` Russell King - ARM Linux
2016-02-26 10:14 ` Jyri Sarha
2016-02-26 11:21 ` Russell King - ARM Linux
2016-02-29 10:36 ` Jyri Sarha
2016-03-01 14:26 ` Alternative binding proposal for tda998x audio (Was: Re: [PATCH RFC v5 4/8] drm/i2c: tda998x: Add support of a DT graph of ports) Jyri Sarha
2016-03-01 15:35 ` Jean-Francois Moine
2016-03-01 15:51 ` Jyri Sarha
2016-03-01 16:16 ` Jean-Francois Moine
2016-03-01 18:29 ` Jyri Sarha [this message]
[not found] ` <56D5DF7D.7090608-l0cyMroinI0@public.gmane.org>
2016-03-01 19:26 ` Jean-Francois Moine
2016-03-02 8:34 ` Jyri Sarha
[not found] ` <20160301171630.630a47dc00060645f89bb8ab-GANU6spQydw@public.gmane.org>
2016-03-02 4:29 ` Mark Brown
2016-02-17 14:49 ` [PATCH RFC v5 5/8] drm/i2c: tda998x: Remove include/sound/tda998x.h and fix graph parsing Jyri Sarha
2016-02-17 14:49 ` [PATCH RFC v5 6/8] drm/i2c: tda998x: Improve tda998x_configure_audio() audio related pdata Jyri Sarha
2016-02-17 14:49 ` [PATCH RFC v5 7/8] drm/i2c: tda998x: Register ASoC HDMI codec for audio functionality Jyri Sarha
2016-02-17 14:49 ` [PATCH RFC v5 8/8] ARM: dts: am335x-boneblack: Add HDMI audio support Jyri Sarha
2016-02-17 19:36 ` Robert Nelson
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=56D5DF7D.7090608@ti.com \
--to=jsarha@ti.com \
--cc=airlied@linux.ie \
--cc=alsa-devel@alsa-project.org \
--cc=arnaud.pouliquen@st.com \
--cc=bcousson@baylibre.com \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=liam.r.girdwood@linux.intel.com \
--cc=linux-omap@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=moinejf@free.fr \
--cc=peter.ujfalusi@ti.com \
--cc=robh@kernel.org \
--cc=tomi.valkeinen@ti.com \
--cc=tony@atomide.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;
as well as URLs for NNTP newsgroup(s).