From: Tomi Valkeinen <tomi.valkeinen@ti.com>
To: Ricardo Neri <ricardo.neri@ti.com>, Rob Clark <rob@ti.com>
Cc: alsa-devel <alsa-devel@alsa-project.org>,
"Brown, Mark" <broonie@opensource.wolfsonmicro.com>,
Peter Ujfalusi <peter.ujfalusi@ti.com>,
"Guiriec, Sebastien" <s-guiriec@ti.com>,
"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
Liam Girdwood <lrg@ti.com>
Subject: Re: [RFC] ASoC: snd_soc_jack for HDMI audio: does it make sense?
Date: Tue, 21 Aug 2012 09:01:07 +0300 [thread overview]
Message-ID: <1345528867.15491.12.camel@lappyti> (raw)
In-Reply-To: <5032E8A5.8070108@ti.com>
[-- Attachment #1.1: Type: text/plain, Size: 1875 bytes --]
On Mon, 2012-08-20 at 20:47 -0500, Ricardo Neri wrote:
> 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?
How does DRM handle audio? I made a quick grep, but I see the drm
drivers only enabling the audio in the HW, nothing else.
If there's a common generic way to handle this, we should obviously use
that. But if we need to choose between doing something custom or doing
it in omapdrm driver, I think we should go for drm the only solution and
forget about audio with omapfb.
Tomi
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
next prev parent reply other threads:[~2012-08-21 6:01 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-21 1:47 [RFC] ASoC: snd_soc_jack for HDMI audio: does it make sense? Ricardo Neri
2012-08-21 5:28 ` [alsa-devel] " 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 [this message]
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=1345528867.15491.12.camel@lappyti \
--to=tomi.valkeinen@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=ricardo.neri@ti.com \
--cc=rob@ti.com \
--cc=s-guiriec@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;
as well as URLs for NNTP newsgroup(s).