ALSA: pci: trivial: replace numeric with standard PM state macros
authorYijing Wang <wangyijing@huawei.com>
Thu, 27 Jun 2013 12:55:11 +0000 (20:55 +0800)
committerTakashi Iwai <tiwai@suse.de>
Thu, 27 Jun 2013 13:04:32 +0000 (15:04 +0200)
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>
sound/pci/cs4281.c
sound/pci/ens1370.c
sound/pci/ymfpci/ymfpci_main.c

index 64659facd1554cc66e50cced02bfd20c4da649cc..1dc793e742d79845b3e92d6da1ac204f971a6ef8 100644 (file)
@@ -1312,7 +1312,7 @@ static int snd_cs4281_free(struct cs4281 *chip)
        /* Sound System Power Management - Turn Everything OFF */
        snd_cs4281_pokeBA0(chip, BA0_SSPM, 0);
        /* PCI interface - D3 state */
-       pci_set_power_state(chip->pci, 3);
+       pci_set_power_state(chip->pci, PCI_D3hot);
 
        if (chip->irq >= 0)
                free_irq(chip->irq, chip);
index 372f8ea91fcaa0f37132e64671ca47235bab3a69..ca8929b9a5d65ce3b89421cd03f83e432203ef89 100644 (file)
@@ -1939,7 +1939,7 @@ static int snd_ensoniq_free(struct ensoniq *ensoniq)
 #endif
        if (ensoniq->irq >= 0)
                synchronize_irq(ensoniq->irq);
-       pci_set_power_state(ensoniq->pci, 3);
+       pci_set_power_state(ensoniq->pci, PCI_D3hot);
       __hw_end:
 #ifdef CHIP1370
        if (ensoniq->dma_bug.area)
index 22056c50fe39fde10184856c33e14d20bf1743a1..d591c154fc58fc4a9aeb3a5407e500b24d7e4996 100644 (file)
@@ -2258,7 +2258,7 @@ static int snd_ymfpci_free(struct snd_ymfpci *chip)
        /* FIXME: temporarily disabled, otherwise we cannot fire up
         * the chip again unless reboot.  ACPI bug?
         */
-       pci_set_power_state(chip->pci, 3);
+       pci_set_power_state(chip->pci, PCI_D3hot);
 #endif
 
 #ifdef CONFIG_PM_SLEEP