From: Anssi Hannula <anssi.hannula@iki.fi>
To: alsa-devel@alsa-project.org
Subject: Re: HDA - hdmi_show_short_audio_desc puts wrong rates in eld#N
Date: Tue, 11 Jan 2011 19:25:55 +0200 [thread overview]
Message-ID: <4D2C92A3.6020800@iki.fi> (raw)
In-Reply-To: <4CFE13FE.5070703@iki.fi>
On 07.12.2010 13:01, Anssi Hannula wrote:
> Hi!
>
> Just noticed that the sample rates reported in eld#X.Y are wrong.
>
> They are printed by hdmi_show_short_audio_desc() in hda_eld.c. That
> function uses the snd_print_pcm_rates() function to convert the rates
> bitmap to a string. However, snd_print_pcm_rates() takes a HDA rates
> bitmap, not a generic SNDRV_ one. (BTW, an interesting function name
> for an internal HDA thing...)
>
> This results in several errors.
>
> For example, my 32000 44100 48000 88200 96000 176400 192000
> becomes 44100 48000 88200 176400 192000 384000.
In case I write a patch for this, is there a preferred approach?
(a) Add a function into alsa core that returns such a list string when
given a rates bitmap, or
(b) export the rates array in core and make the string-giving function a
static one for hda_eld.c, or
(c) add a static function into hda_eld.c that parses the bitmap manually
by checking it for all the hdmi rates (7 IIRC).
--
Anssi Hannula
prev parent reply other threads:[~2011-01-11 17:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-07 11:01 HDA - hdmi_show_short_audio_desc puts wrong rates in eld#N Anssi Hannula
2011-01-11 17:25 ` Anssi Hannula [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D2C92A3.6020800@iki.fi \
--to=anssi.hannula@iki.fi \
--cc=alsa-devel@alsa-project.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.