* [PATCH] Fix revision display from cat /proc/asound/card0/ac97#0
@ 2003-10-03 16:00 James Courtier-Dutton
2003-10-06 10:55 ` Takashi Iwai
0 siblings, 1 reply; 2+ messages in thread
From: James Courtier-Dutton @ 2003-10-03 16:00 UTC (permalink / raw)
To: alsa-devel
[-- Attachment #1: Type: text/plain, Size: 173 bytes --]
This patch fixes the display of revision number for ALC650 AC97 chip.
"alsamixer"
displayed the correct revision, but
"cat /proc/asound/card0/ac97#0"
did not.
Cheers
James
[-- Attachment #2: ac97_proc-rev-fix.diff --]
[-- Type: text/plain, Size: 929 bytes --]
--- ac97_proc.c.org 2003-10-03 16:07:16.578344016 +0100
+++ ac97_proc.c 2003-10-03 16:56:14.184759960 +0100
@@ -37,15 +37,12 @@
static void snd_ac97_proc_read_main(ac97_t *ac97, snd_info_buffer_t * buffer, int subidx)
{
char name[64];
- unsigned int id;
unsigned short val, tmp, ext, mext;
static const char *spdif_slots[4] = { " SPDIF=3/4", " SPDIF=7/8", " SPDIF=6/9", " SPDIF=res" };
static const char *spdif_rates[4] = { " Rate=44.1kHz", " Rate=res", " Rate=48kHz", " Rate=32kHz" };
static const char *spdif_rates_cs4205[4] = { " Rate=48kHz", " Rate=44.1kHz", " Rate=res", " Rate=res" };
- id = snd_ac97_read(ac97, AC97_VENDOR_ID1) << 16;
- id |= snd_ac97_read(ac97, AC97_VENDOR_ID2);
- snd_ac97_get_name(NULL, id, name, 0);
+ snd_ac97_get_name(NULL, ac97->id, name, 0);
snd_iprintf(buffer, "%d-%d/%d: %s\n\n", ac97->addr, ac97->num, subidx, name);
if ((ac97->scaps & AC97_SCAP_AUDIO) == 0)
goto __modem;
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Fix revision display from cat /proc/asound/card0/ac97#0
2003-10-03 16:00 [PATCH] Fix revision display from cat /proc/asound/card0/ac97#0 James Courtier-Dutton
@ 2003-10-06 10:55 ` Takashi Iwai
0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2003-10-06 10:55 UTC (permalink / raw)
To: James Courtier-Dutton; +Cc: alsa-devel
At Fri, 03 Oct 2003 17:00:42 +0100,
James Courtier-Dutton wrote:
>
> [1 <text/plain; us-ascii (7bit)>]
> This patch fixes the display of revision number for ALC650 AC97 chip.
> "alsamixer"
> displayed the correct revision, but
> "cat /proc/asound/card0/ac97#0"
> did not.
thanks, now committed to cvs together with your patch for ALC650
spdif-out.
Takashi
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-10-06 10:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-03 16:00 [PATCH] Fix revision display from cat /proc/asound/card0/ac97#0 James Courtier-Dutton
2003-10-06 10:55 ` Takashi Iwai
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.