Searched refs:apm_fmt (Results 1 – 1 of 1) sorted by relevance
238 static void get_best_channels(struct cras_audio_format *apm_fmt) in get_best_channels() argument255 apm_fmt->num_channels = 0; in get_best_channels()256 if (apm_fmt->channel_layout[CRAS_CH_FL] != -1) in get_best_channels()257 layout[CRAS_CH_FL] = apm_fmt->num_channels++; in get_best_channels()258 if (apm_fmt->channel_layout[CRAS_CH_FR] != -1) in get_best_channels()259 layout[CRAS_CH_FR] = apm_fmt->num_channels++; in get_best_channels()260 if (apm_fmt->channel_layout[CRAS_CH_FC] != -1) in get_best_channels()261 layout[CRAS_CH_FC] = apm_fmt->num_channels++; in get_best_channels()264 apm_fmt->channel_layout[ch] = layout[ch]; in get_best_channels()