| OLD | NEW |
| 1 /* | 1 /* |
| 2 * DA7210 ALSA Soc codec driver | 2 * DA7210 ALSA Soc codec driver |
| 3 * | 3 * |
| 4 * Copyright (c) 2009 Dialog Semiconductor | 4 * Copyright (c) 2009 Dialog Semiconductor |
| 5 * Written by David Chen <Dajun.chen@diasemi.com> | 5 * Written by David Chen <Dajun.chen@diasemi.com> |
| 6 * | 6 * |
| 7 * Copyright (C) 2009 Renesas Solutions Corp. | 7 * Copyright (C) 2009 Renesas Solutions Corp. |
| 8 * Cleanups by Kuninori Morimoto <morimoto.kuninori@renesas.com> | 8 * Cleanups by Kuninori Morimoto <morimoto.kuninori@renesas.com> |
| 9 * | 9 * |
| 10 * Tested on SuperH Ecovec24 board with S16/S24 LE in 48KHz using I2S | 10 * Tested on SuperH Ecovec24 board with S16/S24 LE in 48KHz using I2S |
| 11 * | 11 * |
| 12 * This program is free software; you can redistribute it and/or modify it | 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 | 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 | 14 * Free Software Foundation; either version 2 of the License, or (at your |
| 15 * option) any later version. | 15 * option) any later version. |
| 16 */ | 16 */ |
| 17 | 17 |
| 18 #include <linux/delay.h> | 18 #include <linux/delay.h> |
| 19 #include <linux/i2c.h> | 19 #include <linux/i2c.h> |
| 20 #include <linux/platform_device.h> | 20 #include <linux/platform_device.h> |
| 21 #include <linux/slab.h> | 21 #include <linux/slab.h> |
| 22 #include <sound/pcm.h> | 22 #include <sound/pcm.h> |
| 23 #include <sound/pcm_params.h> | 23 #include <sound/pcm_params.h> |
| 24 #include <sound/soc-dapm.h> | 24 #include <sound/soc.h> |
| 25 #include <sound/initval.h> | 25 #include <sound/initval.h> |
| 26 #include <sound/tlv.h> | 26 #include <sound/tlv.h> |
| 27 | 27 |
| 28 /* DA7210 register space */ | 28 /* DA7210 register space */ |
| 29 #define DA7210_STATUS 0x02 | 29 #define DA7210_STATUS 0x02 |
| 30 #define DA7210_STARTUP1 0x03 | 30 #define DA7210_STARTUP1 0x03 |
| 31 #define DA7210_MIC_L 0x07 | 31 #define DA7210_MIC_L 0x07 |
| 32 #define DA7210_MIC_R 0x08 | 32 #define DA7210_MIC_R 0x08 |
| 33 #define DA7210_INMIX_L 0x0D | 33 #define DA7210_INMIX_L 0x0D |
| 34 #define DA7210_INMIX_R 0x0E | 34 #define DA7210_INMIX_R 0x0E |
| (...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 617 { | 617 { |
| 618 #if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE) | 618 #if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE) |
| 619 i2c_del_driver(&da7210_i2c_driver); | 619 i2c_del_driver(&da7210_i2c_driver); |
| 620 #endif | 620 #endif |
| 621 } | 621 } |
| 622 module_exit(da7210_exit); | 622 module_exit(da7210_exit); |
| 623 | 623 |
| 624 MODULE_DESCRIPTION("ASoC DA7210 driver"); | 624 MODULE_DESCRIPTION("ASoC DA7210 driver"); |
| 625 MODULE_AUTHOR("David Chen, Kuninori Morimoto"); | 625 MODULE_AUTHOR("David Chen, Kuninori Morimoto"); |
| 626 MODULE_LICENSE("GPL"); | 626 MODULE_LICENSE("GPL"); |
| OLD | NEW |