summaryrefslogtreecommitdiffstats
path: root/include/sound/ac97_codec.h
diff options
context:
space:
mode:
authorRobert Jarzmik <robert.jarzmik@free.fr>2015-11-11 13:12:51 +0100
committerMark Brown <broonie@kernel.org>2015-11-18 18:08:54 +0000
commit9bf5c3d11f1fbaf43399d189f05fb20ceb46ee5d (patch)
treeff770ab3d145eaecf4a877a481388a6d55f9e478 /include/sound/ac97_codec.h
parent8005c49d9aea74d382f474ce11afbbc7d7130bec (diff)
downloadtalos-obmc-linux-9bf5c3d11f1fbaf43399d189f05fb20ceb46ee5d.tar.gz
talos-obmc-linux-9bf5c3d11f1fbaf43399d189f05fb20ceb46ee5d.zip
ASoC: ac97: add gpio chip
The AC97 specification provides a guide for 16 GPIOs in the codecs. If the gpiolib is compiled in the kernel, declare a gpio chip. This was tested with a pxa27x board (mioa701) and a wm9713 codec. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound/ac97_codec.h')
-rw-r--r--include/sound/ac97_codec.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sound/ac97_codec.h b/include/sound/ac97_codec.h
index 74bc85473b58..15aa5f07c955 100644
--- a/include/sound/ac97_codec.h
+++ b/include/sound/ac97_codec.h
@@ -417,11 +417,13 @@
#define AC97_RATES_MIC_ADC 4
#define AC97_RATES_SPDIF 5
+#define AC97_NUM_GPIOS 16
/*
*
*/
struct snd_ac97;
+struct snd_ac97_gpio_priv;
struct snd_pcm_chmap;
struct snd_ac97_build_ops {
@@ -529,6 +531,7 @@ struct snd_ac97 {
struct delayed_work power_work;
#endif
struct device dev;
+ struct snd_ac97_gpio_priv *gpio_priv;
struct snd_pcm_chmap *chmaps[2]; /* channel-maps (optional) */
};
OpenPOWER on IntegriCloud