audio.h 916 B

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