audio.h 802 B

123456789101112131415161718192021222324252627
  1. #ifndef __ASM_ARCH_AUDIO_H__
  2. #define __ASM_ARCH_AUDIO_H__
  3. #include <sound/core.h>
  4. #include <sound/pcm.h>
  5. /*
  6. * @reset_gpio: AC97 reset gpio (normally gpio113 or gpio95)
  7. * a -1 value means no gpio will be used for reset
  8. * reset_gpio should only be specified for pxa27x CPUs where a silicon
  9. * bug prevents correct operation of the reset line. If not specified,
  10. * the default behaviour on these CPUs is to consider gpio 113 as the
  11. * AC97 reset line, which is the default on most boards.
  12. */
  13. typedef struct {
  14. int (*startup)(struct snd_pcm_substream *, void *);
  15. void (*shutdown)(struct snd_pcm_substream *, void *);
  16. void (*suspend)(void *);
  17. void (*resume)(void *);
  18. void *priv;
  19. int reset_gpio;
  20. } pxa2xx_audio_ops_t;
  21. extern void pxa_set_ac97_info(pxa2xx_audio_ops_t *ops);
  22. #endif