Re: HDMI Audio Support in ALSA

From: Takashi Iwai
Date: Mon May 26 2008 - 06:56:53 EST


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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/