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

Commit bfed9959 authored by Weiyin Jiang's avatar Weiyin Jiang Committed by Gerrit - the friendly Code Review server
Browse files

post_proc: remove unnecessary command size check

Up bound check for command size of EFFECT_CMD_SET_PARAM is not
applicable for DSP effect bundle. Remove the check to avoid parameter
not taking effect.

Change-Id: I7e8f73377699f11bdc1f62a05f6bea03c9c24151
CRs-Fixed: 816053
parent 5f5e167b
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -847,8 +847,6 @@ int effect_command(effect_handle_t self, uint32_t cmdCode, uint32_t cmdSize,
        } break;
    case EFFECT_CMD_SET_PARAM: {
        if (pCmdData == NULL ||
            cmdSize > (int)(sizeof(effect_param_t) + sizeof(uint32_t) +
                            sizeof(uint32_t)) ||
            cmdSize < (int)(sizeof(effect_param_t) + sizeof(uint32_t) +
                            sizeof(uint16_t)) ||
            pReplyData == NULL || *replySize != sizeof(int32_t)) {