]> git.alsa-project.org Git - alsa-utils.git/commit
speaker-test: Always show chmap channel names if available
authorAnssi Hannula <anssi.hannula@iki.fi>
Sun, 10 Nov 2013 18:29:18 +0000 (20:29 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 12 Nov 2013 08:10:26 +0000 (09:10 +0100)
commit5b0c6da0d8166cd404379740c5f75fda44ca5806
tree4669f005ea18dd3b523834937cf81351ac0626a4
parenta1992044d5813371ce71f5252187942f943b198d
speaker-test: Always show chmap channel names if available

Currently speaker-test only uses channel names retrieved by
snd_pcm_chmap_long_name() when a channel map has been manually set.

However, the device may provide a default (or fixed) channel map that
differs from the traditional ALSA map, in which case wrong channel names
are shown.

Fix that by always using the name from the channel map when a channel
map is present.

Note that the names retrieved by snd_pcm_chmap_long_name() are not
currently localized via gettext.

Also note that Linux kernel HDMI driver reported wrong default channel
maps before 56cac413dd6d43af8355f5d1f90a199b540f73fc ("ALSA: hda - hdmi:
Fix reported channel map on common default layouts").

Signed-off-by: Anssi Hannula <anssi.hannula@iki.fi>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
speaker-test/speaker-test.c