summaryrefslogtreecommitdiff
path: root/sound/soc/sof/ipc4-control.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2022-06-16 07:31:09 +0300
committerMark Brown <broonie@kernel.org>2022-06-16 11:31:17 +0300
commit7acf970a6fbb3c10bb5979d0dc3ed42b161daf15 (patch)
treed8f4e51e0c6b8b2379284905c30509dae05b3c67 /sound/soc/sof/ipc4-control.c
parent6735988b140b558044107f96e62c231d8a8c7b9b (diff)
downloadlinux-7acf970a6fbb3c10bb5979d0dc3ed42b161daf15.tar.xz
ASoC: SOF: ipc4-topology: Fix error code in sof_ipc4_volume_put()
The sof_ipc4_volume_put() function returns type bool so returning -ENOENT means returning true. Return false instead. Fixes: 955e84fc0b6d ("ASoC: SOF: ipc4-topology: Add control IO ops") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com> Link: https://lore.kernel.org/r/YqqyDU5BhOzpRjco@kili Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sof/ipc4-control.c')
-rw-r--r--sound/soc/sof/ipc4-control.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/sof/ipc4-control.c b/sound/soc/sof/ipc4-control.c
index 95ee121dd3cf..0d5a578c3496 100644
--- a/sound/soc/sof/ipc4-control.c
+++ b/sound/soc/sof/ipc4-control.c
@@ -142,7 +142,7 @@ static bool sof_ipc4_volume_put(struct snd_sof_control *scontrol,
if (!widget_found) {
dev_err(scomp->dev, "Failed to find widget for kcontrol %s\n", scontrol->name);
- return -ENOENT;
+ return false;
}
ret = sof_ipc4_set_volume_data(sdev, swidget, scontrol);