• Home
  • Raw
  • Download

Lines Matching refs:channelMask

286         aaudio_channel_mask_t channelMask, bool isInput) {  in AAudioConvert_aaudioToAndroidChannelLayoutMask()  argument
288 switch (channelMask) { in AAudioConvert_aaudioToAndroidChannelLayoutMask()
306 ALOGE("%s() %#x unrecognized", __func__, channelMask); in AAudioConvert_aaudioToAndroidChannelLayoutMask()
310 switch (channelMask) { in AAudioConvert_aaudioToAndroidChannelLayoutMask()
361 ALOGE("%s() %#x unrecognized", __func__, channelMask); in AAudioConvert_aaudioToAndroidChannelLayoutMask()
368 audio_channel_mask_t channelMask, bool isInput) { in AAudioConvert_androidToAAudioChannelLayoutMask() argument
370 switch (channelMask) { in AAudioConvert_androidToAAudioChannelLayoutMask()
388 ALOGE("%s() %#x unrecognized", __func__, channelMask); in AAudioConvert_androidToAAudioChannelLayoutMask()
392 switch (channelMask) { in AAudioConvert_androidToAAudioChannelLayoutMask()
443 ALOGE("%s() %#x unrecognized", __func__, channelMask); in AAudioConvert_androidToAAudioChannelLayoutMask()
449 int32_t AAudioConvert_channelMaskToCount(aaudio_channel_mask_t channelMask) { in AAudioConvert_channelMaskToCount() argument
450 return __builtin_popcount(channelMask & ~AAUDIO_CHANNEL_BIT_INDEX); in AAudioConvert_channelMaskToCount()
467 audio_channel_mask_t channelMask) { in AAudioConvert_androidToAAudioChannelIndexMask() argument
468 if (audio_channel_mask_get_representation(channelMask) != AUDIO_CHANNEL_REPRESENTATION_INDEX) { in AAudioConvert_androidToAAudioChannelIndexMask()
469 ALOGE("%s() %#x not an index mask", __func__, channelMask); in AAudioConvert_androidToAAudioChannelIndexMask()
472 return (channelMask & ~AUDIO_CHANNEL_INDEX_HDR) | AAUDIO_CHANNEL_BIT_INDEX; in AAudioConvert_androidToAAudioChannelIndexMask()
476 aaudio_channel_mask_t channelMask) { in AAudioConvert_aaudioToAndroidChannelIndexMask() argument
477 if (!AAudio_isChannelIndexMask(channelMask)) { in AAudioConvert_aaudioToAndroidChannelIndexMask()
478 ALOGE("%s() %#x not an index mask", __func__, channelMask); in AAudioConvert_aaudioToAndroidChannelIndexMask()
482 AAudioConvert_channelMaskToCount(channelMask)); in AAudioConvert_aaudioToAndroidChannelIndexMask()
486 audio_channel_mask_t channelMask, bool isInput, bool indexMaskRequired) { in AAudioConvert_androidToAAudioChannelMask() argument
487 if (audio_channel_mask_get_representation(channelMask) == AUDIO_CHANNEL_REPRESENTATION_INDEX) { in AAudioConvert_androidToAAudioChannelMask()
488 return AAudioConvert_androidToAAudioChannelIndexMask(channelMask); in AAudioConvert_androidToAAudioChannelMask()
492 const int channelCount = isInput ? audio_channel_count_from_in_mask(channelMask) in AAudioConvert_androidToAAudioChannelMask()
493 : audio_channel_count_from_out_mask(channelMask); in AAudioConvert_androidToAAudioChannelMask()
496 return AAudioConvert_androidToAAudioChannelLayoutMask(channelMask, isInput); in AAudioConvert_androidToAAudioChannelMask()
500 aaudio_channel_mask_t channelMask, bool isInput) { in AAudioConvert_aaudioToAndroidChannelMask() argument
501 return AAudio_isChannelIndexMask(channelMask) in AAudioConvert_aaudioToAndroidChannelMask()
502 ? AAudioConvert_aaudioToAndroidChannelIndexMask(channelMask) in AAudioConvert_aaudioToAndroidChannelMask()
503 : AAudioConvert_aaudioToAndroidChannelLayoutMask(channelMask, isInput); in AAudioConvert_aaudioToAndroidChannelMask()
506 bool AAudio_isChannelIndexMask(aaudio_channel_mask_t channelMask) { in AAudio_isChannelIndexMask() argument
507 return (channelMask & AAUDIO_CHANNEL_BIT_INDEX) == AAUDIO_CHANNEL_BIT_INDEX; in AAudio_isChannelIndexMask()
511 aaudio_channel_mask_t channelMask, int32_t samplesPerFrame, bool isInput) { in AAudio_getChannelMaskForOpen() argument
512 if (channelMask != AAUDIO_UNSPECIFIED) { in AAudio_getChannelMaskForOpen()
513 if (AAudio_isChannelIndexMask(channelMask) && samplesPerFrame <= 2) { in AAudio_getChannelMaskForOpen()
520 return AAudioConvert_aaudioToAndroidChannelMask(channelMask, isInput); in AAudio_getChannelMaskForOpen()