output/alsa: more debug output
This commit is contained in:
parent
1a57fa095f
commit
2f0674807c
@ -441,6 +441,11 @@ configure_hw:
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
snd_pcm_format_t format;
|
||||||
|
if (snd_pcm_hw_params_get_format(hwparams, &format) == 0)
|
||||||
|
g_debug("format=%s (%s)", snd_pcm_format_name(format),
|
||||||
|
snd_pcm_format_description(format));
|
||||||
|
|
||||||
err = snd_pcm_hw_params_set_channels_near(ad->pcm, hwparams,
|
err = snd_pcm_hw_params_set_channels_near(ad->pcm, hwparams,
|
||||||
&channels);
|
&channels);
|
||||||
if (err < 0) {
|
if (err < 0) {
|
||||||
@ -644,6 +649,9 @@ alsa_open(struct audio_output *ao, struct audio_format *audio_format, GError **e
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
g_debug("opened %s type=%s", snd_pcm_name(ad->pcm),
|
||||||
|
snd_pcm_type_name(snd_pcm_type(ad->pcm)));
|
||||||
|
|
||||||
success = alsa_setup_or_dsd(ad, audio_format, error);
|
success = alsa_setup_or_dsd(ad, audio_format, error);
|
||||||
if (!success) {
|
if (!success) {
|
||||||
snd_pcm_close(ad->pcm);
|
snd_pcm_close(ad->pcm);
|
||||||
|
Loading…
Reference in New Issue
Block a user