aboutsummaryrefslogtreecommitdiffstats
path: root/src/output
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-03-26 23:49:16 +0200
committerMax Kellermann <max@duempel.org>2012-03-27 00:14:37 +0200
commit2f0674807c39e29234c6ffa3b75cced87306aaab (patch)
tree2901c9e890641c0e2bf8bde5a4b7a91f3c30889b /src/output
parent1a57fa095f3aefe7a1fb9f37a9432cdda33e9f3f (diff)
downloadmpd-2f0674807c39e29234c6ffa3b75cced87306aaab.tar.gz
mpd-2f0674807c39e29234c6ffa3b75cced87306aaab.tar.xz
mpd-2f0674807c39e29234c6ffa3b75cced87306aaab.zip
output/alsa: more debug output
Diffstat (limited to 'src/output')
-rw-r--r--src/output/alsa_output_plugin.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/output/alsa_output_plugin.c b/src/output/alsa_output_plugin.c
index d0b0c4a5e..aaf489ea8 100644
--- a/src/output/alsa_output_plugin.c
+++ b/src/output/alsa_output_plugin.c
@@ -441,6 +441,11 @@ configure_hw:
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,
&channels);
if (err < 0) {
@@ -644,6 +649,9 @@ alsa_open(struct audio_output *ao, struct audio_format *audio_format, GError **e
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);
if (!success) {
snd_pcm_close(ad->pcm);