2002-12-17 11:33:51

by Nathaniel Russell

[permalink] [raw]
Subject: Via 8233 flooding of errors [2.4-ac]

Hello
When i play 3 or more songs in a row i get the error message of
drained playback and my audio just shuts off until i exit the mp3 program
and reload it. Every 3rd song though it stops playing. And plus once in
awhile i get a Assertion failed message. Help please....
Nathaniel


Attachments:
audio.error (517.00 B)
Via 8233 Error

2002-12-17 13:53:19

by Alan

[permalink] [raw]
Subject: Re: Via 8233 flooding of errors [2.4-ac]

On Tue, 2002-12-17 at 11:41, Nathaniel Russell wrote:
> Hello
> When i play 3 or more songs in a row i get the error message of
> drained playback and my audio just shuts off until i exit the mp3 program
> and reload it. Every 3rd song though it stops playing. And plus once in
> awhile i get a Assertion failed message. Help please....
> Nathaniel

> Assertion failed! chan->is_active == sg_active(chan->iobase),via82cxxx_audio.c,via_chan_maybe_start,line=1347
> via_audio: ignoring drain playback error -512
> [SNIPED]

I need to look at the assertion - somehow the chip is being stopped when
it should not have been. The ignoring drain playback error one is over
paranoia in the driver and quite legal (you hit ^C is what made that
second moan appear)

2002-12-17 15:43:58

by Alan

[permalink] [raw]
Subject: Re: Via 8233 flooding of errors [2.4-ac]

On Tue, 2002-12-17 at 15:49, Nathaniel Russell wrote:
> Alan,
> What would you like to me to send you all i play are mp3's and i watch DVD's???
> And about the ignoring drained playback i can just ignore that paranoia, that
> is fine with me. Oh and yes i hit ^C to stop the mp3 player :).

Ok lets see if I understand what is actually going on. Can you try

--- drivers/sound/via82cxxx_audio.c~ 2002-12-17 15:47:21.000000000 +0000
+++ drivers/sound/via82cxxx_audio.c 2002-12-17 15:48:51.000000000 +0000
@@ -15,7 +15,7 @@
*/


-#define VIA_VERSION "1.9.1-ac"
+#define VIA_VERSION "1.9.1-ac2"


#include <linux/config.h>
@@ -1344,7 +1344,11 @@

static inline void via_chan_maybe_start (struct via_channel *chan)
{
- assert (chan->is_active == sg_active(chan->iobase));
+ if(chan->is_active != sg_active(chan->iobase))
+ {
+ chan->is_active = 0;
+ printk(KERN_ERR "via82cxx_audio: DSP stopped unexpectedly.\n");
+ }

if (!chan->is_active && chan->is_enabled) {
chan->is_active = 1;
@@ -3275,7 +3279,7 @@

if (file->f_mode & FMODE_WRITE) {
rc = via_dsp_drain_playback (card, &card->ch_out, nonblock);
- if (rc && rc != ERESTARTSYS) /* Nobody needs to know about ^C */
+ if (rc && rc != -ERESTARTSYS) /* Nobody needs to know about ^C */
printk (KERN_DEBUG "via_audio: ignoring drain playback error %d\n", rc);

via_chan_free (card, &card->ch_out);

2002-12-17 15:41:25

by Nathaniel Russell

[permalink] [raw]
Subject: Re: Via 8233 flooding of errors [2.4-ac]

Alan,
What would you like to me to send you all i play are mp3's and i watch DVD's???
And about the ignoring drained playback i can just ignore that paranoia, that
is fine with me. Oh and yes i hit ^C to stop the mp3 player :).

CC me <[email protected]>
On 17 Dec 2002, Alan Cox wrote:

> On Tue, 2002-12-17 at 11:41, Nathaniel Russell wrote:
> > Hello
> > When i play 3 or more songs in a row i get the error message of
> > drained playback and my audio just shuts off until i exit the mp3 program
> > and reload it. Every 3rd song though it stops playing. And plus once in
> > awhile i get a Assertion failed message. Help please....
> > Nathaniel
>
> > Assertion failed! chan->is_active == sg_active(chan->iobase),via82cxxx_audio.c,via_chan_maybe_start,line=1347
> > via_audio: ignoring drain playback error -512
> > [SNIPED]
>
> I need to look at the assertion - somehow the chip is being stopped when
> it should not have been. The ignoring drain playback error one is over
> paranoia in the driver and quite legal (you hit ^C is what made that
> second moan appear)
>




2002-12-17 16:19:05

by Nathaniel Russell

[permalink] [raw]
Subject: Re: Via 8233 flooding of errors [2.4-ac]

Alan,
I have played 4 mp3's and switched to X and so far nothing.
I don't know here is my dmesg log. I don't know how i got the first
Assertion but I'll keep working with the driver and report back to you,
ok.
Nathaniel


Attachments:
dmesg (10.47 kB)
Via 8233

2002-12-17 16:26:43

by Alan Cox

[permalink] [raw]
Subject: Re: Via 8233 flooding of errors [2.4-ac]

> I have played 4 mp3's and switched to X and so far nothing.
> I don't know here is my dmesg log. I don't know how i got the first
> Assertion but I'll keep working with the driver and report back to you,
> ok.

If anything pops up let me know

2003-01-30 19:17:20

by Nathaniel Russell

[permalink] [raw]
Subject: Via 8233 Audio [2.4-ac]

As you requested that i e-mail you about the Via 8233 Audio i have
included the attachment with the unexecpted DSP stopped unexpectly patch
that you sent me to debug the audio to find out why my audio would stop
unexecptly. To tell you what i was doing. I was listening to about 20 +
mp3's and also surfing the INET and then logged off after i saw that
message because i was going to burn a Audio CD from my mp3's.
Cc me at [email protected]
P.S. Alan if you need more infomation about my system i'll be happy to
send you some.
Nathaniel

On Tue, 17 Dec 2002, Alan Cox wrote:

> > I have played 4 mp3's and switched to X and so far nothing.
> > I don't know here is my dmesg log. I don't know how i got the first
> > Assertion but I'll keep working with the driver and report back to you,
> > ok.
>
> If anything pops up let me know
>


Attachments:
audio.log.ac (710.00 B)
Via 8233 Audio