aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/ca0106/ca0106.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2008-12-20 17:43:00 -0500
committerTakashi Iwai <tiwai@suse.de>2008-12-20 17:43:00 -0500
commit6bcdbd55b4c603d9741398d081133fcc50a10b6c (patch)
tree335e8d03b134030a748439993bb24d53004032a1 /sound/pci/ca0106/ca0106.h
parent6a8436419d1b77b24d82bd90354adc4baa393566 (diff)
parent72077aa336d0f4c5e3c7014d7471c79bc69873bb (diff)
Merge branch 'topic/ca0106-resume' into topic/ca0106
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 3faccb6ecad9..a6943cb0d209 100644
--- a/sound/pci/ca0106/ca0106.h
+++ b/sound/pci/ca0106/ca0106.h
@@ -690,7 +690,7 @@ struct snd_ca0106 {
690 spinlock_t emu_lock; 690 spinlock_t emu_lock;
691 691
692 struct snd_ac97 *ac97; 692 struct snd_ac97 *ac97;
693 struct snd_pcm *pcm; 693 struct snd_pcm *pcm[4];
694 694
695 struct snd_ca0106_channel playback_channels[4]; 695 struct snd_ca0106_channel playback_channels[4];
696 struct snd_ca0106_channel capture_channels[4]; 696 struct snd_ca0106_channel capture_channels[4];
@@ -707,6 +707,11 @@ struct snd_ca0106 {
707 struct snd_ca_midi midi2; 707 struct snd_ca_midi midi2;
708 708
709 u16 spi_dac_reg[16]; 709 u16 spi_dac_reg[16];
710
711#ifdef CONFIG_PM
712#define NUM_SAVED_VOLUMES 9
713 unsigned int saved_vol[NUM_SAVED_VOLUMES];
714#endif
710}; 715};
711 716
712int snd_ca0106_mixer(struct snd_ca0106 *emu); 717int snd_ca0106_mixer(struct snd_ca0106 *emu);
@@ -725,3 +730,11 @@ int snd_ca0106_i2c_write(struct snd_ca0106 *emu, u32 reg, u32 value);
725 730
726int snd_ca0106_spi_write(struct snd_ca0106 * emu, 731int snd_ca0106_spi_write(struct snd_ca0106 * emu,
727 unsigned int data); 732 unsigned int data);
733
734#ifdef CONFIG_PM
735void snd_ca0106_mixer_suspend(struct snd_ca0106 *chip);
736void snd_ca0106_mixer_resume(struct snd_ca0106 *chip);
737#else
738#define snd_ca0106_mixer_suspend(chip) do { } while (0)
739#define snd_ca0106_mixer_resume(chip) do { } while (0)
740#endif