* [PATCH] Fix for ALSA AC'97 Init not working in post 2.6.7 mm-kernels
@ 2004-08-11 18:16 Stefan Schweizer
2004-08-11 18:42 ` Jaroslav Kysela
0 siblings, 1 reply; 3+ messages in thread
From: Stefan Schweizer @ 2004-08-11 18:16 UTC (permalink / raw)
To: linux-kernel
Hi,
I noticed that my soundcad stopped working in the mm-kernels after 2.6.7.
The kernel log produces this message:
AC'97 0 does not respond - RESET
I grepped for it in the mm-patch and reverted the mm-changes there,
that fixed it for me.
I do not know what the change in the code is useful for but it breaks
my soundcard
Intel Corp. 82801BA/BAM AC'97 Audio (rev 05)
driver snd-intel8x0
My Revert-fix-patch:
--- linux-2.6.8-rc4-mm1/sound/pci/ac97/ac97_codec.c.orig
2004-08-11 20:07:12.359531728 +0200
+++ linux-2.6.8-rc4-mm1/sound/pci/ac97/ac97_codec.c 2004-08-11
20:07:24.743649056 +0200
@@ -1891,14 +1891,8 @@
bus->ops->wait(ac97);
else {
udelay(50);
- if (ac97->scaps & AC97_SCAP_SKIP_AUDIO)
- err = ac97_reset_wait(ac97, HZ/2, 1);
- else {
- err = ac97_reset_wait(ac97, HZ/2, 0);
- if (err < 0)
- err = ac97_reset_wait(ac97, 0, 1);
- }
- if (err < 0) {
+ if (ac97_reset_wait(ac97, HZ/2, 0) < 0 &&
+ ac97_reset_wait(ac97, HZ/2, 1) < 0) {
snd_printk(KERN_WARNING "AC'97 %d does not
respond - RESET\n", ac97->num);
/* proceed anyway - it's often non-critical */
}
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Fix for ALSA AC'97 Init not working in post 2.6.7 mm-kernels
2004-08-11 18:16 [PATCH] Fix for ALSA AC'97 Init not working in post 2.6.7 mm-kernels Stefan Schweizer
@ 2004-08-11 18:42 ` Jaroslav Kysela
[not found] ` <e796392204081112164423ea96@mail.gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Jaroslav Kysela @ 2004-08-11 18:42 UTC (permalink / raw)
To: Stefan Schweizer; +Cc: linux-kernel
On Wed, 11 Aug 2004, Stefan Schweizer wrote:
> Hi,
>
> I noticed that my soundcad stopped working in the mm-kernels after 2.6.7.
> The kernel log produces this message:
>
> AC'97 0 does not respond - RESET
>
> I grepped for it in the mm-patch and reverted the mm-changes there,
> that fixed it for me.
Could you try this patch?
Index: ac97_codec.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/ac97/ac97_codec.c,v
retrieving revision 1.143
diff -u -r1.143 ac97_codec.c
--- ac97_codec.c 10 Aug 2004 11:19:16 -0000 1.143
+++ ac97_codec.c 11 Aug 2004 18:43:00 -0000
@@ -1898,7 +1898,7 @@
else {
err = ac97_reset_wait(ac97, HZ/2, 0);
if (err < 0)
- err = ac97_reset_wait(ac97, 0, 1);
+ err = ac97_reset_wait(ac97, HZ/2, 1);
}
if (err < 0) {
snd_printk(KERN_WARNING "AC'97 %d does not respond - RESET\n", ac97->num);
Jaroslav
-----
Jaroslav Kysela <perex@suse.cz>
Linux Kernel Sound Maintainer
ALSA Project, SUSE Labs
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Fix for ALSA AC'97 Init not working in post 2.6.7 mm-kernels
[not found] ` <e796392204081112164423ea96@mail.gmail.com>
@ 2004-08-11 19:16 ` Stefan Schweizer
0 siblings, 0 replies; 3+ messages in thread
From: Stefan Schweizer @ 2004-08-11 19:16 UTC (permalink / raw)
To: linux-kernel
> Could you try this patch?
Thank you, your works too.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-08-11 19:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-11 18:16 [PATCH] Fix for ALSA AC'97 Init not working in post 2.6.7 mm-kernels Stefan Schweizer
2004-08-11 18:42 ` Jaroslav Kysela
[not found] ` <e796392204081112164423ea96@mail.gmail.com>
2004-08-11 19:16 ` Stefan Schweizer
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.