summaryrefslogtreecommitdiff
path: root/include/sound/wm9081.h
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-03-01 20:10:46 +0000
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-03-01 23:30:53 +0000
commit4a5f7bda8fe9d0ed08ed4c5beb5dc3fa62f09d05 (patch)
tree5934fb36dc1cc858100893b70bbb0cbd27a57c68 /include/sound/wm9081.h
parent49542656ade68b4d4952feec6a4d508fd32be6f1 (diff)
ASoC: Add platform data for WM9081 IRQ pin configuration
The WM9081 IRQ output can be either active high or active low and can support either CMOS or open drain modes. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'include/sound/wm9081.h')
-rw-r--r--include/sound/wm9081.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/sound/wm9081.h b/include/sound/wm9081.h
index e173ddbf6bd4..f34b0b1716d8 100644
--- a/include/sound/wm9081.h
+++ b/include/sound/wm9081.h
@@ -17,9 +17,12 @@ struct wm9081_retune_mobile_setting {
u16 config[20];
};
-struct wm9081_retune_mobile_config {
- struct wm9081_retune_mobile_setting *configs;
- int num_configs;
+struct wm9081_pdata {
+ bool irq_high; /* IRQ is active high */
+ bool irq_cmos; /* IRQ is in CMOS mode */
+
+ struct wm9081_retune_mobile_setting *retune_configs;
+ int num_retune_configs;
};
#endif