From 33c5fc95b4281520fd54c76e4f898d8256b333f7 Mon Sep 17 00:00:00 2001 From: Steven O'Brien Date: Wed, 8 Jan 2014 12:52:39 +0000 Subject: input/AlsaInputPlugin: remove unnecessary alsa s/w param setting to fix high CPU load issue --- src/input/AlsaInputPlugin.cxx | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/input/AlsaInputPlugin.cxx') diff --git a/src/input/AlsaInputPlugin.cxx b/src/input/AlsaInputPlugin.cxx index 5aa0a69b5..9990091d3 100644 --- a/src/input/AlsaInputPlugin.cxx +++ b/src/input/AlsaInputPlugin.cxx @@ -364,15 +364,6 @@ AlsaInputStream::OpenDevice(const char *device, return nullptr; } - if ((err = snd_pcm_sw_params_set_period_event(capture_handle, sw_params, - 1)) < 0) { - error.Format(alsa_input_domain, - "unable to set period event (%s)", snd_strerror(err)); - snd_pcm_sw_params_free(sw_params); - snd_pcm_close(capture_handle); - return nullptr; - } - if ((err = snd_pcm_sw_params(capture_handle, sw_params)) < 0) { error.Format(alsa_input_domain, "unable to install sw params (%s)", snd_strerror(err)); -- cgit v1.2.3