summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-05-03 11:24:47 +0200
committerwm4 <wm4@nowhere>2016-05-03 11:24:47 +0200
commit51e4c065ff9eef34da1729e5c8fc629b80f58c24 (patch)
treebd2d98568b4875761e304281c2f3c3b7b63a4b49 /audio
parent8a26e139af6e1534d63947d2ef0aed920248b051 (diff)
downloadmpv-51e4c065ff9eef34da1729e5c8fc629b80f58c24.tar.bz2
mpv-51e4c065ff9eef34da1729e5c8fc629b80f58c24.tar.xz
ao_alsa: log final hwparams too
snd_pcm_hw_params() updates them.
Diffstat (limited to 'audio')
-rw-r--r--audio/out/ao_alsa.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/audio/out/ao_alsa.c b/audio/out/ao_alsa.c
index dc233f509f..47ff51f83d 100644
--- a/audio/out/ao_alsa.c
+++ b/audio/out/ao_alsa.c
@@ -723,11 +723,12 @@ static int init_device(struct ao *ao)
if (err < 0)
snd_pcm_hw_params_copy(alsa_hwparams, hwparams_backup);
- dump_hw_params(ao, MSGL_V, "Final HW params:\n", alsa_hwparams);
+ dump_hw_params(ao, MSGL_V, "Going to set final HW params:\n", alsa_hwparams);
/* finally install hardware parameters */
err = snd_pcm_hw_params(p->alsa, alsa_hwparams);
CHECK_ALSA_ERROR("Unable to set hw-parameters");
+ dump_hw_params(ao, MSGL_DEBUG, "Final HW params:\n", alsa_hwparams);
if (set_chmap(ao, &dev_chmap, num_channels) < 0)
goto alsa_error;