omap-mcbsp.c 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517
  1. /*
  2. * omap-mcbsp.c -- OMAP ALSA SoC DAI driver using McBSP port
  3. *
  4. * Copyright (C) 2008 Nokia Corporation
  5. *
  6. * Contact: Jarkko Nikula <jarkko.nikula@nokia.com>
  7. *
  8. * This program is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU General Public License
  10. * version 2 as published by the Free Software Foundation.
  11. *
  12. * This program is distributed in the hope that it will be useful, but
  13. * WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. * General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  20. * 02110-1301 USA
  21. *
  22. */
  23. #include <linux/init.h>
  24. #include <linux/module.h>
  25. #include <linux/device.h>
  26. #include <sound/core.h>
  27. #include <sound/pcm.h>
  28. #include <sound/pcm_params.h>
  29. #include <sound/initval.h>
  30. #include <sound/soc.h>
  31. #include <mach/control.h>
  32. #include <mach/dma.h>
  33. #include <mach/mcbsp.h>
  34. #include "omap-mcbsp.h"
  35. #include "omap-pcm.h"
  36. #define OMAP_MCBSP_RATES (SNDRV_PCM_RATE_8000_96000)
  37. struct omap_mcbsp_data {
  38. unsigned int bus_id;
  39. struct omap_mcbsp_reg_cfg regs;
  40. unsigned int fmt;
  41. /*
  42. * Flags indicating is the bus already activated and configured by
  43. * another substream
  44. */
  45. int active;
  46. int configured;
  47. };
  48. #define to_mcbsp(priv) container_of((priv), struct omap_mcbsp_data, bus_id)
  49. static struct omap_mcbsp_data mcbsp_data[NUM_LINKS];
  50. /*
  51. * Stream DMA parameters. DMA request line and port address are set runtime
  52. * since they are different between OMAP1 and later OMAPs
  53. */
  54. static struct omap_pcm_dma_data omap_mcbsp_dai_dma_params[NUM_LINKS][2];
  55. #if defined(CONFIG_ARCH_OMAP15XX) || defined(CONFIG_ARCH_OMAP16XX)
  56. static const int omap1_dma_reqs[][2] = {
  57. { OMAP_DMA_MCBSP1_TX, OMAP_DMA_MCBSP1_RX },
  58. { OMAP_DMA_MCBSP2_TX, OMAP_DMA_MCBSP2_RX },
  59. { OMAP_DMA_MCBSP3_TX, OMAP_DMA_MCBSP3_RX },
  60. };
  61. static const unsigned long omap1_mcbsp_port[][2] = {
  62. { OMAP1510_MCBSP1_BASE + OMAP_MCBSP_REG_DXR1,
  63. OMAP1510_MCBSP1_BASE + OMAP_MCBSP_REG_DRR1 },
  64. { OMAP1510_MCBSP2_BASE + OMAP_MCBSP_REG_DXR1,
  65. OMAP1510_MCBSP2_BASE + OMAP_MCBSP_REG_DRR1 },
  66. { OMAP1510_MCBSP3_BASE + OMAP_MCBSP_REG_DXR1,
  67. OMAP1510_MCBSP3_BASE + OMAP_MCBSP_REG_DRR1 },
  68. };
  69. #else
  70. static const int omap1_dma_reqs[][2] = {};
  71. static const unsigned long omap1_mcbsp_port[][2] = {};
  72. #endif
  73. #if defined(CONFIG_ARCH_OMAP24XX) || defined(CONFIG_ARCH_OMAP34XX)
  74. static const int omap24xx_dma_reqs[][2] = {
  75. { OMAP24XX_DMA_MCBSP1_TX, OMAP24XX_DMA_MCBSP1_RX },
  76. { OMAP24XX_DMA_MCBSP2_TX, OMAP24XX_DMA_MCBSP2_RX },
  77. #if defined(CONFIG_ARCH_OMAP2430) || defined(CONFIG_ARCH_OMAP34XX)
  78. { OMAP24XX_DMA_MCBSP3_TX, OMAP24XX_DMA_MCBSP3_RX },
  79. { OMAP24XX_DMA_MCBSP4_TX, OMAP24XX_DMA_MCBSP4_RX },
  80. { OMAP24XX_DMA_MCBSP5_TX, OMAP24XX_DMA_MCBSP5_RX },
  81. #endif
  82. };
  83. #else
  84. static const int omap24xx_dma_reqs[][2] = {};
  85. #endif
  86. #if defined(CONFIG_ARCH_OMAP2420)
  87. static const unsigned long omap2420_mcbsp_port[][2] = {
  88. { OMAP24XX_MCBSP1_BASE + OMAP_MCBSP_REG_DXR1,
  89. OMAP24XX_MCBSP1_BASE + OMAP_MCBSP_REG_DRR1 },
  90. { OMAP24XX_MCBSP2_BASE + OMAP_MCBSP_REG_DXR1,
  91. OMAP24XX_MCBSP2_BASE + OMAP_MCBSP_REG_DRR1 },
  92. };
  93. #else
  94. static const unsigned long omap2420_mcbsp_port[][2] = {};
  95. #endif
  96. #if defined(CONFIG_ARCH_OMAP2430)
  97. static const unsigned long omap2430_mcbsp_port[][2] = {
  98. { OMAP24XX_MCBSP1_BASE + OMAP_MCBSP_REG_DXR,
  99. OMAP24XX_MCBSP1_BASE + OMAP_MCBSP_REG_DRR },
  100. { OMAP24XX_MCBSP2_BASE + OMAP_MCBSP_REG_DXR,
  101. OMAP24XX_MCBSP2_BASE + OMAP_MCBSP_REG_DRR },
  102. { OMAP2430_MCBSP3_BASE + OMAP_MCBSP_REG_DXR,
  103. OMAP2430_MCBSP3_BASE + OMAP_MCBSP_REG_DRR },
  104. { OMAP2430_MCBSP4_BASE + OMAP_MCBSP_REG_DXR,
  105. OMAP2430_MCBSP4_BASE + OMAP_MCBSP_REG_DRR },
  106. { OMAP2430_MCBSP5_BASE + OMAP_MCBSP_REG_DXR,
  107. OMAP2430_MCBSP5_BASE + OMAP_MCBSP_REG_DRR },
  108. };
  109. #else
  110. static const unsigned long omap2430_mcbsp_port[][2] = {};
  111. #endif
  112. #if defined(CONFIG_ARCH_OMAP34XX)
  113. static const unsigned long omap34xx_mcbsp_port[][2] = {
  114. { OMAP34XX_MCBSP1_BASE + OMAP_MCBSP_REG_DXR,
  115. OMAP34XX_MCBSP1_BASE + OMAP_MCBSP_REG_DRR },
  116. { OMAP34XX_MCBSP2_BASE + OMAP_MCBSP_REG_DXR,
  117. OMAP34XX_MCBSP2_BASE + OMAP_MCBSP_REG_DRR },
  118. { OMAP34XX_MCBSP3_BASE + OMAP_MCBSP_REG_DXR,
  119. OMAP34XX_MCBSP3_BASE + OMAP_MCBSP_REG_DRR },
  120. { OMAP34XX_MCBSP4_BASE + OMAP_MCBSP_REG_DXR,
  121. OMAP34XX_MCBSP4_BASE + OMAP_MCBSP_REG_DRR },
  122. { OMAP34XX_MCBSP5_BASE + OMAP_MCBSP_REG_DXR,
  123. OMAP34XX_MCBSP5_BASE + OMAP_MCBSP_REG_DRR },
  124. };
  125. #else
  126. static const unsigned long omap34xx_mcbsp_port[][2] = {};
  127. #endif
  128. static int omap_mcbsp_dai_startup(struct snd_pcm_substream *substream,
  129. struct snd_soc_dai *dai)
  130. {
  131. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  132. struct snd_soc_dai *cpu_dai = rtd->dai->cpu_dai;
  133. struct omap_mcbsp_data *mcbsp_data = to_mcbsp(cpu_dai->private_data);
  134. int err = 0;
  135. if (!cpu_dai->active)
  136. err = omap_mcbsp_request(mcbsp_data->bus_id);
  137. return err;
  138. }
  139. static void omap_mcbsp_dai_shutdown(struct snd_pcm_substream *substream,
  140. struct snd_soc_dai *dai)
  141. {
  142. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  143. struct snd_soc_dai *cpu_dai = rtd->dai->cpu_dai;
  144. struct omap_mcbsp_data *mcbsp_data = to_mcbsp(cpu_dai->private_data);
  145. if (!cpu_dai->active) {
  146. omap_mcbsp_free(mcbsp_data->bus_id);
  147. mcbsp_data->configured = 0;
  148. }
  149. }
  150. static int omap_mcbsp_dai_trigger(struct snd_pcm_substream *substream, int cmd,
  151. struct snd_soc_dai *dai)
  152. {
  153. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  154. struct snd_soc_dai *cpu_dai = rtd->dai->cpu_dai;
  155. struct omap_mcbsp_data *mcbsp_data = to_mcbsp(cpu_dai->private_data);
  156. int err = 0;
  157. switch (cmd) {
  158. case SNDRV_PCM_TRIGGER_START:
  159. case SNDRV_PCM_TRIGGER_RESUME:
  160. case SNDRV_PCM_TRIGGER_PAUSE_RELEASE:
  161. if (!mcbsp_data->active++)
  162. omap_mcbsp_start(mcbsp_data->bus_id);
  163. break;
  164. case SNDRV_PCM_TRIGGER_STOP:
  165. case SNDRV_PCM_TRIGGER_SUSPEND:
  166. case SNDRV_PCM_TRIGGER_PAUSE_PUSH:
  167. if (!--mcbsp_data->active)
  168. omap_mcbsp_stop(mcbsp_data->bus_id);
  169. break;
  170. default:
  171. err = -EINVAL;
  172. }
  173. return err;
  174. }
  175. static int omap_mcbsp_dai_hw_params(struct snd_pcm_substream *substream,
  176. struct snd_pcm_hw_params *params,
  177. struct snd_soc_dai *dai)
  178. {
  179. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  180. struct snd_soc_dai *cpu_dai = rtd->dai->cpu_dai;
  181. struct omap_mcbsp_data *mcbsp_data = to_mcbsp(cpu_dai->private_data);
  182. struct omap_mcbsp_reg_cfg *regs = &mcbsp_data->regs;
  183. int dma, bus_id = mcbsp_data->bus_id, id = cpu_dai->id;
  184. int wlen, channels;
  185. unsigned long port;
  186. if (cpu_class_is_omap1()) {
  187. dma = omap1_dma_reqs[bus_id][substream->stream];
  188. port = omap1_mcbsp_port[bus_id][substream->stream];
  189. } else if (cpu_is_omap2420()) {
  190. dma = omap24xx_dma_reqs[bus_id][substream->stream];
  191. port = omap2420_mcbsp_port[bus_id][substream->stream];
  192. } else if (cpu_is_omap2430()) {
  193. dma = omap24xx_dma_reqs[bus_id][substream->stream];
  194. port = omap2430_mcbsp_port[bus_id][substream->stream];
  195. } else if (cpu_is_omap343x()) {
  196. dma = omap24xx_dma_reqs[bus_id][substream->stream];
  197. port = omap34xx_mcbsp_port[bus_id][substream->stream];
  198. } else {
  199. return -ENODEV;
  200. }
  201. omap_mcbsp_dai_dma_params[id][substream->stream].name =
  202. substream->stream ? "Audio Capture" : "Audio Playback";
  203. omap_mcbsp_dai_dma_params[id][substream->stream].dma_req = dma;
  204. omap_mcbsp_dai_dma_params[id][substream->stream].port_addr = port;
  205. cpu_dai->dma_data = &omap_mcbsp_dai_dma_params[id][substream->stream];
  206. if (mcbsp_data->configured) {
  207. /* McBSP already configured by another stream */
  208. return 0;
  209. }
  210. channels = params_channels(params);
  211. switch (channels) {
  212. case 2:
  213. /* Use dual-phase frames */
  214. regs->rcr2 |= RPHASE;
  215. regs->xcr2 |= XPHASE;
  216. case 1:
  217. /* Set 1 word per (McBSP) frame */
  218. regs->rcr2 |= RFRLEN2(1 - 1);
  219. regs->rcr1 |= RFRLEN1(1 - 1);
  220. regs->xcr2 |= XFRLEN2(1 - 1);
  221. regs->xcr1 |= XFRLEN1(1 - 1);
  222. break;
  223. default:
  224. /* Unsupported number of channels */
  225. return -EINVAL;
  226. }
  227. switch (params_format(params)) {
  228. case SNDRV_PCM_FORMAT_S16_LE:
  229. /* Set word lengths */
  230. wlen = 16;
  231. regs->rcr2 |= RWDLEN2(OMAP_MCBSP_WORD_16);
  232. regs->rcr1 |= RWDLEN1(OMAP_MCBSP_WORD_16);
  233. regs->xcr2 |= XWDLEN2(OMAP_MCBSP_WORD_16);
  234. regs->xcr1 |= XWDLEN1(OMAP_MCBSP_WORD_16);
  235. break;
  236. default:
  237. /* Unsupported PCM format */
  238. return -EINVAL;
  239. }
  240. /* Set FS period and length in terms of bit clock periods */
  241. switch (mcbsp_data->fmt & SND_SOC_DAIFMT_FORMAT_MASK) {
  242. case SND_SOC_DAIFMT_I2S:
  243. regs->srgr2 |= FPER(wlen * 2 - 1);
  244. regs->srgr1 |= FWID(wlen - 1);
  245. break;
  246. case SND_SOC_DAIFMT_DSP_B:
  247. regs->srgr2 |= FPER(wlen * channels - 1);
  248. regs->srgr1 |= FWID(wlen * channels - 2);
  249. break;
  250. }
  251. omap_mcbsp_config(bus_id, &mcbsp_data->regs);
  252. mcbsp_data->configured = 1;
  253. return 0;
  254. }
  255. /*
  256. * This must be called before _set_clkdiv and _set_sysclk since McBSP register
  257. * cache is initialized here
  258. */
  259. static int omap_mcbsp_dai_set_dai_fmt(struct snd_soc_dai *cpu_dai,
  260. unsigned int fmt)
  261. {
  262. struct omap_mcbsp_data *mcbsp_data = to_mcbsp(cpu_dai->private_data);
  263. struct omap_mcbsp_reg_cfg *regs = &mcbsp_data->regs;
  264. if (mcbsp_data->configured)
  265. return 0;
  266. mcbsp_data->fmt = fmt;
  267. memset(regs, 0, sizeof(*regs));
  268. /* Generic McBSP register settings */
  269. regs->spcr2 |= XINTM(3) | FREE;
  270. regs->spcr1 |= RINTM(3);
  271. regs->rcr2 |= RFIG;
  272. regs->xcr2 |= XFIG;
  273. switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) {
  274. case SND_SOC_DAIFMT_I2S:
  275. /* 1-bit data delay */
  276. regs->rcr2 |= RDATDLY(1);
  277. regs->xcr2 |= XDATDLY(1);
  278. break;
  279. case SND_SOC_DAIFMT_DSP_B:
  280. /* 0-bit data delay */
  281. regs->rcr2 |= RDATDLY(0);
  282. regs->xcr2 |= XDATDLY(0);
  283. break;
  284. default:
  285. /* Unsupported data format */
  286. return -EINVAL;
  287. }
  288. switch (fmt & SND_SOC_DAIFMT_MASTER_MASK) {
  289. case SND_SOC_DAIFMT_CBS_CFS:
  290. /* McBSP master. Set FS and bit clocks as outputs */
  291. regs->pcr0 |= FSXM | FSRM |
  292. CLKXM | CLKRM;
  293. /* Sample rate generator drives the FS */
  294. regs->srgr2 |= FSGM;
  295. break;
  296. case SND_SOC_DAIFMT_CBM_CFM:
  297. /* McBSP slave */
  298. break;
  299. default:
  300. /* Unsupported master/slave configuration */
  301. return -EINVAL;
  302. }
  303. /* Set bit clock (CLKX/CLKR) and FS polarities */
  304. switch (fmt & SND_SOC_DAIFMT_INV_MASK) {
  305. case SND_SOC_DAIFMT_NB_NF:
  306. /*
  307. * Normal BCLK + FS.
  308. * FS active low. TX data driven on falling edge of bit clock
  309. * and RX data sampled on rising edge of bit clock.
  310. */
  311. regs->pcr0 |= FSXP | FSRP |
  312. CLKXP | CLKRP;
  313. break;
  314. case SND_SOC_DAIFMT_NB_IF:
  315. regs->pcr0 |= CLKXP | CLKRP;
  316. break;
  317. case SND_SOC_DAIFMT_IB_NF:
  318. regs->pcr0 |= FSXP | FSRP;
  319. break;
  320. case SND_SOC_DAIFMT_IB_IF:
  321. break;
  322. default:
  323. return -EINVAL;
  324. }
  325. return 0;
  326. }
  327. static int omap_mcbsp_dai_set_clkdiv(struct snd_soc_dai *cpu_dai,
  328. int div_id, int div)
  329. {
  330. struct omap_mcbsp_data *mcbsp_data = to_mcbsp(cpu_dai->private_data);
  331. struct omap_mcbsp_reg_cfg *regs = &mcbsp_data->regs;
  332. if (div_id != OMAP_MCBSP_CLKGDV)
  333. return -ENODEV;
  334. regs->srgr1 |= CLKGDV(div - 1);
  335. return 0;
  336. }
  337. static int omap_mcbsp_dai_set_clks_src(struct omap_mcbsp_data *mcbsp_data,
  338. int clk_id)
  339. {
  340. int sel_bit;
  341. u16 reg, reg_devconf1 = OMAP243X_CONTROL_DEVCONF1;
  342. if (cpu_class_is_omap1()) {
  343. /* OMAP1's can use only external source clock */
  344. if (unlikely(clk_id == OMAP_MCBSP_SYSCLK_CLKS_FCLK))
  345. return -EINVAL;
  346. else
  347. return 0;
  348. }
  349. if (cpu_is_omap2420() && mcbsp_data->bus_id > 1)
  350. return -EINVAL;
  351. if (cpu_is_omap343x())
  352. reg_devconf1 = OMAP343X_CONTROL_DEVCONF1;
  353. switch (mcbsp_data->bus_id) {
  354. case 0:
  355. reg = OMAP2_CONTROL_DEVCONF0;
  356. sel_bit = 2;
  357. break;
  358. case 1:
  359. reg = OMAP2_CONTROL_DEVCONF0;
  360. sel_bit = 6;
  361. break;
  362. case 2:
  363. reg = reg_devconf1;
  364. sel_bit = 0;
  365. break;
  366. case 3:
  367. reg = reg_devconf1;
  368. sel_bit = 2;
  369. break;
  370. case 4:
  371. reg = reg_devconf1;
  372. sel_bit = 4;
  373. break;
  374. default:
  375. return -EINVAL;
  376. }
  377. if (clk_id == OMAP_MCBSP_SYSCLK_CLKS_FCLK)
  378. omap_ctrl_writel(omap_ctrl_readl(reg) & ~(1 << sel_bit), reg);
  379. else
  380. omap_ctrl_writel(omap_ctrl_readl(reg) | (1 << sel_bit), reg);
  381. return 0;
  382. }
  383. static int omap_mcbsp_dai_set_dai_sysclk(struct snd_soc_dai *cpu_dai,
  384. int clk_id, unsigned int freq,
  385. int dir)
  386. {
  387. struct omap_mcbsp_data *mcbsp_data = to_mcbsp(cpu_dai->private_data);
  388. struct omap_mcbsp_reg_cfg *regs = &mcbsp_data->regs;
  389. int err = 0;
  390. switch (clk_id) {
  391. case OMAP_MCBSP_SYSCLK_CLK:
  392. regs->srgr2 |= CLKSM;
  393. break;
  394. case OMAP_MCBSP_SYSCLK_CLKS_FCLK:
  395. case OMAP_MCBSP_SYSCLK_CLKS_EXT:
  396. err = omap_mcbsp_dai_set_clks_src(mcbsp_data, clk_id);
  397. break;
  398. case OMAP_MCBSP_SYSCLK_CLKX_EXT:
  399. regs->srgr2 |= CLKSM;
  400. case OMAP_MCBSP_SYSCLK_CLKR_EXT:
  401. regs->pcr0 |= SCLKME;
  402. break;
  403. default:
  404. err = -ENODEV;
  405. }
  406. return err;
  407. }
  408. #define OMAP_MCBSP_DAI_BUILDER(link_id) \
  409. { \
  410. .name = "omap-mcbsp-dai-"#link_id, \
  411. .id = (link_id), \
  412. .playback = { \
  413. .channels_min = 1, \
  414. .channels_max = 2, \
  415. .rates = OMAP_MCBSP_RATES, \
  416. .formats = SNDRV_PCM_FMTBIT_S16_LE, \
  417. }, \
  418. .capture = { \
  419. .channels_min = 1, \
  420. .channels_max = 2, \
  421. .rates = OMAP_MCBSP_RATES, \
  422. .formats = SNDRV_PCM_FMTBIT_S16_LE, \
  423. }, \
  424. .ops = { \
  425. .startup = omap_mcbsp_dai_startup, \
  426. .shutdown = omap_mcbsp_dai_shutdown, \
  427. .trigger = omap_mcbsp_dai_trigger, \
  428. .hw_params = omap_mcbsp_dai_hw_params, \
  429. .set_fmt = omap_mcbsp_dai_set_dai_fmt, \
  430. .set_clkdiv = omap_mcbsp_dai_set_clkdiv, \
  431. .set_sysclk = omap_mcbsp_dai_set_dai_sysclk, \
  432. }, \
  433. .private_data = &mcbsp_data[(link_id)].bus_id, \
  434. }
  435. struct snd_soc_dai omap_mcbsp_dai[] = {
  436. OMAP_MCBSP_DAI_BUILDER(0),
  437. OMAP_MCBSP_DAI_BUILDER(1),
  438. #if NUM_LINKS >= 3
  439. OMAP_MCBSP_DAI_BUILDER(2),
  440. #endif
  441. #if NUM_LINKS == 5
  442. OMAP_MCBSP_DAI_BUILDER(3),
  443. OMAP_MCBSP_DAI_BUILDER(4),
  444. #endif
  445. };
  446. EXPORT_SYMBOL_GPL(omap_mcbsp_dai);
  447. static int __init snd_omap_mcbsp_init(void)
  448. {
  449. return snd_soc_register_dais(omap_mcbsp_dai,
  450. ARRAY_SIZE(omap_mcbsp_dai));
  451. }
  452. module_init(snd_omap_mcbsp_init);
  453. static void __exit snd_omap_mcbsp_exit(void)
  454. {
  455. snd_soc_unregister_dais(omap_mcbsp_dai, ARRAY_SIZE(omap_mcbsp_dai));
  456. }
  457. module_exit(snd_omap_mcbsp_exit);
  458. MODULE_AUTHOR("Jarkko Nikula <jarkko.nikula@nokia.com>");
  459. MODULE_DESCRIPTION("OMAP I2S SoC Interface");
  460. MODULE_LICENSE("GPL");