When doing rewind or forward operations, application pointer needs to
be properly adjusted, in the same way when doing commit/write
operations.
Fixes: https://github.com/alsa-project/alsa-lib/pull/161
Signed-off-by: Sava Jakovljev <sava.jakovljev@teufel.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
return -EIO;
}
}
+ snd_pcm_mmap_appl_backward(pcm, frames);
return frames;
}
return -EIO;
}
}
+ snd_pcm_mmap_appl_forward(pcm, frames);
return frames;
}
if ((snd_pcm_uframes_t)result != size)
return -EIO;
}
- multi->appl_ptr += size;
- multi->appl_ptr %= pcm->boundary;
+ snd_pcm_mmap_appl_forward(pcm, size);
return size;
}