diff options
author | Takashi Iwai <tiwai@suse.de> | 2012-09-12 12:06:54 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-09-12 12:13:03 -0400 |
commit | 7b31d0095e87221dc32c95642a2a714ea08259aa (patch) | |
tree | 098dc2c137b0f9a0d098d6e7751ab350e027cd6e /Documentation/sound | |
parent | 0afdb8f2869610b7c2eb99d75ba8b9003b8e88d7 (diff) |
ALSA: Define more channel map positions
For following the standard, define more channel map positions and
shuffle the items a bit:
- As both PulseAudio and gstreamer define MONO channel position
explicitly, we should follow that, too. The mono streams point to
this channel position unless they are explicitly assigned to certain
channel positions.
- Top-front-* and Top-rear-* positions are added, carried from
PulseAudio's definitions.
- Move NA and MONO definitions at the top of table right after
UNKNOWN, since these are more abstract in comparison with other
practical positions.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'Documentation/sound')
-rw-r--r-- | Documentation/sound/alsa/Channel-Mapping-API.txt | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/Documentation/sound/alsa/Channel-Mapping-API.txt b/Documentation/sound/alsa/Channel-Mapping-API.txt index 4bbf12d5553f..3c43d1a4ca0e 100644 --- a/Documentation/sound/alsa/Channel-Mapping-API.txt +++ b/Documentation/sound/alsa/Channel-Mapping-API.txt | |||
@@ -76,8 +76,10 @@ here is a cut: | |||
76 | 76 | ||
77 | /* channel positions */ | 77 | /* channel positions */ |
78 | enum { | 78 | enum { |
79 | /* this follows the alsa-lib mixer channel value + 1 */ | ||
80 | SNDRV_CHMAP_UNKNOWN = 0, | 79 | SNDRV_CHMAP_UNKNOWN = 0, |
80 | SNDRV_CHMAP_NA, /* N/A, silent */ | ||
81 | SNDRV_CHMAP_MONO, /* mono stream */ | ||
82 | /* this follows the alsa-lib mixer channel value + 3 */ | ||
81 | SNDRV_CHMAP_FL, /* front left */ | 83 | SNDRV_CHMAP_FL, /* front left */ |
82 | SNDRV_CHMAP_FR, /* front right */ | 84 | SNDRV_CHMAP_FR, /* front right */ |
83 | SNDRV_CHMAP_RL, /* rear left */ | 85 | SNDRV_CHMAP_RL, /* rear left */ |
@@ -98,8 +100,13 @@ enum { | |||
98 | SNDRV_CHMAP_FCH, /* front center high */ | 100 | SNDRV_CHMAP_FCH, /* front center high */ |
99 | SNDRV_CHMAP_FRH, /* front right high */ | 101 | SNDRV_CHMAP_FRH, /* front right high */ |
100 | SNDRV_CHMAP_TC, /* top center */ | 102 | SNDRV_CHMAP_TC, /* top center */ |
101 | SNDRV_CHMAP_NA, /* N/A, silent */ | 103 | SNDRV_CHMAP_TFL, /* top front left */ |
102 | SNDRV_CHMAP_LAST = SNDRV_CHMAP_NA, | 104 | SNDRV_CHMAP_TFR, /* top front right */ |
105 | SNDRV_CHMAP_TFC, /* top front center */ | ||
106 | SNDRV_CHMAP_TRL, /* top rear left */ | ||
107 | SNDRV_CHMAP_TRR, /* top rear right */ | ||
108 | SNDRV_CHMAP_TRC, /* top rear center */ | ||
109 | SNDRV_CHMAP_LAST = SNDRV_CHMAP_TRC, | ||
103 | }; | 110 | }; |
104 | 111 | ||
105 | When a PCM stream can provide more than one channel map, you can | 112 | When a PCM stream can provide more than one channel map, you can |