aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/ca0106/ca0106.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2008-11-24 08:06:08 -0500
committerTakashi Iwai <tiwai@suse.de>2008-12-04 09:25:03 -0500
commit5da95273c2e63c9607652b5e8dd39808b6992d7c (patch)
treef4f7b0c7af29c29524ea93855552d326a0cc58ff /sound/pci/ca0106/ca0106.h
parent9bf1a2445f3c569098b8de7097ca324e65abecc2 (diff)
ALSA: ca0106 - Add power-management support
Added the missing PM support for snd-ca0106 driver. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/ca0106/ca0106.h')
-rw-r--r--sound/pci/ca0106/ca0106.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/sound/pci/ca0106/ca0106.h b/sound/pci/ca0106/ca0106.h
index 74175fc80c7f..1c14ff424116 100644
--- a/sound/pci/ca0106/ca0106.h
+++ b/sound/pci/ca0106/ca0106.h
@@ -686,7 +686,7 @@ struct snd_ca0106 {
686 spinlock_t emu_lock; 686 spinlock_t emu_lock;
687 687
688 struct snd_ac97 *ac97; 688 struct snd_ac97 *ac97;
689 struct snd_pcm *pcm; 689 struct snd_pcm *pcm[4];
690 690
691 struct snd_ca0106_channel playback_channels[4]; 691 struct snd_ca0106_channel playback_channels[4];
692 struct snd_ca0106_channel capture_channels[4]; 692 struct snd_ca0106_channel capture_channels[4];
@@ -703,6 +703,11 @@ struct snd_ca0106 {
703 struct snd_ca_midi midi2; 703 struct snd_ca_midi midi2;
704 704
705 u16 spi_dac_reg[16]; 705 u16 spi_dac_reg[16];
706
707#ifdef CONFIG_PM
708#define NUM_SAVED_VOLUMES 9
709 unsigned int saved_vol[NUM_SAVED_VOLUMES];
710#endif
706}; 711};
707 712
708int snd_ca0106_mixer(struct snd_ca0106 *emu); 713int snd_ca0106_mixer(struct snd_ca0106 *emu);
@@ -721,3 +726,11 @@ int snd_ca0106_i2c_write(struct snd_ca0106 *emu, u32 reg, u32 value);
721 726
722int snd_ca0106_spi_write(struct snd_ca0106 * emu, 727int snd_ca0106_spi_write(struct snd_ca0106 * emu,
723 unsigned int data); 728 unsigned int data);
729
730#ifdef CONFIG_PM
731void snd_ca0106_mixer_suspend(struct snd_ca0106 *chip);
732void snd_ca0106_mixer_resume(struct snd_ca0106 *chip);
733#else
734#define snd_ca0106_mixer_suspend(chip) do { } while (0)
735#define snd_ca0106_mixer_resume(chip) do { } while (0)
736#endif