From mboxrd@z Thu Jan 1 00:00:00 1970 From: Philipp Zabel Subject: Re: [RFC v2 6/6] ASoC: hdmi-codec: Use HDMI notifications to add jack support Date: Fri, 08 Jan 2016 09:43:49 +0100 Message-ID: <1452242629.3347.12.camel@pengutronix.de> References: <1451934551-21333-1-git-send-email-p.zabel@pengutronix.de> <1451935145-24861-1-git-send-email-p.zabel@pengutronix.de> <568E9BE1.6050209@ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from metis.ext.4.pengutronix.de (metis.ext.4.pengutronix.de [92.198.50.35]) by alsa0.perex.cz (Postfix) with ESMTP id 7517A26040E for ; Fri, 8 Jan 2016 09:43:57 +0100 (CET) In-Reply-To: <568E9BE1.6050209@ti.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Jyri Sarha Cc: Jean-Francois Moine , alsa-devel@alsa-project.org, Lars-Peter Clausen , Russell King - ARM Linux , Arnaud Pouliquen , Koro Chen , Daniel Kurtz , Liam Girdwood , Mark Brown , linux-mediatek@lists.infradead.org, kernel@pengutronix.de, Matthias Brugger , Cawa Cheng List-Id: alsa-devel@alsa-project.org Hi Jyri, Am Donnerstag, den 07.01.2016, 19:09 +0200 schrieb Jyri Sarha: > On 01/04/16 21:19, Philipp Zabel wrote: > > Use HDMI connection / disconnection notifications to update an ALSA > > jack object. Also make a copy of the ELD block after every change. > > > > The jack part looks good to me AFAIU, If this is in principle an acceptable idea, this leaves the issue that the jack has an initial state and right now we can't query it but instead would have to wait for the first HDMI_(DIS)CONNECTED notification before it can be set. Would it make sense to add an is_connected callback to the hdmi_codec_ops or does this rather belong somewhere else? > but I think we should just update > the local ELD copy with data given in the ELD notification. It then > depends on the implementation details whether the get_eld() callback is > needed at all or if it should be called once at the probe time. Thanks, that sounds reasonable. > Then it is a separate issue to check if the currently played stream is > still supported after an ELD update, and to decide what to do about it > if it is not. [...] Possibly the HDMI driver itself should just mute if the format is not supported, and userspace should be notified? regards Philipp