From: Takashi Iwai Subject: Re: [alsa-devel] [RFC] ASoC: snd_soc_jack for HDMI audio: does it make sense? Date: Tue, 21 Aug 2012 07:28:34 +0200 Message-ID: References: <5032E8A5.8070108@ti.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <5032E8A5.8070108@ti.com> Sender: linux-omap-owner@vger.kernel.org To: Ricardo Neri Cc: Liam Girdwood , "Brown, Mark" , Peter Ujfalusi , alsa-devel , "Valkeinen, Tomi" , "Guiriec, Sebastien" , "linux-omap@vger.kernel.org" List-Id: alsa-devel@alsa-project.org At Mon, 20 Aug 2012 20:47:17 -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? HD-audio already uses the generic jack event for the HDMI/DP connection change notification as well, so I think it would make sense in general. Takashi