[alsa-devel] HDMI audio: TV vs. codec supported sample rates
Anssi Hannula
anssi.hannula at iki.fi
Thu Aug 5 11:49:07 CEST 2010
Anssi Hannula kirjoitti tiistai, 3. elokuuta 2010 20:39:20:
> Stephen Warren kirjoitti tiistai, 3. elokuuta 2010 19:20:24:
> > I don't see anything in patch_intelhdmi.c that relates to sample rate
> > support at all. However, I see that patch_nvhdmi.c contains e.g.:
> >
> > static struct hda_pcm_stream nvhdmi_pcm_digital_playback_8ch_89 = {
> >
> > .substreams = 1,
> > .channels_min = 2,
> > .rates = SUPPORTED_RATES,
> >
> > Should .rates not be initialized here,
>
> When .rates is not initialized, they are automatically read from the codec,
> i.e. exactly the values you referenced above from
> "/proc/asound/card1/codec#1".
>
> The values seem to differ (32000 vs 22050 is reported as supported),
> though. If the codec reported values are wrong, the .rates should be kept.
> Otherwise the rates set in .rates should be fixed or the override just
> removed.
As AFAICS HDMI specification allows 32000Hz but not 22050Hz, I'd say it is
likely that the override is wrong and the codec reported rates are right.
(my receiver doesn't support 32000Hz so I can't confirm).
--
Anssi Hannula
More information about the Alsa-devel
mailing list