"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "axfer/xfer-libasound-irq-mmap.c" between
alsa-utils-1.2.1.tar.bz2 and alsa-utils-1.2.2.tar.bz2

About: ALSA (Advanced Linux Sound Architecture) - Utilities.

xfer-libasound-irq-mmap.c  (alsa-utils-1.2.1.tar.bz2):xfer-libasound-irq-mmap.c  (alsa-utils-1.2.2.tar.bz2)
skipping to change at line 149 skipping to change at line 149
// Trim according up to expected frame count. // Trim according up to expected frame count.
if (*frame_count < avail) if (*frame_count < avail)
avail_count = *frame_count; avail_count = *frame_count;
else else
avail_count = (unsigned int)avail; avail_count = (unsigned int)avail;
// TODO: Perhaps, the complex layout can be supported as a variation of // TODO: Perhaps, the complex layout can be supported as a variation of
// vector type. However, there's no driver with this layout. // vector type. However, there's no driver with this layout.
if (layout->vector == NULL) { if (layout->vector == NULL) {
frame_buf = areas[0].addr; char *buf;
frame_buf += snd_pcm_frames_to_bytes(state->handle, buf = areas[0].addr;
frame_offset); buf += snd_pcm_frames_to_bytes(state->handle, frame_offset);
frame_buf = buf;
} else { } else {
int i; int i;
for (i = 0; i < layout->samples_per_frame; ++i) { for (i = 0; i < layout->samples_per_frame; ++i) {
layout->vector[i] = areas[i].addr; layout->vector[i] = areas[i].addr;
layout->vector[i] += snd_pcm_samples_to_bytes( layout->vector[i] += snd_pcm_samples_to_bytes(
state->handle, frame_offset); state->handle, frame_offset);
} }
frame_buf = layout->vector; frame_buf = layout->vector;
} }
 End of changes. 1 change blocks. 
3 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)