From 2a3260e3b3baef76262b57caca396566e0cec964 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Tue, 13 Nov 2007 16:21:22 +0100 Subject: 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 --- pulse/pcm_pulse.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pulse/pcm_pulse.c') 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; } -- cgit