From aa5a4d1f1a802d85b7d9d2a179a88bea256ca51f Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Thu, 23 Jun 2005 10:04:56 +0000 Subject: [PATCH] Remove the check of start_threshold in sw_params Removed the invalid check of start_threshold with period_size in snd_pcm_sw_params(). --- src/pcm/pcm.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pcm/pcm.c b/src/pcm/pcm.c index 49291e78..9508b23d 100644 --- a/src/pcm/pcm.c +++ b/src/pcm/pcm.c @@ -834,11 +834,16 @@ int snd_pcm_sw_params(snd_pcm_t *pcm, snd_pcm_sw_params_t *params) SNDMSG("params->xfer_align is 0"); return -EINVAL; } +#if 0 + /* disable the check below - it looks too restrictive + * (start_threshold is basically independent from avail_min) + */ if (params->start_threshold <= pcm->buffer_size && params->start_threshold > (pcm->buffer_size / params->avail_min) * params->avail_min) { SNDMSG("params->avail_min problem for start_threshold"); return -EINVAL; } +#endif if (params->start_threshold <= pcm->buffer_size && params->start_threshold > (pcm->buffer_size / params->xfer_align) * params->xfer_align) { SNDMSG("params->xfer_align problem for start_threshold"); -- 2.47.1