Skip to content

Commit

Permalink
Merge branch 'topic/ca0106-resume' into topic/ca0106
Browse files Browse the repository at this point in the history
  • Loading branch information
Takashi Iwai committed Dec 20, 2008
2 parents 6a84364 + 72077aa commit 6bcdbd5
Show file tree
Hide file tree
Showing 3 changed files with 456 additions and 269 deletions.
15 changes: 14 additions & 1 deletion sound/pci/ca0106/ca0106.h
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ struct snd_ca0106 {
spinlock_t emu_lock;

struct snd_ac97 *ac97;
struct snd_pcm *pcm;
struct snd_pcm *pcm[4];

struct snd_ca0106_channel playback_channels[4];
struct snd_ca0106_channel capture_channels[4];
Expand All @@ -707,6 +707,11 @@ struct snd_ca0106 {
struct snd_ca_midi midi2;

u16 spi_dac_reg[16];

#ifdef CONFIG_PM
#define NUM_SAVED_VOLUMES 9
unsigned int saved_vol[NUM_SAVED_VOLUMES];
#endif
};

int snd_ca0106_mixer(struct snd_ca0106 *emu);
Expand All @@ -725,3 +730,11 @@ int snd_ca0106_i2c_write(struct snd_ca0106 *emu, u32 reg, u32 value);

int snd_ca0106_spi_write(struct snd_ca0106 * emu,
unsigned int data);

#ifdef CONFIG_PM
void snd_ca0106_mixer_suspend(struct snd_ca0106 *chip);
void snd_ca0106_mixer_resume(struct snd_ca0106 *chip);
#else
#define snd_ca0106_mixer_suspend(chip) do { } while (0)
#define snd_ca0106_mixer_resume(chip) do { } while (0)
#endif
Loading

0 comments on commit 6bcdbd5

Please sign in to comment.