summaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorRobert Jarzmik <robert.jarzmik@free.fr>2015-11-11 07:12:51 -0500
committerMark Brown <broonie@kernel.org>2015-11-18 13:08:54 -0500
commit9bf5c3d11f1fbaf43399d189f05fb20ceb46ee5d (patch)
treeff770ab3d145eaecf4a877a481388a6d55f9e478 /include/sound
parent8005c49d9aea74d382f474ce11afbbc7d7130bec (diff)
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')
-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 @@
417#define AC97_RATES_MIC_ADC 4 417#define AC97_RATES_MIC_ADC 4
418#define AC97_RATES_SPDIF 5 418#define AC97_RATES_SPDIF 5
419 419
420#define AC97_NUM_GPIOS 16
420/* 421/*
421 * 422 *
422 */ 423 */
423 424
424struct snd_ac97; 425struct snd_ac97;
426struct snd_ac97_gpio_priv;
425struct snd_pcm_chmap; 427struct snd_pcm_chmap;
426 428
427struct snd_ac97_build_ops { 429struct snd_ac97_build_ops {
@@ -529,6 +531,7 @@ struct snd_ac97 {
529 struct delayed_work power_work; 531 struct delayed_work power_work;
530#endif 532#endif
531 struct device dev; 533 struct device dev;
534 struct snd_ac97_gpio_priv *gpio_priv;
532 535
533 struct snd_pcm_chmap *chmaps[2]; /* channel-maps (optional) */ 536 struct snd_pcm_chmap *chmaps[2]; /* channel-maps (optional) */
534}; 537};