From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755415AbYEZK4w (ORCPT ); Mon, 26 May 2008 06:56:52 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753857AbYEZK4p (ORCPT ); Mon, 26 May 2008 06:56:45 -0400 Received: from ns2.suse.de ([195.135.220.15]:36838 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753537AbYEZK4o (ORCPT ); Mon, 26 May 2008 06:56:44 -0400 Date: Mon, 26 May 2008 12:56:42 +0200 Message-ID: From: Takashi Iwai To: Clemens Ladisch Cc: Kallol Biswas , Lee Revell , linux-kernel@vger.kernel.org, Xiaogeng Jin Subject: Re: HDMI Audio Support in ALSA In-Reply-To: <483A63BF.1050805@ladisch.de> References: <438397970805190904i2656337dh26a3257fe52aa29d@mail.gmail.com> <75b66ecd0805190916r7ce21667laf19783dfa47cdd7@mail.gmail.com> <438397970805190938t195d9a8ejfd5b0ca1409714ab@mail.gmail.com> <48328771.4030804@ladisch.de> <438397970805211252u1d228ad8wcb1a6ef9b1251478@mail.gmail.com> <483568BD.4040701@ladisch.de> <438397970805242141l3f07e6e1he5805b09d9dbf989@mail.gmail.com> <483A63BF.1050805@ladisch.de> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.7 (=?ISO-8859-4?Q?Sanj=F2?=) APEL/10.6 MULE XEmacs/21.5 (beta28) (fuki) (+CVS-20070806) (i386-suse-linux) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org At Mon, 26 May 2008 09:16:15 +0200, Clemens Ladisch wrote: > > Kallol Biswas wrote: > > The routine snd_hda_calc_stream_format() calls snd_pcm_format_width() > > to find if the format is supported and the width. > > > > The array holds pcm_format[] holds all the supported formats. However, > > in this array > > there is no entry for IEC 60958 or IEC 61937. > > There is. I already told you that these formats use > SNDRV_PCM_FORMAT_S16_LE. Yes. The apps usually sends the raw data as S16_LE to the driver. In addition, we have status bits controls. These are stored into a control element, and thus independently handled from the raw data. With SNDRV_PCM_FORMAT_IEC958_SUBFRAME format, both the raw and the status bits are composed together. But, which format is supported depends purely on the driver. Takashi