mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
ALSA: snd-ad1816a: Implement suspend/resume
Implement suspend/resume support for AD1816 chips. Tested with Terratec SoundSystem Base-1. Signed-off-by: Ondrej Zary <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
This commit is contained in:
parent
c86b6b452a
commit
6f0fa66051
3 changed files with 59 additions and 2 deletions
|
|
@ -147,6 +147,9 @@ struct snd_ad1816a {
|
|||
unsigned int c_dma_size;
|
||||
|
||||
struct snd_timer *timer;
|
||||
#ifdef CONFIG_PM
|
||||
unsigned short image[48];
|
||||
#endif
|
||||
};
|
||||
|
||||
|
||||
|
|
@ -171,5 +174,9 @@ extern int snd_ad1816a_pcm(struct snd_ad1816a *chip, int device, struct snd_pcm
|
|||
extern int snd_ad1816a_mixer(struct snd_ad1816a *chip);
|
||||
extern int snd_ad1816a_timer(struct snd_ad1816a *chip, int device,
|
||||
struct snd_timer **rtimer);
|
||||
#ifdef CONFIG_PM
|
||||
extern void snd_ad1816a_suspend(struct snd_ad1816a *chip);
|
||||
extern void snd_ad1816a_resume(struct snd_ad1816a *chip);
|
||||
#endif
|
||||
|
||||
#endif /* __SOUND_AD1816A_H */
|
||||
|
|
|
|||
Loading…
Reference in a new issue