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>
This commit is contained in:

committed by
Mark Brown

parent
088fbab406
commit
a4c8ea2dda
@@ -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
|
||||
|
Reference in New Issue
Block a user