Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Vinod Koul <vinod.koul@intel.com>
To: Russell King - ARM Linux <linux@arm.linux.org.uk>
Cc: Jean-Francois Moine <moinejf@free.fr>,
	alsa-devel@alsa-project.org, Lars-Peter Clausen <lars@metafoo.de>,
	Takashi Iwai <tiwai@suse.de>,
	tomi.valkeinen@ti.com, Arnaud Pouliquen <arnaud.pouliquen@st.com>,
	lgirdwood@gmail.com, dri-devel@lists.freedesktop.org,
	peter.ujfalusi@ti.com, David Airlie <airlied@linux.ie>,
	broonie@kernel.org, Jyri Sarha <jsarha@ti.com>
Subject: Re: HDMI codec, way forward?
Date: Wed, 21 Oct 2015 21:49:28 +0530	[thread overview]
Message-ID: <20151021161927.GG27370@localhost> (raw)
In-Reply-To: <20151021143747.GG32532@n2100.arm.linux.org.uk>

On Wed, Oct 21, 2015 at 03:37:47PM +0100, Russell King - ARM Linux wrote:
> On Wed, Oct 21, 2015 at 04:10:31PM +0200, Takashi Iwai wrote:
> > On Wed, 21 Oct 2015 16:03:07 +0200,
> > Russell King - ARM Linux wrote:
> > > It's only the point if you can code it up properly, which from what I
> > > read in that file, it isn't.
> > 
> > An idea can fly without coding, too :)
> > 
> > > Build the i915 DRM drivers as a module, load up the system, and then
> > > try removing the i915 DRM module and see what happens to the audio part.
> > > For starters, you have no protection what so ever against acomp->ops or
> > > acomp->dev becoming NULL - it's hellishly racy.
> > 
> > Yes, very likely.
> > 
> > > Secondly, you reject the initialisation if acomp->ops isn't set, but you
> > > allow acomp->ops to later become unset by the i915 DRM module being
> > > removed.  If you can cope with acomp->ops being unset at a random point
> > > during the audio driver's use, why can't you cope with it being set at
> > > some random point later?
> > 
> > Setting/unsetting on the fly would be picky because the code does
> > refcounting.  Maybe an easier option is to inc/dec module usage
> > count appropriately in use.
> > 
> > > I don't think this code has been thought through at all.
> > 
> > True, more hardening needed.

I will try to fix this once I am done with Skylake drivers.. Plus adding new
features like ELD in on my plan for this interface

> In any case, this doesn't (and can't) solve the CEC problem, so it's not
> a solution to the problem at hand.

Sorry am not sure I follow the reasons for that, wouldn't CEC be another
slave in such an interface? I though component fwk did allow us to have
multiple slaves..

-- 
~Vinod

  reply	other threads:[~2015-10-21 16:16 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 [this message]
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
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=20151021161927.GG27370@localhost \
    --to=vinod.koul@intel.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=jsarha@ti.com \
    --cc=lars@metafoo.de \
    --cc=lgirdwood@gmail.com \
    --cc=linux@arm.linux.org.uk \
    --cc=moinejf@free.fr \
    --cc=peter.ujfalusi@ti.com \
    --cc=tiwai@suse.de \
    --cc=tomi.valkeinen@ti.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