aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci
diff options
context:
space:
mode:
authorYijing Wang <wangyijing@huawei.com>2013-06-27 08:55:11 -0400
committerTakashi Iwai <tiwai@suse.de>2013-06-27 09:04:32 -0400
commitdb10e7fbbc836fb66d4500c64c1960940cfad2b0 (patch)
tree54b2bb67b0da562b0fdfeb949531fc4b1b62fbf6 /sound/pci
parentbd5fe738e388ceaa32e5171481e0d3ec59f0ccfe (diff)
ALSA: pci: trivial: replace numeric with standard PM state macros
Use standard PM state macros PCI_Dx instead of numeric 0/1/2.. Signed-off-by: Yijing Wang <wangyijing@huawei.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r--sound/pci/cs4281.c2
-rw-r--r--sound/pci/ens1370.c2
-rw-r--r--sound/pci/ymfpci/ymfpci_main.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/sound/pci/cs4281.c b/sound/pci/cs4281.c
index 64659facd155..1dc793e742d7 100644
--- a/sound/pci/cs4281.c
+++ b/sound/pci/cs4281.c
@@ -1312,7 +1312,7 @@ static int snd_cs4281_free(struct cs4281 *chip)
1312 /* Sound System Power Management - Turn Everything OFF */ 1312 /* Sound System Power Management - Turn Everything OFF */
1313 snd_cs4281_pokeBA0(chip, BA0_SSPM, 0); 1313 snd_cs4281_pokeBA0(chip, BA0_SSPM, 0);
1314 /* PCI interface - D3 state */ 1314 /* PCI interface - D3 state */
1315 pci_set_power_state(chip->pci, 3); 1315 pci_set_power_state(chip->pci, PCI_D3hot);
1316 1316
1317 if (chip->irq >= 0) 1317 if (chip->irq >= 0)
1318 free_irq(chip->irq, chip); 1318 free_irq(chip->irq, chip);
diff --git a/sound/pci/ens1370.c b/sound/pci/ens1370.c
index 372f8ea91fca..ca8929b9a5d6 100644
--- a/sound/pci/ens1370.c
+++ b/sound/pci/ens1370.c
@@ -1939,7 +1939,7 @@ static int snd_ensoniq_free(struct ensoniq *ensoniq)
1939#endif 1939#endif
1940 if (ensoniq->irq >= 0) 1940 if (ensoniq->irq >= 0)
1941 synchronize_irq(ensoniq->irq); 1941 synchronize_irq(ensoniq->irq);
1942 pci_set_power_state(ensoniq->pci, 3); 1942 pci_set_power_state(ensoniq->pci, PCI_D3hot);
1943 __hw_end: 1943 __hw_end:
1944#ifdef CHIP1370 1944#ifdef CHIP1370
1945 if (ensoniq->dma_bug.area) 1945 if (ensoniq->dma_bug.area)
diff --git a/sound/pci/ymfpci/ymfpci_main.c b/sound/pci/ymfpci/ymfpci_main.c
index 22056c50fe39..d591c154fc58 100644
--- a/sound/pci/ymfpci/ymfpci_main.c
+++ b/sound/pci/ymfpci/ymfpci_main.c
@@ -2258,7 +2258,7 @@ static int snd_ymfpci_free(struct snd_ymfpci *chip)
2258 /* FIXME: temporarily disabled, otherwise we cannot fire up 2258 /* FIXME: temporarily disabled, otherwise we cannot fire up
2259 * the chip again unless reboot. ACPI bug? 2259 * the chip again unless reboot. ACPI bug?
2260 */ 2260 */
2261 pci_set_power_state(chip->pci, 3); 2261 pci_set_power_state(chip->pci, PCI_D3hot);
2262#endif 2262#endif
2263 2263
2264#ifdef CONFIG_PM_SLEEP 2264#ifdef CONFIG_PM_SLEEP