aboutsummaryrefslogtreecommitdiffstats
path: root/sound/core
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2012-09-11 08:24:43 -0400
committerTakashi Iwai <tiwai@suse.de>2012-09-11 08:24:43 -0400
commit2dc6fbf0078e8148b571f1bbec704ca5c8e2ec2c (patch)
tree515fa72ab82691073930202c40a4d112d3de32d8 /sound/core
parent498dab3aa7f8851a880ffe9d8e66516851950c59 (diff)
ALSA: pcm - Use UNKNOWN chmap for mono streams
In general, mono streams have no dedicated speaker assignment, thus they should be rather marked as UNKNOWN position. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core')
-rw-r--r--sound/core/pcm_lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/core/pcm_lib.c b/sound/core/pcm_lib.c
index 0a750ec5c400..9647a22ed69a 100644
--- a/sound/core/pcm_lib.c
+++ b/sound/core/pcm_lib.c
@@ -2311,7 +2311,7 @@ EXPORT_SYMBOL(snd_pcm_lib_readv);
2311/* default channel maps for multi-channel playbacks, up to 8 channels */ 2311/* default channel maps for multi-channel playbacks, up to 8 channels */
2312const struct snd_pcm_chmap_elem snd_pcm_std_chmaps[] = { 2312const struct snd_pcm_chmap_elem snd_pcm_std_chmaps[] = {
2313 { .channels = 1, 2313 { .channels = 1,
2314 .map = { SNDRV_CHMAP_FC } }, 2314 .map = { SNDRV_CHMAP_UNKNOWN } },
2315 { .channels = 2, 2315 { .channels = 2,
2316 .map = { SNDRV_CHMAP_FL, SNDRV_CHMAP_FR } }, 2316 .map = { SNDRV_CHMAP_FL, SNDRV_CHMAP_FR } },
2317 { .channels = 4, 2317 { .channels = 4,
@@ -2333,7 +2333,7 @@ EXPORT_SYMBOL_GPL(snd_pcm_std_chmaps);
2333/* alternative channel maps with CLFE <-> surround swapped for 6/8 channels */ 2333/* alternative channel maps with CLFE <-> surround swapped for 6/8 channels */
2334const struct snd_pcm_chmap_elem snd_pcm_alt_chmaps[] = { 2334const struct snd_pcm_chmap_elem snd_pcm_alt_chmaps[] = {
2335 { .channels = 1, 2335 { .channels = 1,
2336 .map = { SNDRV_CHMAP_FC } }, 2336 .map = { SNDRV_CHMAP_UNKNOWN } },
2337 { .channels = 2, 2337 { .channels = 2,
2338 .map = { SNDRV_CHMAP_FL, SNDRV_CHMAP_FR } }, 2338 .map = { SNDRV_CHMAP_FL, SNDRV_CHMAP_FR } },
2339 { .channels = 4, 2339 { .channels = 4,