The following patch removes the stutter when you Ctrl-Z mpg123. The
soundcard in my desktop machine at work does not have the stutter and
that one is a ES1371 card. The patch makes the ess_intr routine look
more like the sb_intr and es_intr ones.
Index: sb.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/sound/isa/sb.c,v
retrieving revision 1.49
diff -u -r1.49 sb.c
--- sb.c 2000/01/10 03:22:28 1.49
+++ sb.c 2000/02/10 18:27:14
@@ -360,7 +360,7 @@
sb_wr(sb, SBDSP_RST, 0);
if (sb_get_byte(sb) != 0xAA) {
DEB(printf("sb_reset_dsp 0x%lx failed\n",
- rman_get_start(d->io_base)));
+ rman_get_start(sb->io_base)));
return ENXIO; /* Sorry */
}
if (sb->bd_flags & BD_F_ESS)
@@ -583,14 +583,10 @@
* We are transferring data in DSP normal mode,
* so clear the dl to indicate the DMA is stopped.
*/
- if (sb->pch.buffer->dl > 0) {
- sb->pch.buffer->dl = -1;
+ if (sb->pch.buffer->dl > 0)
chn_intr(sb->pch.channel);
- }
- if (sb->rch.buffer->dl > 0) {
- sb->rch.buffer->dl = -1;
+ if (sb->rch.buffer->dl > 0)
chn_intr(sb->rch.channel);
- }
}
static int
--
[EMAIL PROTECTED]
[EMAIL PROTECTED] USB project
http://www.etla.net/~n_hibma/
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message