summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPoomarin Phloyphisut <poomarin@google.com>2023-06-09 13:04:59 +0000
committerJoey Poomarin Phloyphisut <poomarin@google.com>2023-08-24 07:36:45 +0000
commitbaed114a16b44f17708e8ff991d8a486429f82bc (patch)
tree6a9245e44d9611fb39cf885dc0b03c679f033408
parent754a59f2dae5a9e648f2f857cbbea0a018e6e396 (diff)
downloadamplifiers-android-gs-shusky-5.15-u-qpr1-beta2.tar.gz
Test: local test Bug: 280248992 Change-Id: I983a24947c1fb01bd8b7add08bbadee65dc488eb
-rw-r--r--audiometrics/audiometrics.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/audiometrics/audiometrics.c b/audiometrics/audiometrics.c
index b0a9051..8c8a833 100644
--- a/audiometrics/audiometrics.c
+++ b/audiometrics/audiometrics.c
@@ -1071,12 +1071,12 @@ static long amcs_cdev_unlocked_ioctl(struct file *file, unsigned int cmd, unsign
case AMCS_OP_BT_ACTIVE_DURATION_INCREASE:
ret = 0;
- codec = params.val[1];
+ codec = params.val[0];
if (codec >= CODEC_MAX_COUNT) {
ret = -EINVAL;
} else {
mutex_lock(&priv->lock);
- priv->sz.bt_active_duration[codec] += params.val[2];
+ priv->sz.bt_active_duration[codec] += params.val[1];
mutex_unlock(&priv->lock);
}
break;