diff options
Diffstat (limited to 'include/sound/ak4531_codec.h')
| -rw-r--r-- | include/sound/ak4531_codec.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/include/sound/ak4531_codec.h b/include/sound/ak4531_codec.h index 8b18992376d5..edf04070ce7c 100644 --- a/include/sound/ak4531_codec.h +++ b/include/sound/ak4531_codec.h | |||
| @@ -64,17 +64,22 @@ | |||
| 64 | #define AK4531_AD_IN 0x18 /* AD input select */ | 64 | #define AK4531_AD_IN 0x18 /* AD input select */ |
| 65 | #define AK4531_MIC_GAIN 0x19 /* MIC amplified gain */ | 65 | #define AK4531_MIC_GAIN 0x19 /* MIC amplified gain */ |
| 66 | 66 | ||
| 67 | typedef struct _snd_ak4531 ak4531_t; | 67 | struct snd_ak4531 { |
| 68 | 68 | void (*write) (struct snd_ak4531 *ak4531, unsigned short reg, | |
| 69 | struct _snd_ak4531 { | 69 | unsigned short val); |
| 70 | void (*write) (ak4531_t *ak4531, unsigned short reg, unsigned short val); | ||
| 71 | void *private_data; | 70 | void *private_data; |
| 72 | void (*private_free) (ak4531_t *ak4531); | 71 | void (*private_free) (struct snd_ak4531 *ak4531); |
| 73 | /* --- */ | 72 | /* --- */ |
| 74 | unsigned char regs[0x20]; | 73 | unsigned char regs[0x20]; |
| 75 | struct semaphore reg_mutex; | 74 | struct semaphore reg_mutex; |
| 76 | }; | 75 | }; |
| 77 | 76 | ||
| 78 | int snd_ak4531_mixer(snd_card_t * card, ak4531_t * _ak4531, ak4531_t ** rak4531); | 77 | int snd_ak4531_mixer(struct snd_card *card, struct snd_ak4531 *_ak4531, |
| 78 | struct snd_ak4531 **rak4531); | ||
| 79 | |||
| 80 | #ifdef CONFIG_PM | ||
| 81 | void snd_ak4531_suspend(struct snd_ak4531 *ak4531); | ||
| 82 | void snd_ak4531_resume(struct snd_ak4531 *ak4531); | ||
| 83 | #endif | ||
| 79 | 84 | ||
| 80 | #endif /* __SOUND_AK4531_CODEC_H */ | 85 | #endif /* __SOUND_AK4531_CODEC_H */ |
