git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fedora kernel-2.6.17-1.2142_FC4 patched with stable patch-2.6.17.4-vs2.0.2-rc26.diff
[linux-2.6.git]
/
include
/
sound
/
ak4531_codec.h
diff --git
a/include/sound/ak4531_codec.h
b/include/sound/ak4531_codec.h
index
8b18992
..
fb30faa
100644
(file)
--- a/
include/sound/ak4531_codec.h
+++ b/
include/sound/ak4531_codec.h
@@
-64,17
+64,22
@@
#define AK4531_AD_IN 0x18 /* AD input select */
#define AK4531_MIC_GAIN 0x19 /* MIC amplified gain */
#define AK4531_AD_IN 0x18 /* AD input select */
#define AK4531_MIC_GAIN 0x19 /* MIC amplified gain */
-typedef struct _snd_ak4531 ak4531_t;
-
-struct _snd_ak4531 {
- void (*write) (ak4531_t *ak4531, unsigned short reg, unsigned short val);
+struct snd_ak4531 {
+ void (*write) (struct snd_ak4531 *ak4531, unsigned short reg,
+ unsigned short val);
void *private_data;
void *private_data;
- void (*private_free) (
ak4531_t
*ak4531);
+ void (*private_free) (
struct snd_ak4531
*ak4531);
/* --- */
unsigned char regs[0x20];
/* --- */
unsigned char regs[0x20];
- struct
semaphore
reg_mutex;
+ struct
mutex
reg_mutex;
};
};
-int snd_ak4531_mixer(snd_card_t * card, ak4531_t * _ak4531, ak4531_t ** rak4531);
+int snd_ak4531_mixer(struct snd_card *card, struct snd_ak4531 *_ak4531,
+ struct snd_ak4531 **rak4531);
+
+#ifdef CONFIG_PM
+void snd_ak4531_suspend(struct snd_ak4531 *ak4531);
+void snd_ak4531_resume(struct snd_ak4531 *ak4531);
+#endif
#endif /* __SOUND_AK4531_CODEC_H */
#endif /* __SOUND_AK4531_CODEC_H */