mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-05 13:30:00 -05:00
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:
parent
e1e9e3ff82
commit
cf15e49d84
12 changed files with 13 additions and 78 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue