diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/atmel-ssc.h | 6 | ||||
-rw-r--r-- | include/linux/mfd/arizona/core.h | 4 | ||||
-rw-r--r-- | include/linux/mfd/arizona/pdata.h | 6 | ||||
-rw-r--r-- | include/linux/mfd/wm8994/core.h | 4 | ||||
-rw-r--r-- | include/linux/mfd/wm8994/pdata.h | 5 | ||||
-rw-r--r-- | include/linux/platform_data/asoc-s3c.h | 6 | ||||
-rw-r--r-- | include/linux/platform_data/davinci_asp.h | 4 | ||||
-rw-r--r-- | include/linux/platform_data/omap-twl4030.h | 26 |
8 files changed, 54 insertions, 7 deletions
diff --git a/include/linux/atmel-ssc.h b/include/linux/atmel-ssc.h index 4eb31752e2b7..deb0ae58b99b 100644 --- a/include/linux/atmel-ssc.h +++ b/include/linux/atmel-ssc.h | |||
@@ -5,10 +5,16 @@ | |||
5 | #include <linux/list.h> | 5 | #include <linux/list.h> |
6 | #include <linux/io.h> | 6 | #include <linux/io.h> |
7 | 7 | ||
8 | struct atmel_ssc_platform_data { | ||
9 | int use_dma; | ||
10 | }; | ||
11 | |||
8 | struct ssc_device { | 12 | struct ssc_device { |
9 | struct list_head list; | 13 | struct list_head list; |
14 | resource_size_t phybase; | ||
10 | void __iomem *regs; | 15 | void __iomem *regs; |
11 | struct platform_device *pdev; | 16 | struct platform_device *pdev; |
17 | struct atmel_ssc_platform_data *pdata; | ||
12 | struct clk *clk; | 18 | struct clk *clk; |
13 | int user; | 19 | int user; |
14 | int irq; | 20 | int irq; |
diff --git a/include/linux/mfd/arizona/core.h b/include/linux/mfd/arizona/core.h index dd231ac0bb1f..a580363a7d29 100644 --- a/include/linux/mfd/arizona/core.h +++ b/include/linux/mfd/arizona/core.h | |||
@@ -78,6 +78,8 @@ enum arizona_type { | |||
78 | 78 | ||
79 | #define ARIZONA_NUM_IRQ 50 | 79 | #define ARIZONA_NUM_IRQ 50 |
80 | 80 | ||
81 | struct snd_soc_dapm_context; | ||
82 | |||
81 | struct arizona { | 83 | struct arizona { |
82 | struct regmap *regmap; | 84 | struct regmap *regmap; |
83 | struct device *dev; | 85 | struct device *dev; |
@@ -98,6 +100,8 @@ struct arizona { | |||
98 | 100 | ||
99 | struct mutex clk_lock; | 101 | struct mutex clk_lock; |
100 | int clk32k_ref; | 102 | int clk32k_ref; |
103 | |||
104 | struct snd_soc_dapm_context *dapm; | ||
101 | }; | 105 | }; |
102 | 106 | ||
103 | int arizona_clk32k_enable(struct arizona *arizona); | 107 | int arizona_clk32k_enable(struct arizona *arizona); |
diff --git a/include/linux/mfd/arizona/pdata.h b/include/linux/mfd/arizona/pdata.h index 7ab442905a57..8b1d1daaae16 100644 --- a/include/linux/mfd/arizona/pdata.h +++ b/include/linux/mfd/arizona/pdata.h | |||
@@ -62,6 +62,9 @@ | |||
62 | 62 | ||
63 | #define ARIZONA_MAX_OUTPUT 6 | 63 | #define ARIZONA_MAX_OUTPUT 6 |
64 | 64 | ||
65 | #define ARIZONA_HAP_ACT_ERM 0 | ||
66 | #define ARIZONA_HAP_ACT_LRA 2 | ||
67 | |||
65 | #define ARIZONA_MAX_PDM_SPK 2 | 68 | #define ARIZONA_MAX_PDM_SPK 2 |
66 | 69 | ||
67 | struct regulator_init_data; | 70 | struct regulator_init_data; |
@@ -114,6 +117,9 @@ struct arizona_pdata { | |||
114 | 117 | ||
115 | /** PDM speaker format */ | 118 | /** PDM speaker format */ |
116 | unsigned int spk_fmt[ARIZONA_MAX_PDM_SPK]; | 119 | unsigned int spk_fmt[ARIZONA_MAX_PDM_SPK]; |
120 | |||
121 | /** Haptic actuator type */ | ||
122 | unsigned int hap_act; | ||
117 | }; | 123 | }; |
118 | 124 | ||
119 | #endif | 125 | #endif |
diff --git a/include/linux/mfd/wm8994/core.h b/include/linux/mfd/wm8994/core.h index 1f173306bf05..ae5c249530b4 100644 --- a/include/linux/mfd/wm8994/core.h +++ b/include/linux/mfd/wm8994/core.h | |||
@@ -19,6 +19,8 @@ | |||
19 | #include <linux/interrupt.h> | 19 | #include <linux/interrupt.h> |
20 | #include <linux/regmap.h> | 20 | #include <linux/regmap.h> |
21 | 21 | ||
22 | #include <linux/mfd/wm8994/pdata.h> | ||
23 | |||
22 | enum wm8994_type { | 24 | enum wm8994_type { |
23 | WM8994 = 0, | 25 | WM8994 = 0, |
24 | WM8958 = 1, | 26 | WM8958 = 1, |
@@ -55,6 +57,8 @@ struct regulator_bulk_data; | |||
55 | struct wm8994 { | 57 | struct wm8994 { |
56 | struct mutex irq_lock; | 58 | struct mutex irq_lock; |
57 | 59 | ||
60 | struct wm8994_pdata pdata; | ||
61 | |||
58 | enum wm8994_type type; | 62 | enum wm8994_type type; |
59 | int revision; | 63 | int revision; |
60 | int cust_id; | 64 | int cust_id; |
diff --git a/include/linux/mfd/wm8994/pdata.h b/include/linux/mfd/wm8994/pdata.h index fc87be4fdc25..8e21a094836d 100644 --- a/include/linux/mfd/wm8994/pdata.h +++ b/include/linux/mfd/wm8994/pdata.h | |||
@@ -176,6 +176,11 @@ struct wm8994_pdata { | |||
176 | unsigned int lineout1fb:1; | 176 | unsigned int lineout1fb:1; |
177 | unsigned int lineout2fb:1; | 177 | unsigned int lineout2fb:1; |
178 | 178 | ||
179 | /* Delay between detecting a jack and starting microphone | ||
180 | * detect (specified in ms) | ||
181 | */ | ||
182 | int micdet_delay; | ||
183 | |||
179 | /* IRQ for microphone detection if brought out directly as a | 184 | /* IRQ for microphone detection if brought out directly as a |
180 | * signal. | 185 | * signal. |
181 | */ | 186 | */ |
diff --git a/include/linux/platform_data/asoc-s3c.h b/include/linux/platform_data/asoc-s3c.h index aa9875f77c40..88272591a895 100644 --- a/include/linux/platform_data/asoc-s3c.h +++ b/include/linux/platform_data/asoc-s3c.h | |||
@@ -38,12 +38,6 @@ struct samsung_i2s { | |||
38 | #define QUIRK_NEED_RSTCLR (1 << 3) | 38 | #define QUIRK_NEED_RSTCLR (1 << 3) |
39 | /* Quirks of the I2S controller */ | 39 | /* Quirks of the I2S controller */ |
40 | u32 quirks; | 40 | u32 quirks; |
41 | |||
42 | /* | ||
43 | * Array of clock names that can be used to generate I2S signals. | ||
44 | * Also corresponds to clocks of I2SMOD[10] | ||
45 | */ | ||
46 | const char **src_clk; | ||
47 | dma_addr_t idma_addr; | 41 | dma_addr_t idma_addr; |
48 | }; | 42 | }; |
49 | 43 | ||
diff --git a/include/linux/platform_data/davinci_asp.h b/include/linux/platform_data/davinci_asp.h index d0c5825876f8..8db5ae03b6e3 100644 --- a/include/linux/platform_data/davinci_asp.h +++ b/include/linux/platform_data/davinci_asp.h | |||
@@ -16,12 +16,13 @@ | |||
16 | #ifndef __DAVINCI_ASP_H | 16 | #ifndef __DAVINCI_ASP_H |
17 | #define __DAVINCI_ASP_H | 17 | #define __DAVINCI_ASP_H |
18 | 18 | ||
19 | #include <linux/genalloc.h> | ||
20 | |||
19 | struct snd_platform_data { | 21 | struct snd_platform_data { |
20 | u32 tx_dma_offset; | 22 | u32 tx_dma_offset; |
21 | u32 rx_dma_offset; | 23 | u32 rx_dma_offset; |
22 | int asp_chan_q; /* event queue number for ASP channel */ | 24 | int asp_chan_q; /* event queue number for ASP channel */ |
23 | int ram_chan_q; /* event queue number for RAM channel */ | 25 | int ram_chan_q; /* event queue number for RAM channel */ |
24 | unsigned int codec_fmt; | ||
25 | /* | 26 | /* |
26 | * Allowing this is more efficient and eliminates left and right swaps | 27 | * Allowing this is more efficient and eliminates left and right swaps |
27 | * caused by underruns, but will swap the left and right channels | 28 | * caused by underruns, but will swap the left and right channels |
@@ -30,6 +31,7 @@ struct snd_platform_data { | |||
30 | unsigned enable_channel_combine:1; | 31 | unsigned enable_channel_combine:1; |
31 | unsigned sram_size_playback; | 32 | unsigned sram_size_playback; |
32 | unsigned sram_size_capture; | 33 | unsigned sram_size_capture; |
34 | struct gen_pool *sram_pool; | ||
33 | 35 | ||
34 | /* | 36 | /* |
35 | * If McBSP peripheral gets the clock from an external pin, | 37 | * If McBSP peripheral gets the clock from an external pin, |
diff --git a/include/linux/platform_data/omap-twl4030.h b/include/linux/platform_data/omap-twl4030.h index c7bef788daab..ee60ef79d792 100644 --- a/include/linux/platform_data/omap-twl4030.h +++ b/include/linux/platform_data/omap-twl4030.h | |||
@@ -25,8 +25,34 @@ | |||
25 | #ifndef _OMAP_TWL4030_H_ | 25 | #ifndef _OMAP_TWL4030_H_ |
26 | #define _OMAP_TWL4030_H_ | 26 | #define _OMAP_TWL4030_H_ |
27 | 27 | ||
28 | /* To select if only one channel is connected in a stereo port */ | ||
29 | #define OMAP_TWL4030_LEFT (1 << 0) | ||
30 | #define OMAP_TWL4030_RIGHT (1 << 1) | ||
31 | |||
28 | struct omap_tw4030_pdata { | 32 | struct omap_tw4030_pdata { |
29 | const char *card_name; | 33 | const char *card_name; |
34 | /* Voice port is connected to McBSP3 */ | ||
35 | bool voice_connected; | ||
36 | |||
37 | /* The driver will parse the connection flags if this flag is set */ | ||
38 | bool custom_routing; | ||
39 | /* Flags to indicate connected audio ports. */ | ||
40 | u8 has_hs; | ||
41 | u8 has_hf; | ||
42 | u8 has_predriv; | ||
43 | u8 has_carkit; | ||
44 | bool has_ear; | ||
45 | |||
46 | bool has_mainmic; | ||
47 | bool has_submic; | ||
48 | bool has_hsmic; | ||
49 | bool has_carkitmic; | ||
50 | bool has_digimic0; | ||
51 | bool has_digimic1; | ||
52 | u8 has_linein; | ||
53 | |||
54 | /* Jack detect GPIO or <= 0 if it is not implemented */ | ||
55 | int jack_detect; | ||
30 | }; | 56 | }; |
31 | 57 | ||
32 | #endif /* _OMAP_TWL4030_H_ */ | 58 | #endif /* _OMAP_TWL4030_H_ */ |