Searched refs:apm_fmt (Results 1 – 1 of 1) sorted by relevance
209 static void get_best_channels(struct cras_audio_format *apm_fmt) in get_best_channels() argument215 if (apm_fmt->num_channels <= 2) in get_best_channels()227 apm_fmt->num_channels = 0; in get_best_channels()228 if (apm_fmt->channel_layout[CRAS_CH_FL] != -1) in get_best_channels()229 layout[CRAS_CH_FL] = apm_fmt->num_channels++; in get_best_channels()230 if (apm_fmt->channel_layout[CRAS_CH_FR] != -1) in get_best_channels()231 layout[CRAS_CH_FR] = apm_fmt->num_channels++; in get_best_channels()232 if (apm_fmt->channel_layout[CRAS_CH_FC] != -1) in get_best_channels()233 layout[CRAS_CH_FC] = apm_fmt->num_channels++; in get_best_channels()236 apm_fmt->channel_layout[ch] = layout[ch]; in get_best_channels()