diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-04-13 19:16:03 +0100 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-04-16 19:36:29 +0100 |
commit | 04570c628fbd5ede85d87a0b81bd19df7b13bbc4 (patch) | |
tree | b65f986f5c693ac92482eb3242b60607663fe3a1 /sound/soc/soc-core.c | |
parent | 60884c2767e0d9314a49e1ee7a0661b3464989c1 (diff) | |
download | linux-04570c628fbd5ede85d87a0b81bd19df7b13bbc4.tar.gz linux-04570c628fbd5ede85d87a0b81bd19df7b13bbc4.tar.bz2 linux-04570c628fbd5ede85d87a0b81bd19df7b13bbc4.zip |
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>
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r-- | sound/soc/soc-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |