projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7552f34
)
ASoC: core: set_tdm_slot() will return -ENOTSUPP if no operation provided
author
Xiubo Li
<Li.Xiubo@freescale.com>
Thu, 23 Jan 2014 05:02:47 +0000
(13:02 +0800)
committer
Mark 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
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/soc-core.c
b/sound/soc/soc-core.c
index fe1df50805a3035ea455d40771c55d4cb4f6585d..393ff069af69885c7faf5c23369a4b74ca39c792 100644
(file)
--- 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,
return dai->driver->ops->set_tdm_slot(dai, tx_mask, rx_mask,
slots, slot_width);
else
- return -E
INVAL
;
+ return -E
NOTSUPP
;
}
EXPORT_SYMBOL_GPL(snd_soc_dai_set_tdm_slot);