ref: 249089c4d72171f5a4ce25d2095a578979aa104a
parent: 2908e46d3f2505e8d13845aecddde2d78833068f
author: cbagwell <cbagwell>
date: Thu May 24 22:09:23 EDT 2001
Adding work around for some playback cases in ALSA driver.
--- a/src/alsa.c
+++ b/src/alsa.c
@@ -256,7 +256,7 @@
if (size < p_info.min_fragment_size) size = p_info.min_fragment_size;
if (size > p_info.max_fragment_size) size = p_info.max_fragment_size;
p_params.buf.block.frag_size = size;
- p_params.buf.block.frags_max = 32;
+ p_params.buf.block.frags_max = -1; /* Little trick (playback only) */
p_params.buf.block.frags_min = 1;
if (ioctl(fileno(ft->fp), SND_PCM_IOCTL_CHANNEL_PARAMS, &p_params) < 0) {
st_fail_errno(ft,ST_EPERM,"ioctl operation failed %d",errno);