diff options
author | Xiubo Li <Li.Xiubo@freescale.com> | 2014-01-23 00:02:47 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-01-23 14:29:26 -0500 |
commit | b2cbb6e1c1544fc889ee7d6c6a6c229c20cd03cd (patch) | |
tree | 10abf69a8c364b44387b95012a64ba2e8d6edc2e | |
parent | 7552f34a790069a008bd3e2ab4c0954b30c2f63b (diff) |
ASoC: core: set_tdm_slot() will return -ENOTSUPP if no operation provided
Make it easier for generic code to work with set_tdm_slot() by distinguishing
between the operation not being supported and an error as is done.
Signed-off-by: Xiubo Li <Li.Xiubo@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
-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 fe1df50805a3..393ff069af69 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c | |||
@@ -3626,7 +3626,7 @@ int snd_soc_dai_set_tdm_slot(struct snd_soc_dai *dai, | |||
3626 | return dai->driver->ops->set_tdm_slot(dai, tx_mask, rx_mask, | 3626 | return dai->driver->ops->set_tdm_slot(dai, tx_mask, rx_mask, |
3627 | slots, slot_width); | 3627 | slots, slot_width); |
3628 | else | 3628 | else |
3629 | return -EINVAL; | 3629 | return -ENOTSUPP; |
3630 | } | 3630 | } |
3631 | EXPORT_SYMBOL_GPL(snd_soc_dai_set_tdm_slot); | 3631 | EXPORT_SYMBOL_GPL(snd_soc_dai_set_tdm_slot); |
3632 | 3632 | ||