Rewritten mmap_{read,write} following alsa-driver current code

This commit is contained in:
Abramo Bagnara 2001-01-20 12:56:30 +00:00
parent 4086362a33
commit b4e80abc53
2 changed files with 114 additions and 61 deletions

View file

@ -134,10 +134,10 @@ void snd_pcm_mmap_hw_forward(snd_pcm_t *pcm, snd_pcm_uframes_t frames)
}
snd_pcm_sframes_t snd_pcm_mmap_write_areas(snd_pcm_t *pcm,
const snd_pcm_channel_area_t *areas,
snd_pcm_uframes_t offset,
snd_pcm_uframes_t size,
snd_pcm_uframes_t *slave_sizep)
const snd_pcm_channel_area_t *areas,
snd_pcm_uframes_t offset,
snd_pcm_uframes_t size,
snd_pcm_uframes_t *slave_sizep)
{
snd_pcm_uframes_t xfer;
if (slave_sizep && *slave_sizep < size)