diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2022-06-16 07:31:09 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-06-16 11:31:17 +0300 |
commit | 7acf970a6fbb3c10bb5979d0dc3ed42b161daf15 (patch) | |
tree | d8f4e51e0c6b8b2379284905c30509dae05b3c67 | |
parent | 6735988b140b558044107f96e62c231d8a8c7b9b (diff) | |
download | linux-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>
-rw-r--r-- | sound/soc/sof/ipc4-control.c | 2 |
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); |