All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ricardo Neri <ricardo.neri@ti.com>
To: Liam Girdwood <lrg@ti.com>,
	"Brown, Mark" <broonie@opensource.wolfsonmicro.com>,
	Peter Ujfalusi <peter.ujfalusi@ti.com>
Cc: alsa-devel <alsa-devel@alsa-project.org>,
	"Valkeinen, Tomi" <tomi.valkeinen@ti.com>,
	"Guiriec, Sebastien" <s-guiriec@ti.com>,
	"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: [RFC] ASoC: snd_soc_jack for HDMI audio: does it make sense?
Date: Mon, 20 Aug 2012 20:47:17 -0500	[thread overview]
Message-ID: <5032E8A5.8070108@ti.com> (raw)

Hello!

I have been working on prototypes for the ASoC OMAP HDMI audio driver to 
propagate events from the HDMI output (e.g., display getting 
enabled/disabled/suspended). This for the users of the driver to react 
to such events. For instance, if the display is disabled or disconected, 
audio could be stopped, rerouted or whatever other decision the user 
makes. This is needed because, if, for instance, the  HDMI IP goes off, 
audio will stall and the audio users will only see a "playback write 
error (DMA or IRQ trouble?)"

In my prototypes I have used snd_soc_jack for this purpose and I have 
some questions:

*I see snd_soc_jack is used mostly for headsets and microphones with 
actual external mechanical connections. Strictly, in my case I propagate 
events originated by the OMAP display driver (changes in the power 
state), and not from external events. Some of these events are generated 
from an actual HDMI cable connection/disconnection, though.

*Maybe the event should be propagated by omapdss/omapdrm/drm and the 
entity in charge of the audio policy should listen those events instead.

*I do see SND_JACK_VIDEOOUT and SND_JACK_AVOUT types so maybe it is 
feasible for an audio driver to report events from an AV output.

I was wondering about how much sense does it make to you guys use a 
snd_soc_jack in this case?

Thanks in advance for your comments!

Ricardo

             reply	other threads:[~2012-08-21  1:48 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-21  1:47 Ricardo Neri [this message]
2012-08-21  5:28 ` [alsa-devel] [RFC] ASoC: snd_soc_jack for HDMI audio: does it make sense? Takashi Iwai
2012-08-21 12:05   ` Mark Brown
2012-08-21 12:30     ` [alsa-devel] " David Henningsson
2012-08-21 13:16       ` Mark Brown
2012-08-22  1:24         ` Ricardo Neri
2012-08-22 16:40           ` Mark Brown
2012-08-24  7:10     ` [alsa-devel] " Arun Raghavan
2012-08-27 18:55       ` Mark Brown
2012-08-21  6:01 ` Tomi Valkeinen
2012-08-21 12:39   ` Clark, Rob
2012-08-21 13:18     ` Mark Brown
2012-08-22  0:58     ` Ricardo Neri
2012-08-22  7:55       ` [alsa-devel] " Takashi Iwai
2012-08-24  1:44         ` Ricardo Neri
2012-08-24  2:57           ` Stephen Warren
2012-08-24  5:21           ` [alsa-devel] " Takashi Iwai

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=5032E8A5.8070108@ti.com \
    --to=ricardo.neri@ti.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=lrg@ti.com \
    --cc=peter.ujfalusi@ti.com \
    --cc=s-guiriec@ti.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.