mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 08:14:15 +08:00
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: 955e84fc0b
("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>
This commit is contained in:
parent
6735988b14
commit
7acf970a6f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user