diff options
author | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> | 2019-07-03 13:30:02 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-07-04 00:02:52 +0100 |
commit | 74b35a74f80e02bdd69db9cf96d3f4fe78b67064 (patch) | |
tree | a6155efbec3d63875fc200118359ab9839a6049f /sound/soc | |
parent | 751bd5db52604f3f71d54dbad82707ef2475b707 (diff) | |
download | linux-74b35a74f80e02bdd69db9cf96d3f4fe78b67064.tar.bz2 |
ASoC: core: Return -ENOTSUPP from set_channel_map() if no operation provided
It makes it easier for common code to work with snd_soc_dai_set_channel_map()
by distinguishing between operation not being supported and an error.
This is done inline with others snd_soc_dai.* apis.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20190703123002.12427-1-srinivas.kandagatla@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc')
-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 b9061cd8d787..c0a774d0a5ff 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -2614,7 +2614,7 @@ int snd_soc_dai_set_channel_map(struct snd_soc_dai *dai, return dai->driver->ops->set_channel_map(dai, tx_num, tx_slot, rx_num, rx_slot); else - return -EINVAL; + return -ENOTSUPP; } EXPORT_SYMBOL_GPL(snd_soc_dai_set_channel_map); |