• Home
  • Raw
  • Download

Lines Matching refs:mPCM

369             pDataFormat->mPCM = *(SLDataFormat_PCM *)pFormat;  in checkDataFormat()
371 if (pDataFormat->mPCM.numChannels == 0) { in checkDataFormat()
373 } else if (pDataFormat->mPCM.numChannels > SL_ANDROID_SPEAKER_COUNT_MAX) { in checkDataFormat()
377 SL_LOGE("%s: numChannels=%u", name, (unsigned) pDataFormat->mPCM.numChannels); in checkDataFormat()
382 if (pDataFormat->mPCM.samplesPerSec == 0) { in checkDataFormat()
384 } else if (pDataFormat->mPCM.samplesPerSec < SL_SAMPLINGRATE_8 || in checkDataFormat()
385 pDataFormat->mPCM.samplesPerSec > SL_SAMPLINGRATE_192) { in checkDataFormat()
389 SL_LOGE("%s: samplesPerSec=%u", name, pDataFormat->mPCM.samplesPerSec); in checkDataFormat()
394 switch (pDataFormat->mPCM.containerSize) { in checkDataFormat()
420 SL_LOGE("%s: containerSize=%u", name, pDataFormat->mPCM.containerSize); in checkDataFormat()
425 if (pDataFormat->mPCM.bitsPerSample == 0 || in checkDataFormat()
426 pDataFormat->mPCM.containerSize < pDataFormat->mPCM.bitsPerSample) { in checkDataFormat()
431 (unsigned) pDataFormat->mPCM.containerSize, in checkDataFormat()
432 (unsigned) pDataFormat->mPCM.bitsPerSample); in checkDataFormat()
439 pDataFormat->mPCM.channelMask, in checkDataFormat()
440 pDataFormat->mPCM.numChannels); in checkDataFormat()
442 if (pDataFormat->mPCM.channelMask == 0) { in checkDataFormat()
448 ? sles_channel_out_mask_from_count(pDataFormat->mPCM.numChannels) in checkDataFormat()
449 : sles_channel_in_mask_from_count(pDataFormat->mPCM.numChannels); in checkDataFormat()
452 "requested speaker count of %u", pDataFormat->mPCM.numChannels); in checkDataFormat()
455 pDataFormat->mPCM.channelMask = mask; in checkDataFormat()
458 pDataFormat->mPCM.channelMask, in checkDataFormat()
459 pDataFormat->mPCM.numChannels); in checkDataFormat()
463 SLuint32 mask = pDataFormat->mPCM.channelMask; in checkDataFormat()
465 if (count != pDataFormat->mPCM.numChannels) { in checkDataFormat()
468 pDataFormat->mPCM.numChannels, in checkDataFormat()
475 SL_LOGV("%s: final channel mask is 0x%x", name, pDataFormat->mPCM.channelMask); in checkDataFormat()
478 switch (pDataFormat->mPCM.endianness) { in checkDataFormat()
488 SL_LOGE("%s: endianness=%u", name, (unsigned) pDataFormat->mPCM.endianness); in checkDataFormat()
671 (1 == pSrcDataLocatorFormat->mFormat.mPCM.numChannels)) { in checkSourceSinkVsInterfacesCompatibility()