diff options
author | David Henningsson <david.henningsson@canonical.com> | 2014-05-23 14:20:16 +0200 |
---|---|---|
committer | David Henningsson <david.henningsson@canonical.com> | 2014-05-27 12:02:31 +0200 |
commit | 65be25dd0faa566a74101d5a0f50d5a825b6f1e7 (patch) | |
tree | 51dcfba5bc2e9867ed517891f901acce841bae02 /src/pulse | |
parent | a9d38b50e8cf4d841fe7beebe20c5d1d8bf7f777 (diff) |
channelmap: Add 2.1 surround
Add surround-21 as a alias to set up a 2.1 channel map.
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Diffstat (limited to 'src/pulse')
-rw-r--r-- | src/pulse/channelmap.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pulse/channelmap.c b/src/pulse/channelmap.c index 72e4130ee..e1b173a18 100644 --- a/src/pulse/channelmap.c +++ b/src/pulse/channelmap.c @@ -536,6 +536,12 @@ pa_channel_map *pa_channel_map_parse(pa_channel_map *rmap, const char *s) { map.map[0] = PA_CHANNEL_POSITION_LEFT; map.map[1] = PA_CHANNEL_POSITION_RIGHT; goto finish; + } else if (pa_streq(s, "surround-21")) { + map.channels = 3; + map.map[0] = PA_CHANNEL_POSITION_FRONT_LEFT; + map.map[1] = PA_CHANNEL_POSITION_FRONT_RIGHT; + map.map[2] = PA_CHANNEL_POSITION_LFE; + goto finish; } else if (pa_streq(s, "surround-40")) { map.channels = 4; map.map[0] = PA_CHANNEL_POSITION_FRONT_LEFT; |