Ignore:
Timestamp:
May 9, 2009, 11:45:26 AM (16 years ago)
Author:
Paul Smedley
Message:

Update alsa-kernel to ALSA 1.0.20 level

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk/alsa-kernel/include/sound/soc.h

    r410 r426  
    1717#include <linux/types.h>
    1818#include <linux/workqueue.h>
     19#include <linux/interrupt.h>
     20#include <linux/kernel.h>
    1921#include <sound/core.h>
    2022#include <sound/pcm.h>
     
    169171struct snd_soc_jack;
    170172struct snd_soc_jack_pin;
     173#ifdef CONFIG_GPIOLIB
     174struct snd_soc_jack_gpio;
     175#endif
    171176
    172177typedef int (*hw_write_t)(void *,const char* ,int);
     
    195200int snd_soc_jack_add_pins(struct snd_soc_jack *jack, int count,
    196201                          struct snd_soc_jack_pin *pins);
     202#ifdef CONFIG_GPIOLIB
     203int snd_soc_jack_add_gpios(struct snd_soc_jack *jack, int count,
     204                        struct snd_soc_jack_gpio *gpios);
     205void snd_soc_jack_free_gpios(struct snd_soc_jack *jack, int count,
     206                        struct snd_soc_jack_gpio *gpios);
     207#endif
    197208
    198209/* codec IO */
     
    264275        bool invert;
    265276};
     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
     288struct 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
    266298
    267299struct snd_soc_jack {
     
    419451        struct snd_soc_device *socdev;
    420452
     453        struct snd_soc_codec *codec;
     454
    421455        struct snd_soc_platform *platform;
    422456        struct delayed_work delayed_work;
     
    428462        struct device *dev;
    429463        struct snd_soc_card *card;
    430         struct snd_soc_codec *codec;
    431464        struct snd_soc_codec_device *codec_dev;
    432465        void *codec_data;
Note: See TracChangeset for help on using the changeset viewer.