Lines Matching refs:num_masks
1337 uint32_t num_masks = 0; in read_usb_sup_channel_masks() local
1344 supported_channel_masks[num_masks++] = audio_channel_out_mask_from_count(FCC_2); in read_usb_sup_channel_masks()
1347 channel_count <= channels && num_masks < max_masks; in read_usb_sup_channel_masks()
1349 supported_channel_masks[num_masks++] = in read_usb_sup_channel_masks()
1357 for ( ; channel_count <= channels && num_masks < max_masks; channel_count++) { in read_usb_sup_channel_masks()
1361 supported_channel_masks[num_masks++] = mask; in read_usb_sup_channel_masks()
1365 if (mask != index_mask && num_masks < max_masks) { // ensure index mask added. in read_usb_sup_channel_masks()
1366 supported_channel_masks[num_masks++] = index_mask; in read_usb_sup_channel_masks()
1371 for (size_t i = 0; i < num_masks; ++i) { in read_usb_sup_channel_masks()
1373 is_playback ? "P" : "C", channels, i, supported_channel_masks[i], num_masks); in read_usb_sup_channel_masks()
1376 return num_masks; in read_usb_sup_channel_masks()
1414 int num_masks; in read_usb_sup_params_and_compare() local
1420 num_masks = read_usb_sup_channel_masks(is_playback, supported_channel_masks, in read_usb_sup_params_and_compare()
1431 LUT(supported_channel_masks, num_masks, *mask, AUDIO_CHANNEL_NONE); in read_usb_sup_params_and_compare()