ASoC: core: set_tdm_slot() will return -ENOTSUPP if no operation provided
authorXiubo Li <Li.Xiubo@freescale.com>
Thu, 23 Jan 2014 05:02:47 +0000 (13:02 +0800)
committerMark Brown <broonie@linaro.org>
Thu, 23 Jan 2014 19:29:26 +0000 (19:29 +0000)
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>
sound/soc/soc-core.c

index fe1df50805a3035ea455d40771c55d4cb4f6585d..393ff069af69885c7faf5c23369a4b74ca39c792 100644 (file)
@@ -3626,7 +3626,7 @@ int snd_soc_dai_set_tdm_slot(struct snd_soc_dai *dai,
                return dai->driver->ops->set_tdm_slot(dai, tx_mask, rx_mask,
                                slots, slot_width);
        else
-               return -EINVAL;
+               return -ENOTSUPP;
 }
 EXPORT_SYMBOL_GPL(snd_soc_dai_set_tdm_slot);