fix ess end-of-buffer repeating
Submitted by: nhibma Approved by: jkh
This commit is contained in:
parent
228524cb50
commit
73bd6f4aab
@ -583,14 +583,10 @@ ess_intr(void *arg)
|
|||||||
* We are transferring data in DSP normal mode,
|
* We are transferring data in DSP normal mode,
|
||||||
* so clear the dl to indicate the DMA is stopped.
|
* so clear the dl to indicate the DMA is stopped.
|
||||||
*/
|
*/
|
||||||
if (sb->pch.buffer->dl > 0) {
|
if (sb->pch.buffer->dl > 0)
|
||||||
sb->pch.buffer->dl = -1;
|
|
||||||
chn_intr(sb->pch.channel);
|
chn_intr(sb->pch.channel);
|
||||||
}
|
if (sb->rch.buffer->dl > 0)
|
||||||
if (sb->rch.buffer->dl > 0) {
|
|
||||||
sb->rch.buffer->dl = -1;
|
|
||||||
chn_intr(sb->rch.channel);
|
chn_intr(sb->rch.channel);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
@ -583,14 +583,10 @@ ess_intr(void *arg)
|
|||||||
* We are transferring data in DSP normal mode,
|
* We are transferring data in DSP normal mode,
|
||||||
* so clear the dl to indicate the DMA is stopped.
|
* so clear the dl to indicate the DMA is stopped.
|
||||||
*/
|
*/
|
||||||
if (sb->pch.buffer->dl > 0) {
|
if (sb->pch.buffer->dl > 0)
|
||||||
sb->pch.buffer->dl = -1;
|
|
||||||
chn_intr(sb->pch.channel);
|
chn_intr(sb->pch.channel);
|
||||||
}
|
if (sb->rch.buffer->dl > 0)
|
||||||
if (sb->rch.buffer->dl > 0) {
|
|
||||||
sb->rch.buffer->dl = -1;
|
|
||||||
chn_intr(sb->rch.channel);
|
chn_intr(sb->rch.channel);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
@ -583,14 +583,10 @@ ess_intr(void *arg)
|
|||||||
* We are transferring data in DSP normal mode,
|
* We are transferring data in DSP normal mode,
|
||||||
* so clear the dl to indicate the DMA is stopped.
|
* so clear the dl to indicate the DMA is stopped.
|
||||||
*/
|
*/
|
||||||
if (sb->pch.buffer->dl > 0) {
|
if (sb->pch.buffer->dl > 0)
|
||||||
sb->pch.buffer->dl = -1;
|
|
||||||
chn_intr(sb->pch.channel);
|
chn_intr(sb->pch.channel);
|
||||||
}
|
if (sb->rch.buffer->dl > 0)
|
||||||
if (sb->rch.buffer->dl > 0) {
|
|
||||||
sb->rch.buffer->dl = -1;
|
|
||||||
chn_intr(sb->rch.channel);
|
chn_intr(sb->rch.channel);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
Loading…
Reference in New Issue
Block a user