From: Jyri Sarha <jsarha@ti.com>
To: Mark Brown <broonie@kernel.org>
Cc: Jean-Francois Moine <moinejf@free.fr>,
alsa-devel@alsa-project.org,
Russell King - ARM Linux <linux@arm.linux.org.uk>,
devicetree@vger.kernel.org,
Andrew Jackson <Andrew.Jackson@arm.com>,
linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org,
Dave Airlie <airlied@gmail.com>
Subject: Re: [PATCH v8 0/2] ASoC: tda998x: add a codec to the HDMI transmitter
Date: Fri, 2 Jan 2015 12:09:45 +0200 [thread overview]
Message-ID: <54A66E69.8020506@ti.com> (raw)
In-Reply-To: <20141230170001.GO17800@sirena.org.uk>
On 12/30/2014 07:00 PM, Mark Brown wrote:
> On Mon, Dec 29, 2014 at 07:37:21PM +0200, Jyri Sarha wrote:
>> On 12/29/2014 06:52 PM, Mark Brown wrote:
>
>>> So, I'm not seeing *any* interest here from any other HDMI users. This
>>> is a continuing theme with HDMI patches and is really very concerning,
>>> everyone appears to be working in their own bubbles coming up with their
>>> own things and ignoring everyone else's work - what little review I'm
>
>> I have not seen any significant new development since v7 of these patches.
>> My comments for v6 were mostly[1] addressed and I can live with these
>> changes, even develop this approach further if it gets merged.
>
> OK, so this sort of feedback is really useful - even a qualified
> Reviwed-by is useful. Total silence could mean anything.
>
>> However, as a general note I see a need for a generic ASoC hdmi codec
>> abstraction and I don't think this is generic enough. More of the audio
>> specific implementation and HDMI standard specific things should be pushed
>> away from the hdmi encoder driver (tda998x in this case) to the generic ASoC
>> side hdmi codec driver (or library).
>
> This is something I'm expecting, yes - what I don't have is a clear
> enough picture of how consistent the different hardware is in how it
> models these things.
>
After taking another look the patchesthere is not much functionality
that could be moved away from tda998x. It is just that the ASoC side
(and tda998x) could do more in terms of HDMI standard, but that is fine
because all that stuff can be added later if/when needed. However,
instantiating snd_soc_dai_driver etc. in DRM side makes a nasty
dependency between DRM and ASoC. All that stuff could be in ASoC side
and simple enum/bitfield parameters defining i2s/spdif selection could
be passed between DRM and ASoC side.
>> [1] I personally do not like the hdmi_get_cdev() approach. I would rather go
>> with only a library for registering from ASoC codec component under the HDMI
>> encoder device or a completely separate device with only a reference to the
>> HDMI encoder.
>
> It does seem somewhat complicated, yes. I don't know if matches idioms
> for DRM somehow?
>
Me neither. A more straight forward option would be adding an "audio
header" to the beginning of hdmi encoders drvdata. However, it would be
tempting to add a pointer for drvdata to snd_soc_dai_driver to add audio
specific driver data to any device that provides a DAI in addition to
other functionality. It could even simplify drivers for some audio only
devices with multiple DAIs.
Best regards,
Jyri
prev parent reply other threads:[~2015-01-02 10:09 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-23 8:32 [PATCH v8 0/2] ASoC: tda998x: add a codec to the HDMI transmitter Jean-Francois Moine
2014-10-23 7:09 ` [PATCH v8 1/2] ASoC: hdmi: Add a transmitter interface to the HDMI CODEC Jean-Francois Moine
[not found] ` <d63bb11d345ab1f1b7723ce5f82d42f56b0f1715.1414053169.git.moinejf-GANU6spQydw@public.gmane.org>
2014-12-29 17:08 ` Mark Brown
2014-10-23 8:29 ` [PATCH v8 2/2] drm/i2c: tda998x: Use the HDMI audio CODEC interface Jean-Francois Moine
[not found] ` <cover.1414053169.git.moinejf-GANU6spQydw@public.gmane.org>
2014-12-29 16:52 ` [PATCH v8 0/2] ASoC: tda998x: add a codec to the HDMI transmitter Mark Brown
2014-12-29 17:37 ` Jyri Sarha
[not found] ` <54A19151.3090506-l0cyMroinI0@public.gmane.org>
2014-12-30 17:00 ` Mark Brown
2015-01-02 10:09 ` Jyri Sarha [this message]
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=54A66E69.8020506@ti.com \
--to=jsarha@ti.com \
--cc=Andrew.Jackson@arm.com \
--cc=airlied@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=moinejf@free.fr \
/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).