From: Takashi Iwai Date: Tue, 13 Nov 2007 15:21:22 +0000 (+0100) Subject: pulse - Add minmax condition for period_bytes and periods X-Git-Tag: v1.0.16rc1~3 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=2a3260e3b3baef76262b57caca396566e0cec964;p=alsa-plugins.git pulse - Add minmax condition for period_bytes and periods Added the minmax conditions for period_bytes and periods to pulse plugin. This fixes ALSA bug#2601. Patch from Mike Gorse --- diff --git a/pulse/pcm_pulse.c b/pulse/pcm_pulse.c index 67f97b5..ae55bcb 100644 --- a/pulse/pcm_pulse.c +++ b/pulse/pcm_pulse.c @@ -659,6 +659,13 @@ static int pulse_hw_constraint(snd_pcm_pulse_t *pcm) if (err < 0) return err; + err = snd_pcm_ioplug_set_param_minmax(io, SND_PCM_IOPLUG_HW_PERIOD_BYTES, 256, 1024 * 1024); + if (err < 0) + return err; + + err = snd_pcm_ioplug_set_param_minmax(io, SND_PCM_IOPLUG_HW_PERIODS, 2, 1024); + if (err < 0) + return err; return 0; }