audio: Add API to get io handle am: 1d2d51a55d
am: 9d5a3d5ad7
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2393093 Change-Id: I7b301c65f0f34bdf9b2d2268dd0119435b434bc3 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
68d5277f48
2 changed files with 4 additions and 4 deletions
|
@ -49,7 +49,6 @@ ndk::ScopedAStatus EffectImpl::open(const Parameter::Common& common,
|
|||
auto context = createContext(common);
|
||||
RETURN_IF(!context, EX_NULL_POINTER, "createContextFailed");
|
||||
|
||||
RETURN_IF_ASTATUS_NOT_OK(setParameterCommon(common), "setCommParamErr");
|
||||
if (specific.has_value()) {
|
||||
RETURN_IF_ASTATUS_NOT_OK(setParameterSpecific(specific.value()), "setSpecParamErr");
|
||||
}
|
||||
|
|
|
@ -37,7 +37,6 @@ class EffectContext {
|
|||
DataMQ;
|
||||
|
||||
EffectContext(size_t statusDepth, const Parameter::Common& common) {
|
||||
mSessionId = common.session;
|
||||
auto& input = common.input;
|
||||
auto& output = common.output;
|
||||
|
||||
|
@ -63,6 +62,7 @@ class EffectContext {
|
|||
LOG(ERROR) << __func__ << " created invalid FMQ";
|
||||
}
|
||||
mWorkBuffer.reserve(std::max(inBufferSizeInFloat, outBufferSizeInFloat));
|
||||
mCommon = common;
|
||||
}
|
||||
virtual ~EffectContext() {}
|
||||
|
||||
|
@ -88,7 +88,8 @@ class EffectContext {
|
|||
}
|
||||
size_t getInputFrameSize() { return mInputFrameSize; }
|
||||
size_t getOutputFrameSize() { return mOutputFrameSize; }
|
||||
int getSessionId() { return mSessionId; }
|
||||
int getSessionId() { return mCommon.session; }
|
||||
int getIoHandle() { return mCommon.ioHandle; }
|
||||
|
||||
virtual RetCode setOutputDevice(
|
||||
const std::vector<aidl::android::media::audio::common::AudioDeviceDescription>&
|
||||
|
@ -96,6 +97,7 @@ class EffectContext {
|
|||
mOutputDevice = device;
|
||||
return RetCode::SUCCESS;
|
||||
}
|
||||
|
||||
virtual std::vector<aidl::android::media::audio::common::AudioDeviceDescription>
|
||||
getOutputDevice() {
|
||||
return mOutputDevice;
|
||||
|
@ -131,7 +133,6 @@ class EffectContext {
|
|||
|
||||
protected:
|
||||
// common parameters
|
||||
int mSessionId = INVALID_AUDIO_SESSION_ID;
|
||||
size_t mInputFrameSize;
|
||||
size_t mOutputFrameSize;
|
||||
Parameter::Common mCommon;
|
||||
|
|
Loading…
Reference in a new issue