aboutsummaryrefslogtreecommitdiffstats
path: root/src/input
diff options
context:
space:
mode:
authorSteven O'Brien <steven_obrien1@yahoo.co.uk>2014-01-08 12:52:39 +0000
committerMax Kellermann <max@duempel.org>2014-01-08 14:00:42 +0100
commit33c5fc95b4281520fd54c76e4f898d8256b333f7 (patch)
treee65dbe003dce9f11af458eaa6e99311f3e9275fd /src/input
parent6a953394f49eb4c36f2170b83bd4da9b681222e1 (diff)
downloadmpd-33c5fc95b4281520fd54c76e4f898d8256b333f7.tar.gz
mpd-33c5fc95b4281520fd54c76e4f898d8256b333f7.tar.xz
mpd-33c5fc95b4281520fd54c76e4f898d8256b333f7.zip
input/AlsaInputPlugin: remove unnecessary alsa s/w param setting to fix high CPU load issue
Diffstat (limited to 'src/input')
-rw-r--r--src/input/AlsaInputPlugin.cxx9
1 files changed, 0 insertions, 9 deletions
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));