mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
fix ess end-of-buffer repeating
Submitted by: nhibma Approved by: jkh
This commit is contained in:
parent
228524cb50
commit
73bd6f4aab
3 changed files with 6 additions and 18 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue