summaryrefslogtreecommitdiffstats
path: root/sound/pci/cs46xx
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2015-01-11 05:26:48 -0500
committerTakashi Iwai <tiwai@suse.de>2015-01-11 05:26:48 -0500
commit9e5947465d72ef1b3a88104474ab2adf78837220 (patch)
tree2e71fa8e496b8e047e5a90e81b685ed1f8d3ed7f /sound/pci/cs46xx
parent624afe4dc9a08992b200046dfe8a61f19bab74ab (diff)
parent3e41c9b5a1ca2acfd9306a918fe3903f02eb89ca (diff)
Merge branch 'topic/pci-cleanup' into for-next
Diffstat (limited to 'sound/pci/cs46xx')
-rw-r--r--sound/pci/cs46xx/cs46xx_lib.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/sound/pci/cs46xx/cs46xx_lib.c b/sound/pci/cs46xx/cs46xx_lib.c
index 128bbfe80aa7..fb3abb2203cd 100644
--- a/sound/pci/cs46xx/cs46xx_lib.c
+++ b/sound/pci/cs46xx/cs46xx_lib.c
@@ -3774,7 +3774,6 @@ static unsigned int saved_regs[] = {
3774 3774
3775static int snd_cs46xx_suspend(struct device *dev) 3775static int snd_cs46xx_suspend(struct device *dev)
3776{ 3776{
3777 struct pci_dev *pci = to_pci_dev(dev);
3778 struct snd_card *card = dev_get_drvdata(dev); 3777 struct snd_card *card = dev_get_drvdata(dev);
3779 struct snd_cs46xx *chip = card->private_data; 3778 struct snd_cs46xx *chip = card->private_data;
3780 int i, amp_saved; 3779 int i, amp_saved;
@@ -3799,16 +3798,11 @@ static int snd_cs46xx_suspend(struct device *dev)
3799 /* disable CLKRUN */ 3798 /* disable CLKRUN */
3800 chip->active_ctrl(chip, -chip->amplifier); 3799 chip->active_ctrl(chip, -chip->amplifier);
3801 chip->amplifier = amp_saved; /* restore the status */ 3800 chip->amplifier = amp_saved; /* restore the status */
3802
3803 pci_disable_device(pci);
3804 pci_save_state(pci);
3805 pci_set_power_state(pci, PCI_D3hot);
3806 return 0; 3801 return 0;
3807} 3802}
3808 3803
3809static int snd_cs46xx_resume(struct device *dev) 3804static int snd_cs46xx_resume(struct device *dev)
3810{ 3805{
3811 struct pci_dev *pci = to_pci_dev(dev);
3812 struct snd_card *card = dev_get_drvdata(dev); 3806 struct snd_card *card = dev_get_drvdata(dev);
3813 struct snd_cs46xx *chip = card->private_data; 3807 struct snd_cs46xx *chip = card->private_data;
3814 int amp_saved; 3808 int amp_saved;
@@ -3817,15 +3811,6 @@ static int snd_cs46xx_resume(struct device *dev)
3817#endif 3811#endif
3818 unsigned int tmp; 3812 unsigned int tmp;
3819 3813
3820 pci_set_power_state(pci, PCI_D0);
3821 pci_restore_state(pci);
3822 if (pci_enable_device(pci) < 0) {
3823 dev_err(dev, "pci_enable_device failed, disabling device\n");
3824 snd_card_disconnect(card);
3825 return -EIO;
3826 }
3827 pci_set_master(pci);
3828
3829 amp_saved = chip->amplifier; 3814 amp_saved = chip->amplifier;
3830 chip->amplifier = 0; 3815 chip->amplifier = 0;
3831 chip->active_ctrl(chip, 1); /* force to on */ 3816 chip->active_ctrl(chip, 1); /* force to on */