fix ess end-of-buffer repeating

Submitted by:	nhibma
Approved by:	jkh
This commit is contained in:
Cameron Grant 2000-02-14 23:37:02 +00:00
parent 228524cb50
commit 73bd6f4aab
3 changed files with 6 additions and 18 deletions

View File

@ -583,14 +583,10 @@ ess_intr(void *arg)
* 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

View File

@ -583,14 +583,10 @@ ess_intr(void *arg)
* 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

View File

@ -583,14 +583,10 @@ ess_intr(void *arg)
* 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