Remove PCM xfer_align

The PCM xfer_align is a removed feature from the kernel.
This patch cleans up the corresponding part in alsa-lib.
This commit is contained in:
Takashi Iwai 2008-01-08 18:35:29 +01:00
parent e1e9e3ff82
commit cf15e49d84
12 changed files with 13 additions and 78 deletions

View file

@ -260,7 +260,6 @@ sync_slave_write(snd_pcm_t *pcm)
size = map->appl_ptr - *slave->appl.ptr;
if (size < 0)
size += pcm->boundary;
size -= size % pcm->xfer_align;
if (!size)
return 0;
offset = *slave->appl.ptr % pcm->buffer_size;
@ -279,7 +278,6 @@ sync_slave_read(snd_pcm_t *pcm)
size = *slave->hw.ptr - map->hw_ptr;
if (size < 0)
size += pcm->boundary;
size -= size % pcm->xfer_align;
if (!size)
return 0;
offset = map->hw_ptr % pcm->buffer_size;