From mboxrd@z Thu Jan 1 00:00:00 1970 From: Russell King - ARM Linux Subject: Re: [RFC v3 7/7] ASoC: hdmi-codec: Add ELD control Date: Tue, 19 Jan 2016 17:14:33 +0000 Message-ID: <20160119171433.GQ19062@n2100.arm.linux.org.uk> References: <1452613096-8116-1-git-send-email-p.zabel@pengutronix.de> <1452613096-8116-8-git-send-email-p.zabel@pengutronix.de> <569E3E86.2060500@metafoo.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <569E3E86.2060500-Qo5EllUWu/uELgA04lAiVw@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+glpam-linux-mediatek=m.gmane.org-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org To: Lars-Peter Clausen Cc: Jean-Francois Moine , alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw@public.gmane.org, kernel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org, Arnaud Pouliquen , Koro Chen , Jyri Sarha , Liam Girdwood , Mark Brown , linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, Philipp Zabel , Matthias Brugger , Cawa Cheng List-Id: alsa-devel@alsa-project.org On Tue, Jan 19, 2016 at 02:47:50PM +0100, Lars-Peter Clausen wrote: > On 01/12/2016 04:38 PM, Philipp Zabel wrote: > > Exporting the ELD bytes to userspace allows an application to select > > an appropriate audio format depending on the current capabilities of > > the connected HDMI sink device. > > This needs an explanation why this method, which will require explicit > support in applications, should be used rather than the standard ALSA > hardware capabilities reporting. That can be summed up in one line: ALSA doesn't know about all the different formats for compressed audio. As far as I'm aware, applications today just lie to ALSA and use the "16-bit PCM audio" formats (SNDRV_PCM_FORMAT_S16_LE or SNDRV_PCM_FORMAT_U16_LE) to send compressed audio via ALSA, relying on the IEC controls to set the channel status data correctly. Maybe it would be nice to add formats for DTS, DTS-HD, AC3, OBA, etc to the ALSA format list. -- RMK's Patch system: http://www.arm.linux.org.uk/developer/patches/ FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up according to speedtest.net.