From 04570c628fbd5ede85d87a0b81bd19df7b13bbc4 Mon Sep 17 00:00:00 2001 From: Mark Brown Date: Fri, 13 Apr 2012 19:16:03 +0100 Subject: [PATCH] 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 Acked-by: Liam Girdwood --- sound/soc/soc-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 8a17048dba42..98a4f7aa4f01 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -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) return dai->driver->ops->digital_mute(dai, mute); else - return -EINVAL; + return -ENOTSUPP; } EXPORT_SYMBOL_GPL(snd_soc_dai_digital_mute); -- 2.34.1