Change-Id: Ic1b147fbf96aa567af9ea10533d0012a8765eca4
profile->channel_counts[num_counts++] = std_channel_counts[index];
}
}
+ // if we have no match with the standard counts, we use the largest (preferred) std count.
+ if (num_counts == 0) {
+ ALOGW("usb device does not match std channel counts, setting to %d",
+ std_channel_counts[0]);
+ profile->channel_counts[num_counts++] = std_channel_counts[0];
+ }
profile->channel_counts[num_counts] = 0;
return num_counts; /* return # of supported counts */
}