summaryrefslogtreecommitdiffstats
path: root/sound/pci/emu10k1/emu10k1.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2012-11-22 17:18:49 +0100
committerTakashi Iwai <tiwai@suse.de>2012-11-22 17:48:11 +0100
commit4f86f120d9d65b3a8f17e48dca1f991d861b5cd7 (patch)
treede69ce66dfbc6b4c0671782c975e7e1817da369a /sound/pci/emu10k1/emu10k1.c
parentb209c4dfcd960ab176d4746ab7dc442a3edb4575 (diff)
downloadop-kernel-dev-4f86f120d9d65b3a8f17e48dca1f991d861b5cd7.zip
op-kernel-dev-4f86f120d9d65b3a8f17e48dca1f991d861b5cd7.tar.gz
ALSA: emu10k1: don't update firmware during suspend/resume
Add a flag to suppress the update in emu1010_firmware_thread() during suspend/resume. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/emu10k1/emu10k1.c')
-rw-r--r--sound/pci/emu10k1/emu10k1.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/pci/emu10k1/emu10k1.c b/sound/pci/emu10k1/emu10k1.c
index b7c1875..a168138 100644
--- a/sound/pci/emu10k1/emu10k1.c
+++ b/sound/pci/emu10k1/emu10k1.c
@@ -215,6 +215,8 @@ static int snd_emu10k1_suspend(struct device *dev)
snd_power_change_state(card, SNDRV_CTL_POWER_D3hot);
+ emu->suspend = 1;
+
snd_pcm_suspend_all(emu->pcm);
snd_pcm_suspend_all(emu->pcm_mic);
snd_pcm_suspend_all(emu->pcm_efx);
@@ -260,6 +262,8 @@ static int snd_emu10k1_resume(struct device *dev)
if (emu->card_capabilities->ca0151_chip)
snd_p16v_resume(emu);
+ emu->suspend = 0;
+
snd_power_change_state(card, SNDRV_CTL_POWER_D0);
return 0;
}
OpenPOWER on IntegriCloud