diff options
author | Pavel Hofman <pavel.hofman@ivitera.com> | 2009-09-16 22:25:38 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-09-21 15:46:19 +0200 |
commit | 494703062b6e6ef5e72364aafc9bcbc172d53dea (patch) | |
tree | 146331d091b4dba7928244cd1a1ed3dbf0fbad9d /sound/pci/ice1712/ice1712.h | |
parent | 42cfa276aebd28e5cc4350ff6c7d75f1cb84dd98 (diff) |
ALSA: ice1724 - adding GPIO routines for mask and direction
* get/set routines for GPIO mask and direction
Signed-off-by: Pavel Hofman <pavel.hofman@ivitera.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/ice1712/ice1712.h')
-rw-r--r-- | sound/pci/ice1712/ice1712.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/pci/ice1712/ice1712.h b/sound/pci/ice1712/ice1712.h index 9da2dae64c5..b31a59d0625 100644 --- a/sound/pci/ice1712/ice1712.h +++ b/sound/pci/ice1712/ice1712.h @@ -359,7 +359,9 @@ struct snd_ice1712 { unsigned int saved[2]; /* for ewx_i2c */ /* operators */ void (*set_mask)(struct snd_ice1712 *ice, unsigned int data); + unsigned int (*get_mask)(struct snd_ice1712 *ice); void (*set_dir)(struct snd_ice1712 *ice, unsigned int data); + unsigned int (*get_dir)(struct snd_ice1712 *ice); void (*set_data)(struct snd_ice1712 *ice, unsigned int data); unsigned int (*get_data)(struct snd_ice1712 *ice); /* misc operators - move to another place? */ @@ -399,6 +401,11 @@ static inline void snd_ice1712_gpio_set_dir(struct snd_ice1712 *ice, unsigned in ice->gpio.set_dir(ice, bits); } +static inline unsigned int snd_ice1712_gpio_get_dir(struct snd_ice1712 *ice) +{ + return ice->gpio.get_dir(ice); +} + static inline void snd_ice1712_gpio_set_mask(struct snd_ice1712 *ice, unsigned int bits) { ice->gpio.set_mask(ice, bits); |