ASoC: SOF: ipc4-topology: Fix error code in sof_ipc4_volume_put()
Subsystems (4)
PATCH 1/1 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.
--- sound/soc/sof/ipc4-control.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/sof/ipc4-control.c +1 -1
@@ -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);
Signature · 1 line
2.35.1
Quoted 2 lines · Dan Carpenter
The
sof_ipc4_volume_put()function returns type bool so returning-ENOENTmeans returning true. Return false instead.
Good catch,
Quoted 19 lines
Fixes 955e84fc0b6d ("ASoC: SOF: ipc4-topology: Add control IO ops")Signed-off-by Dan Carpenter <[email protected]>--- sound/soc/sof/ipc4-control.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)sound/soc/sof/ipc4-control.c +1
-1@@ -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);
Signature · 1 line
Péter
Mark Brown
maintainerQuoted 4 lines · Dan Carpenter
The
sof_ipc4_volume_put()function returns type bool so returning-ENOENTmeans returning true. Return false instead.
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: SOF: ipc4-topology: Fix error code in sof_ipc4_volume_put()
commit: 7acf970a6fbb3c10bb5979d0dc3ed42b161daf15
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark