mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
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@chromium.org>
This commit is contained in:
parent
a3678d241b
commit
77a68b56ab
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue