Path: blob/master/arch/arm/mach-pxa/include/mach/audio.h
10820 views
#ifndef __ASM_ARCH_AUDIO_H__1#define __ASM_ARCH_AUDIO_H__23#include <sound/core.h>4#include <sound/pcm.h>5#include <sound/ac97_codec.h>67/*8* @reset_gpio: AC97 reset gpio (normally gpio113 or gpio95)9* a -1 value means no gpio will be used for reset10* @codec_pdata: AC97 codec platform_data1112* reset_gpio should only be specified for pxa27x CPUs where a silicon13* bug prevents correct operation of the reset line. If not specified,14* the default behaviour on these CPUs is to consider gpio 113 as the15* AC97 reset line, which is the default on most boards.16*/17typedef struct {18int (*startup)(struct snd_pcm_substream *, void *);19void (*shutdown)(struct snd_pcm_substream *, void *);20void (*suspend)(void *);21void (*resume)(void *);22void *priv;23int reset_gpio;24void *codec_pdata[AC97_BUS_MAX_DEVICES];25} pxa2xx_audio_ops_t;2627extern void pxa_set_ac97_info(pxa2xx_audio_ops_t *ops);2829#endif303132