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

Commit b43695e6 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "hal: revert alignment logic"

parents c7894380 b85f2d94
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1250,8 +1250,7 @@ uint32_t get_alsa_fragment_size(uint32_t bytes_per_sample,
     *be multiple of (number of channels * bytes per sample)
     *For writes to succeed, the buffer must be written at address which is multiple of 32
     */
    fragment_size = ALIGN(fragment_size, (bytes_per_sample * noOfChannels));
    fragment_size = ALIGN(fragment_size, 32);
    fragment_size = ALIGN(fragment_size, (bytes_per_sample * noOfChannels * 32));

    ALOGI("PCM offload Fragment size to %d bytes", fragment_size);
    return fragment_size;