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

Commit 0586bad8 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "audio-hal: Fix kw issue"

parents b9031253 e8a09a9b
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -902,7 +902,8 @@ int effect_command(effect_handle_t self, uint32_t cmdCode, uint32_t cmdSize,
        }
        if (pCmdData == NULL || cmdSize != 2 * sizeof(uint32_t) ||
                replySize == NULL || *replySize < 2*sizeof(int32_t)) {
            return -EINVAL;
            status = -EINVAL;
            goto exit;
        }
        memcpy(pReplyData, pCmdData, sizeof(int32_t)*2);
        } break;
@@ -946,7 +947,8 @@ int effect_command(effect_handle_t self, uint32_t cmdCode, uint32_t cmdSize,
              cmdSize, pCmdData, *replySize, pReplyData);
        if (cmdSize != sizeof(uint32_t) || pCmdData == NULL
                || pReplyData == NULL || *replySize != sizeof(int)) {
            return -EINVAL;
            status = -EINVAL;
            goto exit;
        }
        uint32_t value = *(uint32_t *)pCmdData;
        if (context->ops.set_hw_acc_mode)