]> bbs.cooldavid.org Git - net-next-2.6.git/blob - include/sound/wm8962.h
9722aac5a138c217361fae81286ac268ee724b3d
[net-next-2.6.git] / include / sound / wm8962.h
1 /*
2  * wm8962.h  --  WM8962 Soc Audio driver platform data
3  *
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
6  * published by the Free Software Foundation.
7  */
8
9 #ifndef _WM8962_PDATA_H
10 #define _WM8962_PDATA_H
11
12 #define WM8962_MAX_GPIO 6
13
14 /* Use to set GPIO default values to zero */
15 #define WM8962_GPIO_SET 0x10000
16
17 struct wm8962_pdata {
18         u32 gpio_init[WM8962_MAX_GPIO];
19
20         /* Setup for microphone detection, raw value to be written to
21          * R48(0x30) - only microphone related bits will be updated.
22          * Detection may be enabled here for use with signals brought
23          * out on the GPIOs. */
24         u32 mic_cfg;
25
26         bool irq_active_low;
27
28         bool spk_mono;   /* Speaker outputs tied together as mono */
29 };
30
31 #endif