Changeset 426 for GPL/trunk/alsa-kernel/include/sound/soc.h
- Timestamp:
- May 9, 2009, 11:45:26 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/alsa-kernel/include/sound/soc.h
r410 r426 17 17 #include <linux/types.h> 18 18 #include <linux/workqueue.h> 19 #include <linux/interrupt.h> 20 #include <linux/kernel.h> 19 21 #include <sound/core.h> 20 22 #include <sound/pcm.h> … … 169 171 struct snd_soc_jack; 170 172 struct snd_soc_jack_pin; 173 #ifdef CONFIG_GPIOLIB 174 struct snd_soc_jack_gpio; 175 #endif 171 176 172 177 typedef int (*hw_write_t)(void *,const char* ,int); … … 195 200 int snd_soc_jack_add_pins(struct snd_soc_jack *jack, int count, 196 201 struct snd_soc_jack_pin *pins); 202 #ifdef CONFIG_GPIOLIB 203 int snd_soc_jack_add_gpios(struct snd_soc_jack *jack, int count, 204 struct snd_soc_jack_gpio *gpios); 205 void snd_soc_jack_free_gpios(struct snd_soc_jack *jack, int count, 206 struct snd_soc_jack_gpio *gpios); 207 #endif 197 208 198 209 /* codec IO */ … … 264 275 bool invert; 265 276 }; 277 278 /** 279 * struct snd_soc_jack_gpio - Describes a gpio pin for jack detection 280 * 281 * @gpio: gpio number 282 * @name: gpio name 283 * @report: value to report when jack detected 284 * @invert: report presence in low state 285 * @debouce_time: debouce time in ms 286 */ 287 #ifdef CONFIG_GPIOLIB 288 struct snd_soc_jack_gpio { 289 unsigned int gpio; 290 const char *name; 291 int report; 292 int invert; 293 int debounce_time; 294 struct snd_soc_jack *jack; 295 struct work_struct work; 296 }; 297 #endif 266 298 267 299 struct snd_soc_jack { … … 419 451 struct snd_soc_device *socdev; 420 452 453 struct snd_soc_codec *codec; 454 421 455 struct snd_soc_platform *platform; 422 456 struct delayed_work delayed_work; … … 428 462 struct device *dev; 429 463 struct snd_soc_card *card; 430 struct snd_soc_codec *codec;431 464 struct snd_soc_codec_device *codec_dev; 432 465 void *codec_data;
Note:
See TracChangeset
for help on using the changeset viewer.