Re: No sound (es1371) after test7

From: Linus Torvalds (torvalds@transmeta.com)
Date: Sun Sep 24 2000 - 00:42:27 EST


In article <20000924012621.A12460@evansoft.uklinux.net>,
Jon Evans <jevans@evansoft.demon.co.uk> wrote:
>On Fri, Sep 22, 2000 at 09:14:23AM -0400, Kernel Related Emails wrote:
>
>> Well everythings working fine in test9-pre5 except for the fact that sound
>> has stopped functioning on my es1371 card. I had no problems with it at
>> all in test7 but since then it doesn't work. On boot it detects normally,
>> pops and crackles for a second, and then just doesn't work. Any
>> ideas? I'm getting no kernel messages or any output that would indicate
>> the problem.
>
>Just as a data point, I have the same problem. /dev/dsp seems to block when opened.

Ehh. One of the differences in the test9-pre kernels is a "trivial
bugfix" that actually makes one of the "schedule_timeout()" calls in
drivers/sound/ac97_codec.c actually _do_ something.

Go into "drivers/sound/ac97_codec.c" to around line 570 or so, and
comment out the line that says

        current->state = TASK_UNINTERRUPTIBLE;

and see if that fixes the problem.

Now, removing the above line will basically make the schdule_timeout()
be a no-op, so on the face of it the code has always before been
completely nonsensical. But maybe the nonsensical code works, and the
logical code is broken.

As far as I can tell, no other changes have happened in the sound
drivers, which is why I'd ask people to do this apparently idiotic
reversal of that single line..

                Linus

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Sep 30 2000 - 21:00:11 EST