From: Takashi Iwai Subject: Re: [RFC] Fix for conflict of HDMI and SPDIF IEC958 controls Date: Mon, 15 Oct 2012 12:18:24 +0200 Message-ID: References: <507BE0E4.4040106@canonical.com> 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 12B9F264EFE for ; Mon, 15 Oct 2012 12:18:25 +0200 (CEST) In-Reply-To: <507BE0E4.4040106@canonical.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: David Henningsson Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Mon, 15 Oct 2012 12:09:40 +0200, David Henningsson wrote: > > On 10/12/2012 05:18 PM, Takashi Iwai wrote: > > Hi, > > > > there is a long-standing problem in HD-audio regarding IEC958 > > controls. When both an SPDIF and an HDMI are created on the same > > card (e.g. one from analog codec and one from graphics chip), the > > driver assigns the IEC958 controls just with new indices, 0, 1, 2... > > > > The problem is that there is no way to connect between this index and > > the actual PCM device. Currently, alsa-lib HDA-Intel.conf has a fixed > > configuration: > > spdif -> IEC958 xxx index=0, PCM dev=1 > > hdmi,0 -> IEC958 xxx index=0, PCM dev=3 > > hdmi,1 -> IEC958 xxx index=1, PCM dev=7 > > hdmi,2 -> IEC958 xxx index=2, PCM dev=8 > > hdmi,3 -> IEC958 xxx index=3, PCM dev=9 > > > > So obviously spdif and the first hdmi conflict. > > If these mixer controls need to be set to specific value for > playback/capture to work, why isn't this logic handled entirely in > kernel space in the first place? > > I e, instead of relying on alsa-lib to setup "IEC958 Playback Default" > correctly for us, we always do what setting "IEC958 Playback Default" > would have done, but in the kernel directly instead. Hm, I don't get your point. Could you elaborate? Takashi