diff mbox series

ASoC: core: Return -ENOTSUPP from set_channel_map() if no operation provided

Message ID 20190703123002.12427-1-srinivas.kandagatla@linaro.org
State Accepted
Commit 74b35a74f80e02bdd69db9cf96d3f4fe78b67064
Headers show
Series ASoC: core: Return -ENOTSUPP from set_channel_map() if no operation provided | expand

Commit Message

Srinivas Kandagatla July 3, 2019, 12:30 p.m. UTC
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>

---
 sound/soc/soc-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.21.0

_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
diff mbox series

Patch

diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index f08bef7328d7..62aae5a5c14b 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -2688,7 +2688,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);