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

Side by Side Diff: sound/soc/codecs/wm8994.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/wm8993.c ('k') | sound/soc/codecs/wm8994.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 * wm8994.h -- WM8994 Soc Audio driver 2 * wm8994.h -- WM8994 Soc Audio driver
3 * 3 *
4 * This program is free software; you can redistribute it and/or modify 4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as 5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation. 6 * published by the Free Software Foundation.
7 */ 7 */
8 8
9 #ifndef _WM8994_H 9 #ifndef _WM8994_H
10 #define _WM8994_H 10 #define _WM8994_H
(...skipping 10 matching lines...) Expand all
21 #define WM8994_SYSCLK_OPCLK 5 21 #define WM8994_SYSCLK_OPCLK 5
22 22
23 #define WM8994_FLL1 1 23 #define WM8994_FLL1 1
24 #define WM8994_FLL2 2 24 #define WM8994_FLL2 2
25 25
26 #define WM8994_FLL_SRC_MCLK1 1 26 #define WM8994_FLL_SRC_MCLK1 1
27 #define WM8994_FLL_SRC_MCLK2 2 27 #define WM8994_FLL_SRC_MCLK2 2
28 #define WM8994_FLL_SRC_LRCLK 3 28 #define WM8994_FLL_SRC_LRCLK 3
29 #define WM8994_FLL_SRC_BCLK 4 29 #define WM8994_FLL_SRC_BCLK 4
30 30
31 typedef void (*wm8958_micdet_cb)(u16 status, void *data);
32
31 int wm8994_mic_detect(struct snd_soc_codec *codec, struct snd_soc_jack *jack, 33 int wm8994_mic_detect(struct snd_soc_codec *codec, struct snd_soc_jack *jack,
32 int micbias, int det, int shrt); 34 int micbias, int det, int shrt);
35 int wm8958_mic_detect(struct snd_soc_codec *codec, struct snd_soc_jack *jack,
36 wm8958_micdet_cb cb, void *cb_data);
37
38 #define WM8994_CACHE_SIZE 1570
39
40 struct wm8994_access_mask {
41 unsigned short readable; /* Mask of readable bits */
42 unsigned short writable; /* Mask of writable bits */
43 };
44
45 extern const struct wm8994_access_mask wm8994_access_masks[WM8994_CACHE_SIZE];
46 extern const __devinitdata u16 wm8994_reg_defaults[WM8994_CACHE_SIZE];
33 47
34 #endif 48 #endif
OLDNEW
« no previous file with comments | « sound/soc/codecs/wm8993.c ('k') | sound/soc/codecs/wm8994.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698