From 5b269ce696f655358c28da11f17b6d86678cb729 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 12 Jun 2015 23:08:09 +0200 Subject: [PATCH] ao_alsa: make it accept 7.1 over HDMI SDR/SDL is what lavc outputs for 7.1(rear), while RRC/RLC is what ALSA uses for some 7.1 layouts, so this makes sense to me. --- audio/out/ao_alsa.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/audio/out/ao_alsa.c b/audio/out/ao_alsa.c index 779a669150..316bdc0b3c 100644 --- a/audio/out/ao_alsa.c +++ b/audio/out/ao_alsa.c @@ -251,6 +251,8 @@ static const int alsa_to_mp_channels[][2] = { {SND_CHMAP_TRL, MP_SP(TBL)}, {SND_CHMAP_TRR, MP_SP(TBR)}, {SND_CHMAP_TRC, MP_SP(TBC)}, + {SND_CHMAP_RRC, MP_SP(SDR)}, + {SND_CHMAP_RLC, MP_SP(SDL)}, {SND_CHMAP_MONO, MP_SP(FC)}, {SND_CHMAP_NA, MP_SPEAKER_ID_NA}, {SND_CHMAP_LAST, MP_SPEAKER_ID_COUNT}