mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
Fix after aosp/2836447
Update 'memset' in StreamPrimary to fill the entire buffer. Bug: 302132812 Bug: 302587331 Test: atest CtsMediaAudioTestCases Change-Id: I6c2e0fc9ab49b35a9484ac3a900aefa9aa98315c
This commit is contained in:
@@ -60,7 +60,7 @@ StreamPrimary::StreamPrimary(StreamContext* context, const Metadata& metadata)
|
||||
} else {
|
||||
LOG(DEBUG) << __func__ << ": skipping transfer (" << frameCount << " frames)";
|
||||
*actualFrameCount = frameCount;
|
||||
if (mIsInput) memset(buffer, 0, frameCount);
|
||||
if (mIsInput) memset(buffer, 0, frameCount * mFrameSizeBytes);
|
||||
mSkipNextTransfer = false;
|
||||
}
|
||||
if (!mIsAsynchronous) {
|
||||
|
||||
Reference in New Issue
Block a user