mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-12 00:00:00 +00:00
ASoC: core: Return -ENOTSUPP instead of -EINVAL if mute is not supported
This helps us ignore errors in callers if the operation failed due to not being available as opposed to an error. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@ti.com>
This commit is contained in:
parent
60884c2767
commit
04570c628f
@ -3031,7 +3031,7 @@ int snd_soc_dai_digital_mute(struct snd_soc_dai *dai, int mute)
|
|||||||
if (dai->driver && dai->driver->ops->digital_mute)
|
if (dai->driver && dai->driver->ops->digital_mute)
|
||||||
return dai->driver->ops->digital_mute(dai, mute);
|
return dai->driver->ops->digital_mute(dai, mute);
|
||||||
else
|
else
|
||||||
return -EINVAL;
|
return -ENOTSUPP;
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(snd_soc_dai_digital_mute);
|
EXPORT_SYMBOL_GPL(snd_soc_dai_digital_mute);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user