Skip to content

Commit 3a29be9

Browse files
authored
Merge pull request #126 from RanderWang/volume
Volume: refine condition in volume_ctrl_get_cmd
2 parents e902549 + 070e6bf commit 3a29be9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/audio/volume.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ static int volume_ctrl_get_cmd(struct comp_dev *dev,
350350
int j;
351351

352352
/* validate */
353-
if (cdata->num_elems == 0 || cdata->num_elems >= SOF_IPC_MAX_CHANNELS) {
353+
if (cdata->num_elems == 0 || cdata->num_elems > SOF_IPC_MAX_CHANNELS) {
354354
trace_volume_error("gc0");
355355
tracev_value(cdata->num_elems);
356356
return -EINVAL;

0 commit comments

Comments
 (0)