From b58e4abc01ea3f9a58fdeb4843b3c69ee88e1ff6 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 2 Nov 2015 23:55:52 +0100 Subject: ao_alsa: treat SND_CHMAP_UNKNOWN as NA channel too Apparently required by nVidia HDMI. It should not be, and NA would definitely be more correct here, so this could be considered a driver bug. Maybe. --- audio/out/ao_alsa.c | 1 + 1 file changed, 1 insertion(+) (limited to 'audio') diff --git a/audio/out/ao_alsa.c b/audio/out/ao_alsa.c index 30d0f249b9..75a11a85c3 100644 --- a/audio/out/ao_alsa.c +++ b/audio/out/ao_alsa.c @@ -275,6 +275,7 @@ static const int alsa_to_mp_channels[][2] = { {SND_CHMAP_RLC, MP_SP(SDL)}, {SND_CHMAP_MONO, MP_SP(FC)}, {SND_CHMAP_NA, MP_SPEAKER_ID_NA}, + {SND_CHMAP_UNKNOWN, MP_SPEAKER_ID_NA}, {SND_CHMAP_LAST, MP_SPEAKER_ID_COUNT} }; -- cgit v1.2.3