From d1f3a87c0863639b08d63db3d1e491b3214b87aa Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 14 Jan 2017 21:47:37 +0100 Subject: [PATCH] input/alsa: remove the start_threshold setting This setting is mostly useless for capture devices. There's no point in configuring it. --- src/input/plugins/AlsaInputPlugin.cxx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/input/plugins/AlsaInputPlugin.cxx b/src/input/plugins/AlsaInputPlugin.cxx index 7d8dcca02..4b944d4df 100644 --- a/src/input/plugins/AlsaInputPlugin.cxx +++ b/src/input/plugins/AlsaInputPlugin.cxx @@ -386,11 +386,6 @@ ConfigureCapture(snd_pcm_t *capture_handle, snd_pcm_sw_params_free(sw_params); }; - if ((err = snd_pcm_sw_params_set_start_threshold(capture_handle, sw_params, - period)) < 0) - throw FormatRuntimeError("unable to set start threshold (%s)", - snd_strerror(err)); - if ((err = snd_pcm_sw_params(capture_handle, sw_params)) < 0) throw FormatRuntimeError("unable to install sw params (%s)", snd_strerror(err));