da7210.c 14 KB

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