summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-12-29 18:49:11 +0100
committerwm4 <wm4@nowhere>2014-12-29 18:49:11 +0100
commitadeada149b8692a29c2814f186fadb4d8313be41 (patch)
tree30bcfd88ffdffd3e2ef6cd5fe88b94949aa487d6 /audio
parent20f6cf3ec6996735f441cbd852e28879f0ee86de (diff)
downloadmpv-adeada149b8692a29c2814f186fadb4d8313be41.tar.bz2
mpv-adeada149b8692a29c2814f186fadb4d8313be41.tar.xz
ao_alsa: print channel map if setting it fails
This message is printed when the audio device advertised a channel map, but couldn't set it - which is probably a dmix bug (we'll never know, ALSA doesn't take bug reports). Print the requested map, so that the user (maybe) can make a connection when seeing the message and the actually used channel map, which might be less confusing. Or at least less useless.
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 4a69bb7bd9..eb9095cbbc 100644
--- a/audio/out/ao_alsa.c
+++ b/audio/out/ao_alsa.c
@@ -548,7 +548,8 @@ static int init_device(struct ao *ao)
err = snd_pcm_set_chmap(p->alsa, alsa_chmap);
if (err == -ENXIO) {
- MP_WARN(ao, "Device does not support requested channel map\n");
+ MP_WARN(ao, "Device does not support requested channel map (%s)\n",
+ mp_chmap_to_str(&dev_chmap));
} else {
CHECK_ALSA_WARN("Channel map setup failed");
}