| .. | .. |
|---|
| 1153 | 1153 | return path && path->ctls[ctl_type]; |
|---|
| 1154 | 1154 | } |
|---|
| 1155 | 1155 | |
|---|
| 1156 | | -static const char * const channel_name[4] = { |
|---|
| 1157 | | - "Front", "Surround", "CLFE", "Side" |
|---|
| 1156 | +static const char * const channel_name[] = { |
|---|
| 1157 | + "Front", "Surround", "CLFE", "Side", "Back", |
|---|
| 1158 | 1158 | }; |
|---|
| 1159 | 1159 | |
|---|
| 1160 | 1160 | /* give some appropriate ctl name prefix for the given line out channel */ |
|---|
| .. | .. |
|---|
| 1180 | 1180 | |
|---|
| 1181 | 1181 | /* multi-io channels */ |
|---|
| 1182 | 1182 | if (ch >= cfg->line_outs) |
|---|
| 1183 | | - return channel_name[ch]; |
|---|
| 1183 | + goto fixed_name; |
|---|
| 1184 | 1184 | |
|---|
| 1185 | 1185 | switch (cfg->line_out_type) { |
|---|
| 1186 | 1186 | case AUTO_PIN_SPEAKER_OUT: |
|---|
| .. | .. |
|---|
| 1232 | 1232 | if (cfg->line_outs == 1 && !spec->multi_ios) |
|---|
| 1233 | 1233 | return "Line Out"; |
|---|
| 1234 | 1234 | |
|---|
| 1235 | + fixed_name: |
|---|
| 1235 | 1236 | if (ch >= ARRAY_SIZE(channel_name)) { |
|---|
| 1236 | 1237 | snd_BUG(); |
|---|
| 1237 | 1238 | return "PCM"; |
|---|