ao_alsa: log final hwparams too

snd_pcm_hw_params() updates them.
This commit is contained in:
wm4 2016-05-03 11:24:47 +02:00
parent 8a26e139af
commit 51e4c065ff
1 changed files with 2 additions and 1 deletions

View File

@ -723,11 +723,12 @@ static int init_device(struct ao *ao)
if (err < 0) if (err < 0)
snd_pcm_hw_params_copy(alsa_hwparams, hwparams_backup); 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 */ /* finally install hardware parameters */
err = snd_pcm_hw_params(p->alsa, alsa_hwparams); err = snd_pcm_hw_params(p->alsa, alsa_hwparams);
CHECK_ALSA_ERROR("Unable to set hw-parameters"); 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) if (set_chmap(ao, &dev_chmap, num_channels) < 0)
goto alsa_error; goto alsa_error;