From: Takashi Iwai Subject: Re: radeon multi-channel lpcm Date: Thu, 06 Sep 2012 07:59:52 +0200 Message-ID: References: <20120831223447.065fcb62@mjolnir.ossman.eu> <20120905181923.2e330a63@mjolnir.ossman.eu> <20120905192239.6a212683@mjolnir.ossman.eu> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 465D0265221 for ; Thu, 6 Sep 2012 07:59:53 +0200 (CEST) In-Reply-To: <20120905192239.6a212683@mjolnir.ossman.eu> 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: Pierre Ossman Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Wed, 5 Sep 2012 19:22:39 +0200, Pierre Ossman wrote: > > On Wed, 05 Sep 2012 18:39:01 +0200 > Takashi Iwai wrote: > > > At Wed, 5 Sep 2012 18:19:23 +0200, > > Pierre Ossman wrote: > > > > > > Noone with any insight? I'm ready to do some leg work, but I couldn't > > > find anything in either the HDA specification, or the AMD > > > documentation. :/ > > > > Well, HD-audio HDMI codec driver just extracts the available channel > > setup from the given ELD, and the ELD data is sent from the graphics > > driver. So, if anything missing in ELD, it's supposed to be in the > > graphics driver side. In other words, if ELD doesn't give 6 channels, > > HD-audio codec won't follow that channel setup, too. > > > > I see. I got a bit confused by this code though: > > /* Restrict capabilities by ELD if this isn't disabled */ > if (!static_hdmi_pcm && eld->eld_valid) { > > Which made me think that the ELD was just used to make sure you didn't > send something the other end couldn't handle. IOW, eld_valid == false > would give you all features the hw was capable off. > > > Some follow up questions, to confirm I haven't confused things: > > - The ELD really needs to go into the hardware, not just end up in the > hands of the audio driver? IOW, we cannot override this? Usually ELD won't go to the hardware as is but translated in a different way in the graphics side. > - The HDA interface only defines reading the ELD, so writing it would > have to be done by the graphics driver using some GPU interface? Yes. > If so, I need to poke the AMD guys as I couldn't find any information > in the public documentation about writing the ELD. It's not about "writing" ELD. If you got no valid ELD, it is the graphics driver who didn't send it. The graphics hardware certainly sends some audio information, and the graphics driver translates into an ELD and notifies to the audio codec. This part is missing or wrongly done, supposedly. Takashi > > Thanks > -- > -- Pierre Ossman > > WARNING: This correspondence is being monitored by FRA, a > Swedish intelligence agency. Make sure your server uses > encryption for SMTP traffic and consider using PGP for > end-to-end encryption.