| OLD | NEW |
| 1 /* | 1 /* |
| 2 * ad1980.c -- ALSA Soc AD1980 codec support | 2 * ad1980.c -- ALSA Soc AD1980 codec support |
| 3 * | 3 * |
| 4 * Copyright: Analog Device Inc. | 4 * Copyright: Analog Device Inc. |
| 5 * Author: Roy Huang <roy.huang@analog.com> | 5 * Author: Roy Huang <roy.huang@analog.com> |
| 6 * Cliff Cai <cliff.cai@analog.com> | 6 * Cliff Cai <cliff.cai@analog.com> |
| 7 * | 7 * |
| 8 * This program is free software; you can redistribute it and/or modify it | 8 * This program is free software; you can redistribute it and/or modify it |
| 9 * under the terms of the GNU General Public License as published by the | 9 * under the terms of the GNU General Public License as published by the |
| 10 * Free Software Foundation; either version 2 of the License, or (at your | 10 * Free Software Foundation; either version 2 of the License, or (at your |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #include <linux/init.h> | 22 #include <linux/init.h> |
| 23 #include <linux/slab.h> | 23 #include <linux/slab.h> |
| 24 #include <linux/module.h> | 24 #include <linux/module.h> |
| 25 #include <linux/kernel.h> | 25 #include <linux/kernel.h> |
| 26 #include <linux/device.h> | 26 #include <linux/device.h> |
| 27 #include <sound/core.h> | 27 #include <sound/core.h> |
| 28 #include <sound/pcm.h> | 28 #include <sound/pcm.h> |
| 29 #include <sound/ac97_codec.h> | 29 #include <sound/ac97_codec.h> |
| 30 #include <sound/initval.h> | 30 #include <sound/initval.h> |
| 31 #include <sound/soc.h> | 31 #include <sound/soc.h> |
| 32 #include <sound/soc-dapm.h> | |
| 33 | 32 |
| 34 #include "ad1980.h" | 33 #include "ad1980.h" |
| 35 | 34 |
| 36 /* | 35 /* |
| 37 * AD1980 register cache | 36 * AD1980 register cache |
| 38 */ | 37 */ |
| 39 static const u16 ad1980_reg[] = { | 38 static const u16 ad1980_reg[] = { |
| 40 0x0090, 0x8000, 0x8000, 0x8000, /* 0 - 6 */ | 39 0x0090, 0x8000, 0x8000, 0x8000, /* 0 - 6 */ |
| 41 0x0000, 0x0000, 0x8008, 0x8008, /* 8 - e */ | 40 0x0000, 0x0000, 0x8008, 0x8008, /* 8 - e */ |
| 42 0x8808, 0x8808, 0x0000, 0x8808, /* 10 - 16 */ | 41 0x8808, 0x8808, 0x0000, 0x8808, /* 10 - 16 */ |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 | 282 |
| 284 static void __exit ad1980_exit(void) | 283 static void __exit ad1980_exit(void) |
| 285 { | 284 { |
| 286 platform_driver_unregister(&ad1980_codec_driver); | 285 platform_driver_unregister(&ad1980_codec_driver); |
| 287 } | 286 } |
| 288 module_exit(ad1980_exit); | 287 module_exit(ad1980_exit); |
| 289 | 288 |
| 290 MODULE_DESCRIPTION("ASoC ad1980 driver (Obsolete)"); | 289 MODULE_DESCRIPTION("ASoC ad1980 driver (Obsolete)"); |
| 291 MODULE_AUTHOR("Roy Huang, Cliff Cai"); | 290 MODULE_AUTHOR("Roy Huang, Cliff Cai"); |
| 292 MODULE_LICENSE("GPL"); | 291 MODULE_LICENSE("GPL"); |
| OLD | NEW |