Lines Matching refs:num_masks
1338 uint32_t num_masks = 0; in read_usb_sup_channel_masks() local
1345 supported_channel_masks[num_masks++] = audio_channel_out_mask_from_count(FCC_2); in read_usb_sup_channel_masks()
1348 channel_count <= channels && num_masks < max_masks; in read_usb_sup_channel_masks()
1350 supported_channel_masks[num_masks++] = in read_usb_sup_channel_masks()
1358 for ( ; channel_count <= channels && num_masks < max_masks; channel_count++) { in read_usb_sup_channel_masks()
1362 supported_channel_masks[num_masks++] = mask; in read_usb_sup_channel_masks()
1366 if (mask != index_mask && num_masks < max_masks) { // ensure index mask added. in read_usb_sup_channel_masks()
1367 supported_channel_masks[num_masks++] = index_mask; in read_usb_sup_channel_masks()
1372 for (size_t i = 0; i < num_masks; ++i) { in read_usb_sup_channel_masks()
1374 is_playback ? "P" : "C", channels, i, supported_channel_masks[i], num_masks); in read_usb_sup_channel_masks()
1377 return num_masks; in read_usb_sup_channel_masks()
1415 int num_masks; in read_usb_sup_params_and_compare() local
1421 num_masks = read_usb_sup_channel_masks(is_playback, supported_channel_masks, in read_usb_sup_params_and_compare()
1432 LUT(supported_channel_masks, num_masks, *mask, AUDIO_CHANNEL_NONE); in read_usb_sup_params_and_compare()