Lines Matching refs:common
22 using aidl::android::hardware::audio::common::getChannelCount;
23 using aidl::android::hardware::audio::common::getFrameSizeInBytes;
26 using aidl::android::media::audio::common::PcmType;
31 EffectContext::EffectContext(size_t statusDepth, const Parameter::Common& common) { in EffectContext() argument
32 LOG_ALWAYS_FATAL_IF(RetCode::SUCCESS != setCommon(common), "illegalCommonParameter"); in EffectContext()
35 size_t inBufferSizeInFloat = common.input.frameCount * mInputFrameSize / sizeof(float); in EffectContext()
36 size_t outBufferSizeInFloat = common.output.frameCount * mOutputFrameSize / sizeof(float); in EffectContext()
122 const std::vector<aidl::android::media::audio::common::AudioDeviceDescription>& device) { in setOutputDevice()
127 std::vector<aidl::android::media::audio::common::AudioDeviceDescription>
132 RetCode EffectContext::setAudioMode(const aidl::android::media::audio::common::AudioMode& mode) { in setAudioMode()
136 aidl::android::media::audio::common::AudioMode EffectContext::getAudioMode() { in getAudioMode()
141 const aidl::android::media::audio::common::AudioSource& source) { in setAudioSource()
146 aidl::android::media::audio::common::AudioSource EffectContext::getAudioSource() { in getAudioSource()
159 RetCode EffectContext::setCommon(const Parameter::Common& common) { in setCommon() argument
160 auto& input = common.input; in setCommon()
161 auto& output = common.output; in setCommon()
163 if (input.base.format.pcm != aidl::android::media::audio::common::PcmType::FLOAT_32_BIT || in setCommon()
164 output.base.format.pcm != aidl::android::media::audio::common::PcmType::FLOAT_32_BIT) { in setCommon()
171 if (auto ret = updateIOFrameSize(common); ret != RetCode::SUCCESS) { in setCommon()
183 mCommon = common; in setCommon()
195 RetCode EffectContext::updateIOFrameSize(const Parameter::Common& common) { in updateIOFrameSize() argument
198 mInputFrameSize = ::aidl::android::hardware::audio::common::getFrameSizeInBytes( in updateIOFrameSize()
199 common.input.base.format, common.input.base.channelMask); in updateIOFrameSize()
200 mOutputFrameSize = ::aidl::android::hardware::audio::common::getFrameSizeInBytes( in updateIOFrameSize()
201 common.output.base.format, common.output.base.channelMask); in updateIOFrameSize()
214 mCommon.input.frameCount != common.input.frameCount) { in updateIOFrameSize()
219 mCommon.output.frameCount != common.output.frameCount) { in updateIOFrameSize()
225 mWorkBuffer.resize(std::max(common.input.frameCount * mInputFrameSize / sizeof(float), in updateIOFrameSize()
226 common.output.frameCount * mOutputFrameSize / sizeof(float))); in updateIOFrameSize()