summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-11-02 23:55:52 +0100
committerwm4 <wm4@nowhere>2015-11-03 00:23:28 +0100
commitb58e4abc01ea3f9a58fdeb4843b3c69ee88e1ff6 (patch)
treefcba95e800687f00973a966af1093300345c3f42
parent3fb161ecd2dcf9a8e0774d88e60de0612ca56f9f (diff)
downloadmpv-b58e4abc01ea3f9a58fdeb4843b3c69ee88e1ff6.tar.bz2
mpv-b58e4abc01ea3f9a58fdeb4843b3c69ee88e1ff6.tar.xz
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.
-rw-r--r--audio/out/ao_alsa.c1
1 files changed, 1 insertions, 0 deletions
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}
};