| OLD | NEW |
| 1 /* | 1 /* |
| 2 * ALSA SoC TWL6040 codec driver | 2 * ALSA SoC TWL6040 codec driver |
| 3 * | 3 * |
| 4 * Author: Misael Lopez Cruz <x0052729@ti.com> | 4 * Author: Misael Lopez Cruz <x0052729@ti.com> |
| 5 * | 5 * |
| 6 * This program is free software; you can redistribute it and/or | 6 * This program is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU General Public License | 7 * modify it under the terms of the GNU General Public License |
| 8 * version 2 as published by the Free Software Foundation. | 8 * version 2 as published by the Free Software Foundation. |
| 9 * | 9 * |
| 10 * This program is distributed in the hope that it will be useful, but | 10 * This program is distributed in the hope that it will be useful, but |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 #define TWL6040_THINT 0x01 | 72 #define TWL6040_THINT 0x01 |
| 73 #define TWL6040_PLUGINT 0x02 | 73 #define TWL6040_PLUGINT 0x02 |
| 74 #define TWL6040_UNPLUGINT 0x04 | 74 #define TWL6040_UNPLUGINT 0x04 |
| 75 #define TWL6040_HOOKINT 0x08 | 75 #define TWL6040_HOOKINT 0x08 |
| 76 #define TWL6040_HFINT 0x10 | 76 #define TWL6040_HFINT 0x10 |
| 77 #define TWL6040_VIBINT 0x20 | 77 #define TWL6040_VIBINT 0x20 |
| 78 #define TWL6040_READYINT 0x40 | 78 #define TWL6040_READYINT 0x40 |
| 79 | 79 |
| 80 /* INTMR (0x04) fields */ | 80 /* INTMR (0x04) fields */ |
| 81 | 81 |
| 82 #define TWL6040_PLUGMSK 0x02 |
| 82 #define TWL6040_READYMSK 0x40 | 83 #define TWL6040_READYMSK 0x40 |
| 83 #define TWL6040_ALLINT_MSK 0x7B | 84 #define TWL6040_ALLINT_MSK 0x7B |
| 84 | 85 |
| 85 /* NCPCTL (0x05) fields */ | 86 /* NCPCTL (0x05) fields */ |
| 86 | 87 |
| 87 #define TWL6040_NCPENA 0x01 | 88 #define TWL6040_NCPENA 0x01 |
| 88 #define TWL6040_NCPOPEN 0x40 | 89 #define TWL6040_NCPOPEN 0x40 |
| 89 | 90 |
| 90 /* LDOCTL (0x06) fields */ | 91 /* LDOCTL (0x06) fields */ |
| 91 | 92 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 /* ACCCTL (0x2D) fields */ | 129 /* ACCCTL (0x2D) fields */ |
| 129 | 130 |
| 130 #define TWL6040_RESETSPLIT 0x04 | 131 #define TWL6040_RESETSPLIT 0x04 |
| 131 | 132 |
| 132 #define TWL6040_SYSCLK_SEL_LPPLL 1 | 133 #define TWL6040_SYSCLK_SEL_LPPLL 1 |
| 133 #define TWL6040_SYSCLK_SEL_HPPLL 2 | 134 #define TWL6040_SYSCLK_SEL_HPPLL 2 |
| 134 | 135 |
| 135 #define TWL6040_HPPLL_ID 1 | 136 #define TWL6040_HPPLL_ID 1 |
| 136 #define TWL6040_LPPLL_ID 2 | 137 #define TWL6040_LPPLL_ID 2 |
| 137 | 138 |
| 139 /* STATUS (0x2E) fields */ |
| 140 |
| 141 #define TWL6040_PLUGCOMP 0x02 |
| 142 |
| 143 void twl6040_hs_jack_detect(struct snd_soc_codec *codec, |
| 144 struct snd_soc_jack *jack, int report); |
| 145 |
| 138 #endif /* End of __TWL6040_H__ */ | 146 #endif /* End of __TWL6040_H__ */ |
| OLD | NEW |