[pulseaudio-commits] src/modules
Arun Raghavan
arun at kemper.freedesktop.org
Wed Oct 26 07:20:29 PDT 2011
src/modules/alsa/alsa-util.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 77a68b56ab1c70a0e0c670213431e6908311db47
Author: Dylan Reid <dgreid at chromium.org>
Date: Tue Oct 25 20:34:31 2011 -0700
alsa: Set return code before printing it.
The error message for snd_pcm_hw_params_set_period_wakeup was
printing "ret", but "ret" wasn't being set.
Signed-off-by: Dylan Reid <dgreid at chromium.org>
diff --git a/src/modules/alsa/alsa-util.c b/src/modules/alsa/alsa-util.c
index f054178..e5275b1 100644
--- a/src/modules/alsa/alsa-util.c
+++ b/src/modules/alsa/alsa-util.c
@@ -255,7 +255,7 @@ int pa_alsa_set_hw_params(
/* try to disable period wakeups if hardware can do so */
if (snd_pcm_hw_params_can_disable_period_wakeup(hwparams)) {
- if (snd_pcm_hw_params_set_period_wakeup(pcm_handle, hwparams, FALSE) < 0)
+ if ((ret = snd_pcm_hw_params_set_period_wakeup(pcm_handle, hwparams, FALSE)) < 0)
/* don't bail, keep going with default mode with period wakeups */
pa_log_debug("snd_pcm_hw_params_set_period_wakeup() failed: %s", pa_alsa_strerror(ret));
else
More information about the pulseaudio-commits
mailing list