diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-07-12 02:25:03 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-07-13 11:38:04 -0400 |
commit | d96ca3cd0bcefdcd1d9ad1f2610dcd959fccd252 (patch) | |
tree | e7dddc5b7104d02ae765081024c4e9ea1bf2a3ba /sound/soc/codecs/wm_hubs.h | |
parent | b70a51bab9c64d2cabf7c052ebb3f5db2801fd05 (diff) |
ASoC: Implement DC servo completion IRQ handling for wm_hubs devices
The individual devices should set the flag dcs_done_irq in the hubs
shared data structure to indicate that they will flag the interrupt
by calling wm_hubs_dcs_done().
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/wm_hubs.h')
-rw-r--r-- | sound/soc/codecs/wm_hubs.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm_hubs.h b/sound/soc/codecs/wm_hubs.h index 0d290d2740ec..676b1252ab91 100644 --- a/sound/soc/codecs/wm_hubs.h +++ b/sound/soc/codecs/wm_hubs.h | |||
@@ -14,6 +14,9 @@ | |||
14 | #ifndef _WM_HUBS_H | 14 | #ifndef _WM_HUBS_H |
15 | #define _WM_HUBS_H | 15 | #define _WM_HUBS_H |
16 | 16 | ||
17 | #include <linux/completion.h> | ||
18 | #include <linux/interrupt.h> | ||
19 | |||
17 | struct snd_soc_codec; | 20 | struct snd_soc_codec; |
18 | 21 | ||
19 | extern const unsigned int wm_hubs_spkmix_tlv[]; | 22 | extern const unsigned int wm_hubs_spkmix_tlv[]; |
@@ -28,6 +31,9 @@ struct wm_hubs_data { | |||
28 | 31 | ||
29 | bool class_w; | 32 | bool class_w; |
30 | u16 class_w_dcs; | 33 | u16 class_w_dcs; |
34 | |||
35 | bool dcs_done_irq; | ||
36 | struct completion dcs_done; | ||
31 | }; | 37 | }; |
32 | 38 | ||
33 | extern int wm_hubs_add_analogue_controls(struct snd_soc_codec *); | 39 | extern int wm_hubs_add_analogue_controls(struct snd_soc_codec *); |
@@ -38,4 +44,6 @@ extern int wm_hubs_handle_analogue_pdata(struct snd_soc_codec *, | |||
38 | int jd_scthr, int jd_thr, | 44 | int jd_scthr, int jd_thr, |
39 | int micbias1_lvl, int micbias2_lvl); | 45 | int micbias1_lvl, int micbias2_lvl); |
40 | 46 | ||
47 | extern irqreturn_t wm_hubs_dcs_done(int irq, void *data); | ||
48 | |||
41 | #endif | 49 | #endif |