The channel config from the streaming descriptor is probably a
better indicator of the channel map than the input terminal.
Use the input terminal's channel map as fallback only.
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
 
                        num_channels = as->bNrChannels;
                        format = le32_to_cpu(as->bmFormats);
+                       chconfig = le32_to_cpu(as->bmChannelConfig);
 
                        /* lookup the terminal associated to this interface
                         * to extract the clock */
                                                                            as->bTerminalLink);
                        if (input_term) {
                                clock = input_term->bCSourceID;
-                               chconfig = le32_to_cpu(input_term->bmChannelConfig);
+                               if (!chconfig && (num_channels == input_term->bNrChannels))
+                                       chconfig = le32_to_cpu(input_term->bmChannelConfig);
                                break;
                        }