Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(284)

Side by Side Diff: sound/soc/codecs/twl6040.h

Issue 6577007: CHROMIUM: ASoC: Import entire upstream ASoC tree (Closed)
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sound/soc/codecs/twl4030.c ('k') | sound/soc/codecs/twl6040.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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__ */
OLDNEW
« no previous file with comments | « sound/soc/codecs/twl4030.c ('k') | sound/soc/codecs/twl6040.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698