da7210.c 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589
  1. /*
  2. * DA7210 ALSA Soc codec driver
  3. *
  4. * Copyright (c) 2009 Dialog Semiconductor
  5. * Written by David Chen <Dajun.chen@diasemi.com>
  6. *
  7. * Copyright (C) 2009 Renesas Solutions Corp.
  8. * Cleanups by Kuninori Morimoto <morimoto.kuninori@renesas.com>
  9. *
  10. * Tested on SuperH Ecovec24 board with S16/S24 LE in 48KHz using I2S
  11. *
  12. * This program is free software; you can redistribute it and/or modify it
  13. * under the terms of the GNU General Public License as published by the
  14. * Free Software Foundation; either version 2 of the License, or (at your
  15. * option) any later version.
  16. */
  17. #include <linux/module.h>
  18. #include <linux/moduleparam.h>
  19. #include <linux/kernel.h>
  20. #include <linux/init.h>
  21. #include <linux/delay.h>
  22. #include <linux/pm.h>
  23. #include <linux/i2c.h>
  24. #include <linux/platform_device.h>
  25. #include <sound/core.h>
  26. #include <sound/pcm.h>
  27. #include <sound/pcm_params.h>
  28. #include <sound/soc.h>
  29. #include <sound/soc-dapm.h>
  30. #include <sound/tlv.h>
  31. #include <sound/initval.h>
  32. #include <asm/div64.h>
  33. #include "da7210.h"
  34. /* DA7210 register space */
  35. #define DA7210_STATUS 0x02
  36. #define DA7210_STARTUP1 0x03
  37. #define DA7210_MIC_L 0x07
  38. #define DA7210_MIC_R 0x08
  39. #define DA7210_INMIX_L 0x0D
  40. #define DA7210_INMIX_R 0x0E
  41. #define DA7210_ADC_HPF 0x0F
  42. #define DA7210_ADC 0x10
  43. #define DA7210_DAC_HPF 0x14
  44. #define DA7210_DAC_L 0x15
  45. #define DA7210_DAC_R 0x16
  46. #define DA7210_DAC_SEL 0x17
  47. #define DA7210_OUTMIX_L 0x1C
  48. #define DA7210_OUTMIX_R 0x1D
  49. #define DA7210_HP_L_VOL 0x21
  50. #define DA7210_HP_R_VOL 0x22
  51. #define DA7210_HP_CFG 0x23
  52. #define DA7210_DAI_SRC_SEL 0x25
  53. #define DA7210_DAI_CFG1 0x26
  54. #define DA7210_DAI_CFG3 0x28
  55. #define DA7210_PLL_DIV3 0x2B
  56. #define DA7210_PLL 0x2C
  57. /* STARTUP1 bit fields */
  58. #define DA7210_SC_MST_EN (1 << 0)
  59. /* MIC_L bit fields */
  60. #define DA7210_MICBIAS_EN (1 << 6)
  61. #define DA7210_MIC_L_EN (1 << 7)
  62. /* MIC_R bit fields */
  63. #define DA7210_MIC_R_EN (1 << 7)
  64. /* INMIX_L bit fields */
  65. #define DA7210_IN_L_EN (1 << 7)
  66. /* INMIX_R bit fields */
  67. #define DA7210_IN_R_EN (1 << 7)
  68. /* ADC_HPF bit fields */
  69. #define DA7210_ADC_VOICE_EN (1 << 7)
  70. /* ADC bit fields */
  71. #define DA7210_ADC_L_EN (1 << 3)
  72. #define DA7210_ADC_R_EN (1 << 7)
  73. /* DAC_HPF fields */
  74. #define DA7210_DAC_VOICE_EN (1 << 7)
  75. /* DAC_SEL bit fields */
  76. #define DA7210_DAC_L_SRC_DAI_L (4 << 0)
  77. #define DA7210_DAC_L_EN (1 << 3)
  78. #define DA7210_DAC_R_SRC_DAI_R (5 << 4)
  79. #define DA7210_DAC_R_EN (1 << 7)
  80. /* OUTMIX_L bit fields */
  81. #define DA7210_OUT_L_EN (1 << 7)
  82. /* OUTMIX_R bit fields */
  83. #define DA7210_OUT_R_EN (1 << 7)
  84. /* HP_CFG bit fields */
  85. #define DA7210_HP_2CAP_MODE (1 << 1)
  86. #define DA7210_HP_SENSE_EN (1 << 2)
  87. #define DA7210_HP_L_EN (1 << 3)
  88. #define DA7210_HP_MODE (1 << 6)
  89. #define DA7210_HP_R_EN (1 << 7)
  90. /* DAI_SRC_SEL bit fields */
  91. #define DA7210_DAI_OUT_L_SRC (6 << 0)
  92. #define DA7210_DAI_OUT_R_SRC (7 << 4)
  93. /* DAI_CFG1 bit fields */
  94. #define DA7210_DAI_WORD_S16_LE (0 << 0)
  95. #define DA7210_DAI_WORD_S24_LE (2 << 0)
  96. #define DA7210_DAI_FLEN_64BIT (1 << 2)
  97. #define DA7210_DAI_MODE_MASTER (1 << 7)
  98. /* DAI_CFG3 bit fields */
  99. #define DA7210_DAI_FORMAT_I2SMODE (0 << 0)
  100. #define DA7210_DAI_OE (1 << 3)
  101. #define DA7210_DAI_EN (1 << 7)
  102. /*PLL_DIV3 bit fields */
  103. #define DA7210_MCLK_RANGE_10_20_MHZ (1 << 4)
  104. #define DA7210_PLL_BYP (1 << 6)
  105. /* PLL bit fields */
  106. #define DA7210_PLL_FS_48000 (11 << 0)
  107. #define DA7210_VERSION "0.0.1"
  108. /* Codec private data */
  109. struct da7210_priv {
  110. struct snd_soc_codec codec;
  111. };
  112. static struct snd_soc_codec *da7210_codec;
  113. /*
  114. * Register cache
  115. */
  116. static const u8 da7210_reg[] = {
  117. 0x00, 0x11, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* R0 - R7 */
  118. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, /* R8 - RF */
  119. 0x00, 0x00, 0x00, 0x00, 0x08, 0x10, 0x10, 0x54, /* R10 - R17 */
  120. 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* R18 - R1F */
  121. 0x00, 0x00, 0x00, 0x02, 0x00, 0x76, 0x00, 0x00, /* R20 - R27 */
  122. 0x04, 0x00, 0x00, 0x30, 0x2A, 0x00, 0x40, 0x00, /* R28 - R2F */
  123. 0x40, 0x00, 0x40, 0x00, 0x40, 0x00, 0x40, 0x00, /* R30 - R37 */
  124. 0x40, 0x00, 0x40, 0x00, 0x40, 0x00, 0x00, 0x00, /* R38 - R3F */
  125. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* R40 - R4F */
  126. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* R48 - R4F */
  127. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* R50 - R57 */
  128. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* R58 - R5F */
  129. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* R60 - R67 */
  130. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* R68 - R6F */
  131. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* R70 - R77 */
  132. 0x00, 0x00, 0x00, 0x00, 0x00, 0x54, 0x54, 0x00, /* R78 - R7F */
  133. 0x00, 0x00, 0x2C, 0x00, 0x00, 0x00, 0x00, 0x00, /* R80 - R87 */
  134. 0x00, /* R88 */
  135. };
  136. /*
  137. * Read da7210 register cache
  138. */
  139. static inline u32 da7210_read_reg_cache(struct snd_soc_codec *codec, u32 reg)
  140. {
  141. u8 *cache = codec->reg_cache;
  142. BUG_ON(reg > ARRAY_SIZE(da7210_reg));
  143. return cache[reg];
  144. }
  145. /*
  146. * Write to the da7210 register space
  147. */
  148. static int da7210_write(struct snd_soc_codec *codec, u32 reg, u32 value)
  149. {
  150. u8 *cache = codec->reg_cache;
  151. u8 data[2];
  152. BUG_ON(codec->volatile_register);
  153. data[0] = reg & 0xff;
  154. data[1] = value & 0xff;
  155. if (reg >= codec->reg_cache_size)
  156. return -EIO;
  157. if (2 != codec->hw_write(codec->control_data, data, 2))
  158. return -EIO;
  159. cache[reg] = value;
  160. return 0;
  161. }
  162. /*
  163. * Read from the da7210 register space.
  164. */
  165. static inline u32 da7210_read(struct snd_soc_codec *codec, u32 reg)
  166. {
  167. if (DA7210_STATUS == reg)
  168. return i2c_smbus_read_byte_data(codec->control_data, reg);
  169. return da7210_read_reg_cache(codec, reg);
  170. }
  171. static int da7210_startup(struct snd_pcm_substream *substream,
  172. struct snd_soc_dai *dai)
  173. {
  174. int is_play = substream->stream == SNDRV_PCM_STREAM_PLAYBACK;
  175. struct snd_soc_codec *codec = dai->codec;
  176. if (is_play) {
  177. /* PlayBack Volume 40 */
  178. snd_soc_update_bits(codec, DA7210_HP_L_VOL, 0x3F, 40);
  179. snd_soc_update_bits(codec, DA7210_HP_R_VOL, 0x3F, 40);
  180. /* Enable Out */
  181. snd_soc_update_bits(codec, DA7210_OUTMIX_L, 0x1F, 0x10);
  182. snd_soc_update_bits(codec, DA7210_OUTMIX_R, 0x1F, 0x10);
  183. } else {
  184. /* Volume 7 */
  185. snd_soc_update_bits(codec, DA7210_MIC_L, 0x7, 0x7);
  186. snd_soc_update_bits(codec, DA7210_MIC_R, 0x7, 0x7);
  187. /* Enable Mic */
  188. snd_soc_update_bits(codec, DA7210_INMIX_L, 0x1F, 0x1);
  189. snd_soc_update_bits(codec, DA7210_INMIX_R, 0x1F, 0x1);
  190. }
  191. return 0;
  192. }
  193. /*
  194. * Set PCM DAI word length.
  195. */
  196. static int da7210_hw_params(struct snd_pcm_substream *substream,
  197. struct snd_pcm_hw_params *params,
  198. struct snd_soc_dai *dai)
  199. {
  200. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  201. struct snd_soc_device *socdev = rtd->socdev;
  202. struct snd_soc_codec *codec = socdev->card->codec;
  203. u32 dai_cfg1;
  204. u32 reg, mask;
  205. /* set DAI source to Left and Right ADC */
  206. da7210_write(codec, DA7210_DAI_SRC_SEL,
  207. DA7210_DAI_OUT_R_SRC | DA7210_DAI_OUT_L_SRC);
  208. /* Enable DAI */
  209. da7210_write(codec, DA7210_DAI_CFG3, DA7210_DAI_OE | DA7210_DAI_EN);
  210. dai_cfg1 = 0xFC & da7210_read(codec, DA7210_DAI_CFG1);
  211. switch (params_format(params)) {
  212. case SNDRV_PCM_FORMAT_S16_LE:
  213. dai_cfg1 |= DA7210_DAI_WORD_S16_LE;
  214. break;
  215. case SNDRV_PCM_FORMAT_S24_LE:
  216. dai_cfg1 |= DA7210_DAI_WORD_S24_LE;
  217. break;
  218. default:
  219. return -EINVAL;
  220. }
  221. da7210_write(codec, DA7210_DAI_CFG1, dai_cfg1);
  222. /* FIXME
  223. *
  224. * It support 48K only now
  225. */
  226. switch (params_rate(params)) {
  227. case 48000:
  228. if (SNDRV_PCM_STREAM_PLAYBACK == substream->stream) {
  229. reg = DA7210_DAC_HPF;
  230. mask = DA7210_DAC_VOICE_EN;
  231. } else {
  232. reg = DA7210_ADC_HPF;
  233. mask = DA7210_ADC_VOICE_EN;
  234. }
  235. break;
  236. default:
  237. return -EINVAL;
  238. }
  239. snd_soc_update_bits(codec, reg, mask, 0);
  240. return 0;
  241. }
  242. /*
  243. * Set DAI mode and Format
  244. */
  245. static int da7210_set_dai_fmt(struct snd_soc_dai *codec_dai, u32 fmt)
  246. {
  247. struct snd_soc_codec *codec = codec_dai->codec;
  248. u32 dai_cfg1;
  249. u32 dai_cfg3;
  250. dai_cfg1 = 0x7f & da7210_read(codec, DA7210_DAI_CFG1);
  251. dai_cfg3 = 0xfc & da7210_read(codec, DA7210_DAI_CFG3);
  252. switch (fmt & SND_SOC_DAIFMT_MASTER_MASK) {
  253. case SND_SOC_DAIFMT_CBM_CFM:
  254. dai_cfg1 |= DA7210_DAI_MODE_MASTER;
  255. break;
  256. default:
  257. return -EINVAL;
  258. }
  259. /* FIXME
  260. *
  261. * It support I2S only now
  262. */
  263. switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) {
  264. case SND_SOC_DAIFMT_I2S:
  265. dai_cfg3 |= DA7210_DAI_FORMAT_I2SMODE;
  266. break;
  267. default:
  268. return -EINVAL;
  269. }
  270. /* FIXME
  271. *
  272. * It support 64bit data transmission only now
  273. */
  274. dai_cfg1 |= DA7210_DAI_FLEN_64BIT;
  275. da7210_write(codec, DA7210_DAI_CFG1, dai_cfg1);
  276. da7210_write(codec, DA7210_DAI_CFG3, dai_cfg3);
  277. return 0;
  278. }
  279. #define DA7210_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE)
  280. /* DAI operations */
  281. static struct snd_soc_dai_ops da7210_dai_ops = {
  282. .startup = da7210_startup,
  283. .hw_params = da7210_hw_params,
  284. .set_fmt = da7210_set_dai_fmt,
  285. };
  286. struct snd_soc_dai da7210_dai = {
  287. .name = "DA7210 IIS",
  288. .id = 0,
  289. /* playback capabilities */
  290. .playback = {
  291. .stream_name = "Playback",
  292. .channels_min = 1,
  293. .channels_max = 2,
  294. .rates = SNDRV_PCM_RATE_8000_96000,
  295. .formats = DA7210_FORMATS,
  296. },
  297. /* capture capabilities */
  298. .capture = {
  299. .stream_name = "Capture",
  300. .channels_min = 1,
  301. .channels_max = 2,
  302. .rates = SNDRV_PCM_RATE_8000_96000,
  303. .formats = DA7210_FORMATS,
  304. },
  305. .ops = &da7210_dai_ops,
  306. };
  307. EXPORT_SYMBOL_GPL(da7210_dai);
  308. /*
  309. * Initialize the DA7210 driver
  310. * register the mixer and dsp interfaces with the kernel
  311. */
  312. static int da7210_init(struct da7210_priv *da7210)
  313. {
  314. struct snd_soc_codec *codec = &da7210->codec;
  315. int ret = 0;
  316. if (da7210_codec) {
  317. dev_err(codec->dev, "Another da7210 is registered\n");
  318. return -EINVAL;
  319. }
  320. mutex_init(&codec->mutex);
  321. INIT_LIST_HEAD(&codec->dapm_widgets);
  322. INIT_LIST_HEAD(&codec->dapm_paths);
  323. codec->private_data = da7210;
  324. codec->name = "DA7210";
  325. codec->owner = THIS_MODULE;
  326. codec->read = da7210_read;
  327. codec->write = da7210_write;
  328. codec->dai = &da7210_dai;
  329. codec->num_dai = 1;
  330. codec->hw_write = (hw_write_t)i2c_master_send;
  331. codec->reg_cache_size = ARRAY_SIZE(da7210_reg);
  332. codec->reg_cache = kmemdup(da7210_reg,
  333. sizeof(da7210_reg), GFP_KERNEL);
  334. if (!codec->reg_cache)
  335. return -ENOMEM;
  336. da7210_dai.dev = codec->dev;
  337. da7210_codec = codec;
  338. ret = snd_soc_register_codec(codec);
  339. if (ret) {
  340. dev_err(codec->dev, "Failed to register CODEC: %d\n", ret);
  341. goto init_err;
  342. }
  343. ret = snd_soc_register_dai(&da7210_dai);
  344. if (ret) {
  345. dev_err(codec->dev, "Failed to register DAI: %d\n", ret);
  346. goto init_err;
  347. }
  348. /* FIXME
  349. *
  350. * This driver use fixed value here
  351. */
  352. /*
  353. * ADC settings
  354. */
  355. /* Enable Left & Right MIC PGA and Mic Bias */
  356. da7210_write(codec, DA7210_MIC_L, DA7210_MIC_L_EN | DA7210_MICBIAS_EN);
  357. da7210_write(codec, DA7210_MIC_R, DA7210_MIC_R_EN);
  358. /* Enable Left and Right input PGA */
  359. da7210_write(codec, DA7210_INMIX_L, DA7210_IN_L_EN);
  360. da7210_write(codec, DA7210_INMIX_R, DA7210_IN_R_EN);
  361. /* Enable Left and Right ADC */
  362. da7210_write(codec, DA7210_ADC, DA7210_ADC_L_EN | DA7210_ADC_R_EN);
  363. /*
  364. * DAC settings
  365. */
  366. /* Enable Left and Right DAC */
  367. da7210_write(codec, DA7210_DAC_SEL,
  368. DA7210_DAC_L_SRC_DAI_L | DA7210_DAC_L_EN |
  369. DA7210_DAC_R_SRC_DAI_R | DA7210_DAC_R_EN);
  370. /* Enable Left and Right out PGA */
  371. da7210_write(codec, DA7210_OUTMIX_L, DA7210_OUT_L_EN);
  372. da7210_write(codec, DA7210_OUTMIX_R, DA7210_OUT_R_EN);
  373. /* Enable Left and Right HeadPhone PGA */
  374. da7210_write(codec, DA7210_HP_CFG,
  375. DA7210_HP_2CAP_MODE | DA7210_HP_SENSE_EN |
  376. DA7210_HP_L_EN | DA7210_HP_MODE | DA7210_HP_R_EN);
  377. /* Diable PLL and bypass it */
  378. da7210_write(codec, DA7210_PLL, DA7210_PLL_FS_48000);
  379. /* Bypass PLL and set MCLK freq rang to 10-20MHz */
  380. da7210_write(codec, DA7210_PLL_DIV3,
  381. DA7210_MCLK_RANGE_10_20_MHZ | DA7210_PLL_BYP);
  382. /* Activate all enabled subsystem */
  383. da7210_write(codec, DA7210_STARTUP1, DA7210_SC_MST_EN);
  384. return ret;
  385. init_err:
  386. kfree(codec->reg_cache);
  387. codec->reg_cache = NULL;
  388. return ret;
  389. }
  390. #if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE)
  391. static int __devinit da7210_i2c_probe(struct i2c_client *i2c,
  392. const struct i2c_device_id *id)
  393. {
  394. struct da7210_priv *da7210;
  395. struct snd_soc_codec *codec;
  396. int ret;
  397. da7210 = kzalloc(sizeof(struct da7210_priv), GFP_KERNEL);
  398. if (!da7210)
  399. return -ENOMEM;
  400. codec = &da7210->codec;
  401. codec->dev = &i2c->dev;
  402. i2c_set_clientdata(i2c, da7210);
  403. codec->control_data = i2c;
  404. ret = da7210_init(da7210);
  405. if (ret < 0)
  406. pr_err("Failed to initialise da7210 audio codec\n");
  407. return ret;
  408. }
  409. static int __devexit da7210_i2c_remove(struct i2c_client *client)
  410. {
  411. struct da7210_priv *da7210 = i2c_get_clientdata(client);
  412. snd_soc_unregister_dai(&da7210_dai);
  413. kfree(da7210->codec.reg_cache);
  414. kfree(da7210);
  415. da7210_codec = NULL;
  416. return 0;
  417. }
  418. static const struct i2c_device_id da7210_i2c_id[] = {
  419. { "da7210", 0 },
  420. { }
  421. };
  422. MODULE_DEVICE_TABLE(i2c, da7210_i2c_id);
  423. /* I2C codec control layer */
  424. static struct i2c_driver da7210_i2c_driver = {
  425. .driver = {
  426. .name = "DA7210 I2C Codec",
  427. .owner = THIS_MODULE,
  428. },
  429. .probe = da7210_i2c_probe,
  430. .remove = __devexit_p(da7210_i2c_remove),
  431. .id_table = da7210_i2c_id,
  432. };
  433. #endif
  434. static int da7210_probe(struct platform_device *pdev)
  435. {
  436. struct snd_soc_device *socdev = platform_get_drvdata(pdev);
  437. struct snd_soc_codec *codec;
  438. int ret;
  439. if (!da7210_codec) {
  440. dev_err(&pdev->dev, "Codec device not registered\n");
  441. return -ENODEV;
  442. }
  443. socdev->card->codec = da7210_codec;
  444. codec = da7210_codec;
  445. /* Register pcms */
  446. ret = snd_soc_new_pcms(socdev, SNDRV_DEFAULT_IDX1, SNDRV_DEFAULT_STR1);
  447. if (ret < 0)
  448. goto pcm_err;
  449. dev_info(&pdev->dev, "DA7210 Audio Codec %s\n", DA7210_VERSION);
  450. pcm_err:
  451. return ret;
  452. }
  453. static int da7210_remove(struct platform_device *pdev)
  454. {
  455. struct snd_soc_device *socdev = platform_get_drvdata(pdev);
  456. snd_soc_free_pcms(socdev);
  457. snd_soc_dapm_free(socdev);
  458. return 0;
  459. }
  460. struct snd_soc_codec_device soc_codec_dev_da7210 = {
  461. .probe = da7210_probe,
  462. .remove = da7210_remove,
  463. };
  464. EXPORT_SYMBOL_GPL(soc_codec_dev_da7210);
  465. static int __init da7210_modinit(void)
  466. {
  467. int ret = 0;
  468. #if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE)
  469. ret = i2c_add_driver(&da7210_i2c_driver);
  470. #endif
  471. return ret;
  472. }
  473. module_init(da7210_modinit);
  474. static void __exit da7210_exit(void)
  475. {
  476. #if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE)
  477. i2c_del_driver(&da7210_i2c_driver);
  478. #endif
  479. }
  480. module_exit(da7210_exit);
  481. MODULE_DESCRIPTION("ASoC DA7210 driver");
  482. MODULE_AUTHOR("David Chen, Kuninori Morimoto");
  483. MODULE_LICENSE("GPL");