diff options
author | Takashi Iwai <tiwai@suse.de> | 2007-11-13 16:21:22 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2007-11-13 16:21:22 +0100 |
commit | 2a3260e3b3baef76262b57caca396566e0cec964 (patch) | |
tree | 59ddd6469ec3bec3ccfa652f86efe1c386aefd0c /pulse | |
parent | c1027970c49988368a46d887dc7f608d53b14d90 (diff) |
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 <mgorse@mgorse.dhs.org>
Diffstat (limited to 'pulse')
-rw-r--r-- | pulse/pcm_pulse.c | 7 |
1 files changed, 7 insertions, 0 deletions
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; } |