Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit af55dae8 authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 7408768 from c52f8f4e to sc-release

Change-Id: I70ab6be70bc5589fc4136fe308b86355be34487e
parents 673768ff c52f8f4e
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -166,6 +166,10 @@ aaudio_result_t AudioEndpoint::configure(const EndpointDescriptor *pEndpointDesc
                                  ? &mDataWriteCounter
                                  ? &mDataWriteCounter
                                  : descriptor->writeCounterAddress;
                                  : descriptor->writeCounterAddress;


    // Clear buffer to avoid an initial glitch on some devices.
    size_t bufferSizeBytes = descriptor->capacityInFrames * descriptor->bytesPerFrame;
    memset(descriptor->dataAddress, 0, bufferSizeBytes);

    mDataQueue = std::make_unique<FifoBufferIndirect>(
    mDataQueue = std::make_unique<FifoBufferIndirect>(
            descriptor->bytesPerFrame,
            descriptor->bytesPerFrame,
            descriptor->capacityInFrames,
            descriptor->capacityInFrames,