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

Commit 97aaad8e authored by Saketh Sathuvalli's avatar Saketh Sathuvalli Committed by Andy Hung
Browse files

libeffects: Corrected the Copy_Float in LVM_Process.c to handle MC

Copy_Float function present after the LVDBE_Process function in
LVM_Process.c was not taking into consideration NumChannels.
Corrected this.

Test: discovered by code inspection, CTS, Solotester
Bug: 130781096
Change-Id: Ib0bccd36f3986463b602fa20fc09ab0741f7e39e
parent 8263e351
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -230,9 +230,15 @@ LVM_ReturnStatus_en LVM_Process(LVM_Handle_t hInstance,
             */
            if (pToProcess != pProcessed)
            {
#ifdef SUPPORT_MC
                Copy_Float(pToProcess,                             /* Source */
                           pProcessed,                             /* Destination */
                           (LVM_INT16)(NrChannels * NrFrames));    /* Copy all samples */
#else
                Copy_Float(pToProcess,                             /* Source */
                           pProcessed,                             /* Destination */
                           (LVM_INT16)(2 * SampleCount));          /* Left and right */
#endif
            }

            /*