From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anssi Hannula Subject: HDA - hdmi_show_short_audio_desc puts wrong rates in eld#N Date: Tue, 07 Dec 2010 13:01:18 +0200 Message-ID: <4CFE13FE.5070703@iki.fi> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from saarni.dnainternet.net (saarni.dnainternet.net [83.102.40.136]) by alsa0.perex.cz (Postfix) with ESMTP id 960AB1039DE for ; Tue, 7 Dec 2010 12:01:21 +0100 (CET) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Takashi Iwai Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org 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. -- Anssi Hannula