aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sound/soc/davinci/davinci-i2s.h
diff options
context:
space:
mode:
authorRaffaele Recalcati <raffaele.recalcati@bticino.it>2010-07-06 10:39:02 +0200
committerMark Brown <broonie@opensource.wolfsonmicro.com>2010-07-06 23:54:06 +0900
commita4c8ea2ddaed2f461606c2828b19786524b551ac (patch)
tree0b6b890a47554a276bbb836883f7cf1e2ab8799e /sound/soc/davinci/davinci-i2s.h
parentASoC: Invert speaker enabling behaviour in SmartQ sound driver (diff)
downloadwireguard-linux-a4c8ea2ddaed2f461606c2828b19786524b551ac.tar.xz
wireguard-linux-a4c8ea2ddaed2f461606c2828b19786524b551ac.zip
ASoC: DaVinci: Added two clocking possibilities to McBSP (I2S)
Added two clocking options for dm365 McBSP peripheral when used with I2S timings, that are SND_SOC_DAIFMT_CBS_CFS (the cpu generates clock and frame sync) and SND_SOC_DAIFMT_CBS_CFM (the cpu gets clock from external pin and generates frame sync). A slave clock management can be important when the external codec needs the system clock and the bit clock synchronized (tested with uda1345). This patch has been developed against the: http://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-davinci.git git tree and has been tested on bmx board (similar to dm365 evm, but using uda1345 as external audio codec). Signed-off-by: Raffaele Recalcati <raffaele.recalcati@bticino.it> Signed-off-by: Davide Bonfanti <davide.bonfanti@bticino.it> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Acked-by: Sudhakar Rajashekhara <sudhakar.raj@ti.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/davinci/davinci-i2s.h')
-rw-r--r--sound/soc/davinci/davinci-i2s.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/davinci/davinci-i2s.h b/sound/soc/davinci/davinci-i2s.h
index 241648ce8873..0b1e77b8c279 100644
--- a/sound/soc/davinci/davinci-i2s.h
+++ b/sound/soc/davinci/davinci-i2s.h
@@ -12,6 +12,11 @@
#ifndef _DAVINCI_I2S_H
#define _DAVINCI_I2S_H
+/* McBSP dividers */
+enum davinci_mcbsp_div {
+ DAVINCI_MCBSP_CLKGDV, /* Sample rate generator divider */
+};
+
extern struct snd_soc_dai davinci_i2s_dai;
#endif