mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[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 <[email protected]>
This commit is contained in:
parent
cb60e5f5b2
commit
5bdb6a1629
4 changed files with 153 additions and 0 deletions
|
|
@ -107,6 +107,10 @@ struct snd_sb {
|
|||
spinlock_t midi_input_lock;
|
||||
|
||||
struct snd_info_entry *proc_entry;
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
unsigned char saved_regs[0x20];
|
||||
#endif
|
||||
};
|
||||
|
||||
/* I/O ports */
|
||||
|
|
@ -290,6 +294,10 @@ int snd_sbdsp_create(struct snd_card *card,
|
|||
void snd_sbmixer_write(struct snd_sb *chip, unsigned char reg, unsigned char data);
|
||||
unsigned char snd_sbmixer_read(struct snd_sb *chip, unsigned char reg);
|
||||
int snd_sbmixer_new(struct snd_sb *chip);
|
||||
#ifdef CONFIG_PM
|
||||
void snd_sbmixer_suspend(struct snd_sb *chip);
|
||||
void snd_sbmixer_resume(struct snd_sb *chip);
|
||||
#endif
|
||||
|
||||
/* sb8_init.c */
|
||||
int snd_sb8dsp_pcm(struct snd_sb *chip, int device, struct snd_pcm ** rpcm);
|
||||
|
|
|
|||
Loading…
Reference in a new issue