]> git.ipfire.org Git - thirdparty/linux.git/commit
ASoC: ops: Log unknown controls in snd_soc_limit_volume()
authorMark Brown <broonie@kernel.org>
Wed, 22 Apr 2026 20:34:05 +0000 (21:34 +0100)
committerMark Brown <broonie@kernel.org>
Sun, 26 Apr 2026 21:51:59 +0000 (06:51 +0900)
commit0fa63c7ea9e1571f9da9fd4afda22361966b3236
treecf185942c3fe42f761df069fd0e999eda23c8cd9
parent0241d6192a11c8f8634ab10a3a26fbdec92a9b08
ASoC: ops: Log unknown controls in snd_soc_limit_volume()

When we fail to look up the control name in snd_soc_limit_volume() we don't
log anything, the error code isn't particularly descriptive and checking
the return value of the function at all is a bit erratic among the callers.
Since there is no reason why anyone should ever be attempting to limit the
volume of a nonexistant control add a log message in the core to improve
usability.

Link: https://patch.msgid.link/20260422-asoc-limit-volume-error-v2-1-2e2ced321229@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-ops.c