dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Jyri Sarha <jsarha@ti.com>
To: "Arnaud Pouliquen" <arnaud.pouliquen@st.com>,
	"alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
	"dri-devel@lists.freedesktop.org"
	<dri-devel@lists.freedesktop.org>,
	"David Airlie" <airlied@linux.ie>,
	"tomi.valkeinen@ti.com" <tomi.valkeinen@ti.com>,
	"lgirdwood@gmail.com" <lgirdwood@gmail.com>,
	"broonie@kernel.org" <broonie@kernel.org>,
	"peter.ujfalusi@ti.com" <peter.ujfalusi@ti.com>,
	"Russell King - ARM Linux ‎" <linux@arm.linux.org.uk>,
	"lars@metafoo.de" <lars@metafoo.de>,
	"Jean-Francois Moine" <moinejf@free.fr>,
	vinod.koul@intel.com
Subject: Re: HDMI codec, way forward?
Date: Mon, 19 Oct 2015 16:10:32 +0300	[thread overview]
Message-ID: <5624EBC8.1010105@ti.com> (raw)
In-Reply-To: <562100EC.4030701@st.com>

On 10/16/15 16:51, Arnaud Pouliquen wrote:
>> After reading the ELCE Audio mini conf minutes [1] I gather that HDMI
>> audio was not discussed after all.
>>
>> My conclusion from the Lars-Peter's latest mail [2] related to the
>> subject is that the wind is currently blowing slightly in favour of my
>> version of the hdmi codec [3], or at least not in favour of Arnaud's
>> version [4].
> Based on previous discussions and lack of feedback from DRM community,
> This make sens for me.
>
>>
>> So how should we proceed? Are we still waiting for some feedback from
>> DRM/video side?
>>
>> There was not too many clear suggestions to my latest patch series
>> [3], so I do not see too much point in sending yet another version of
>> that series.
>   For me, some points need to be clarified:
> - Do we need the abort callback. Is there a uses cases that makes it
> mandatory (some timeout mechanism already exists to stop audio...)
>

I am not currently using the abort_cb my self, so it can be dropped as 
well. Is should not be needed for codec DAI implementations, as long as 
the CPU-DAI is the i2s master.

> - Does trigger is needed when CPU-DAI is master on bus?
> Otherwise how to inform HDMI that I2S bus is no more clocked? I'm not
> sure that mute is sufficient for all hardwares... For instance for my
> hardware CTS parameter is hardware computed based on I2S L/R clock.
>

The most of the codec drivers do not implement the trigger callback as 
the stream start and stop timing is usually handled at the CPU-DAI. 
Codec is just prepared (quite often even without prepare callback) and 
the stream start/stop is triggered at CPU DAI end. However, I should 
probably still implement the trigger callback and let the video side 
driver decide if it needs it or not.

> - IEC controls to support compress mode. This should be handled by codec
> driver in I2S mode, but not in SPDIF mode.
>
>>
>> Arnaud, if I'd try to make a patch series that would implement sti
>> HDMI audio with my HDMI codec, would you be willing try that out?
> hmm...more simple that i do the stuff for sti platform as some pieces of
> code are missing today in kernel (Device tree part).
> I will try to find time next week to make a prototype for test and give
> you a feedback.
>

That would be even better. Just let me know I can help you in any way.

> Additional point: We should also define some new helper functions:
>
> - For N and CTS HDMI parameters: In my RFC i have proposed helper
> function, don't know if that matches with other platforms need...
>

Absolutely, but I don't think these helpers should have any direct 
association to ASoC side. So they are in a way orthogonal to the ASoC 
side HDMI codec implementation. But very relevant to the video side 
driver registering the HDMI codec.

> - For IEC standard controls (could be added in core/pcm_iec958.c)
>

Oh, I did not even realize that there are predefined special kcontrols 
for handling the status bits. Adding those sounds like right thing to do.

Cheers,
Jyr

  parent reply	other threads:[~2015-10-19 13:10 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-16 11:50 HDMI codec, way forward? Jyri Sarha
2015-10-16 12:31 ` Lars-Peter Clausen
2015-10-16 12:43   ` [alsa-devel] " Takashi Iwai
2015-10-16 13:37   ` Russell King - ARM Linux
2015-10-16 14:12     ` Mark Brown
2015-10-18 15:08     ` Vinod Koul
2015-10-18 15:20       ` Russell King - ARM Linux
2015-10-18 16:13         ` Vinod Koul
2015-10-18 16:22           ` Russell King - ARM Linux
2015-10-18 17:16           ` Russell King - ARM Linux
2015-10-19 13:20             ` [alsa-devel] " Takashi Iwai
2015-10-20  3:38               ` Vinod Koul
2015-10-20  8:08                 ` [alsa-devel] " Russell King - ARM Linux
2015-10-20 14:01                   ` Vinod Koul
2015-10-21  9:11                     ` [alsa-devel] " Jani Nikula
2015-10-21 15:52                       ` Vinod Koul
2015-10-21  9:27                     ` [alsa-devel] " Russell King - ARM Linux
2015-10-21 13:41                       ` Takashi Iwai
2015-10-21 14:03                         ` Russell King - ARM Linux
2015-10-21 14:10                           ` Takashi Iwai
2015-10-21 14:37                             ` Takashi Iwai
2015-10-21 15:36                               ` Daniel Vetter
2015-10-21 16:46                                 ` Takashi Iwai
2015-10-21 16:48                                   ` Takashi Iwai
2015-10-21 16:50                                     ` Takashi Iwai
2015-10-21 14:37                             ` Russell King - ARM Linux
2015-10-21 16:19                               ` Vinod Koul
2015-10-21 17:34                                 ` Russell King - ARM Linux
2015-10-21 17:59                                   ` [alsa-devel] " Takashi Iwai
2015-10-21 18:19                                     ` Russell King - ARM Linux
2015-10-21 20:37                                       ` Takashi Iwai
2015-10-21 21:04                                         ` Russell King - ARM Linux
2015-10-22  7:18                                           ` Daniel Vetter
2015-10-16 14:06   ` Mark Brown
2015-10-18 15:02   ` Vinod Koul
2015-10-19 20:14     ` Jyri Sarha
2015-10-16 13:51 ` Arnaud Pouliquen
2015-10-16 14:15   ` Mark Brown
2015-10-18 15:07     ` Vinod Koul
2015-10-19 13:10   ` Jyri Sarha [this message]
2015-10-19 13:31     ` Russell King - ARM Linux

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=5624EBC8.1010105@ti.com \
    --to=jsarha@ti.com \
    --cc=airlied@linux.ie \
    --cc=alsa-devel@alsa-project.org \
    --cc=arnaud.pouliquen@st.com \
    --cc=broonie@kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=lars@metafoo.de \
    --cc=lgirdwood@gmail.com \
    --cc=linux@arm.linux.org.uk \
    --cc=moinejf@free.fr \
    --cc=peter.ujfalusi@ti.com \
    --cc=tomi.valkeinen@ti.com \
    --cc=vinod.koul@intel.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