mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
Merge Android 24Q1 Release (ab/11220357)
Bug: 319669529 Merged-In: I976f80006aeb88bde2ae34ca4f9be72cea727d9e Change-Id: Id94b25af52bd2e2847b6858697ab21cc6ce27aa3
This commit is contained in:
@@ -212,6 +212,11 @@ ndk::ScopedAStatus Module::createStreamContext(
|
||||
StreamContext::DebugParameters params{mDebug.streamTransientStateDelayMs,
|
||||
mVendorDebug.forceTransientBurst,
|
||||
mVendorDebug.forceSynchronousDrain};
|
||||
std::shared_ptr<ISoundDose> soundDose;
|
||||
if (!getSoundDose(&soundDose).isOk()) {
|
||||
LOG(ERROR) << __func__ << ": could not create sound dose instance";
|
||||
return ndk::ScopedAStatus::fromExceptionCode(EX_ILLEGAL_STATE);
|
||||
}
|
||||
StreamContext temp(
|
||||
std::make_unique<StreamContext::CommandMQ>(1, true /*configureEventFlagWord*/),
|
||||
std::make_unique<StreamContext::ReplyMQ>(1, true /*configureEventFlagWord*/),
|
||||
@@ -219,8 +224,7 @@ ndk::ScopedAStatus Module::createStreamContext(
|
||||
portConfigIt->sampleRate.value().value, flags, nominalLatencyMs,
|
||||
portConfigIt->ext.get<AudioPortExt::mix>().handle,
|
||||
std::make_unique<StreamContext::DataMQ>(frameSize * in_bufferSizeFrames),
|
||||
asyncCallback, outEventCallback,
|
||||
std::weak_ptr<sounddose::StreamDataProcessorInterface>{}, params);
|
||||
asyncCallback, outEventCallback, mSoundDose.getInstance(), params);
|
||||
if (temp.isValid()) {
|
||||
*out_context = std::move(temp);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user