diff options
author | Takashi Iwai <tiwai@suse.de> | 2005-11-17 10:16:10 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-01-03 06:28:03 -0500 |
commit | 5bdb6a1629408f657f5f2c42b3c07c689c411499 (patch) | |
tree | b99b216117506a89a3f09ebb874da83ec13fbf6c /include/sound/sb.h | |
parent | cb60e5f5b2b19284479825cdaa6dd6b7078cf5d2 (diff) |
[ALSA] Add PM support to SB-support code
Modules: SB drivers,SB16/AWE driver
Add PM support to SB-support code.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound/sb.h')
-rw-r--r-- | include/sound/sb.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/sound/sb.h b/include/sound/sb.h index 8e82460c4d34..431d06675e36 100644 --- a/include/sound/sb.h +++ b/include/sound/sb.h | |||
@@ -107,6 +107,10 @@ struct snd_sb { | |||
107 | spinlock_t midi_input_lock; | 107 | spinlock_t midi_input_lock; |
108 | 108 | ||
109 | struct snd_info_entry *proc_entry; | 109 | struct snd_info_entry *proc_entry; |
110 | |||
111 | #ifdef CONFIG_PM | ||
112 | unsigned char saved_regs[0x20]; | ||
113 | #endif | ||
110 | }; | 114 | }; |
111 | 115 | ||
112 | /* I/O ports */ | 116 | /* I/O ports */ |
@@ -290,6 +294,10 @@ int snd_sbdsp_create(struct snd_card *card, | |||
290 | void snd_sbmixer_write(struct snd_sb *chip, unsigned char reg, unsigned char data); | 294 | void snd_sbmixer_write(struct snd_sb *chip, unsigned char reg, unsigned char data); |
291 | unsigned char snd_sbmixer_read(struct snd_sb *chip, unsigned char reg); | 295 | unsigned char snd_sbmixer_read(struct snd_sb *chip, unsigned char reg); |
292 | int snd_sbmixer_new(struct snd_sb *chip); | 296 | int snd_sbmixer_new(struct snd_sb *chip); |
297 | #ifdef CONFIG_PM | ||
298 | void snd_sbmixer_suspend(struct snd_sb *chip); | ||
299 | void snd_sbmixer_resume(struct snd_sb *chip); | ||
300 | #endif | ||
293 | 301 | ||
294 | /* sb8_init.c */ | 302 | /* sb8_init.c */ |
295 | int snd_sb8dsp_pcm(struct snd_sb *chip, int device, struct snd_pcm ** rpcm); | 303 | int snd_sb8dsp_pcm(struct snd_sb *chip, int device, struct snd_pcm ** rpcm); |