Skip to content

Commit c7561cd

Browse files
committed
ALSA: PCI: Replace CONFIG_PM with CONFIG_PM_SLEEP
Otherwise we may get compile warnings due to unused functions. Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 7ccbde5 commit c7561cd

63 files changed

Lines changed: 135 additions & 135 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎include/sound/emu10k1.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1788,7 +1788,7 @@ struct snd_emu10k1 {
17881788
unsigned int efx_voices_mask[2];
17891789
unsigned int next_free_voice;
17901790

1791-
#ifdef CONFIG_PM
1791+
#ifdef CONFIG_PM_SLEEP
17921792
unsigned int *saved_ptr;
17931793
unsigned int *saved_gpr;
17941794
unsigned int *tram_val_saved;
@@ -1856,7 +1856,7 @@ unsigned short snd_emu10k1_ac97_read(struct snd_ac97 *ac97, unsigned short reg);
18561856
void snd_emu10k1_ac97_write(struct snd_ac97 *ac97, unsigned short reg, unsigned short data);
18571857
unsigned int snd_emu10k1_rate_to_pitch(unsigned int rate);
18581858

1859-
#ifdef CONFIG_PM
1859+
#ifdef CONFIG_PM_SLEEP
18601860
void snd_emu10k1_suspend_regs(struct snd_emu10k1 *emu);
18611861
void snd_emu10k1_resume_init(struct snd_emu10k1 *emu);
18621862
void snd_emu10k1_resume_regs(struct snd_emu10k1 *emu);

‎sound/pci/ali5451/ali5451.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ struct snd_ali {
270270
spinlock_t reg_lock;
271271
spinlock_t voice_alloc;
272272

273-
#ifdef CONFIG_PM
273+
#ifdef CONFIG_PM_SLEEP
274274
struct snd_ali_image *image;
275275
#endif
276276
};
@@ -1883,7 +1883,7 @@ static int __devinit snd_ali_mixer(struct snd_ali * codec)
18831883
return 0;
18841884
}
18851885

1886-
#ifdef CONFIG_PM
1886+
#ifdef CONFIG_PM_SLEEP
18871887
static int ali_suspend(struct device *dev)
18881888
{
18891889
struct pci_dev *pci = to_pci_dev(dev);
@@ -1989,7 +1989,7 @@ static SIMPLE_DEV_PM_OPS(ali_pm, ali_suspend, ali_resume);
19891989
#define ALI_PM_OPS &ali_pm
19901990
#else
19911991
#define ALI_PM_OPS NULL
1992-
#endif /* CONFIG_PM */
1992+
#endif /* CONFIG_PM_SLEEP */
19931993

19941994
static int snd_ali_free(struct snd_ali * codec)
19951995
{
@@ -2000,7 +2000,7 @@ static int snd_ali_free(struct snd_ali * codec)
20002000
if (codec->port)
20012001
pci_release_regions(codec->pci);
20022002
pci_disable_device(codec->pci);
2003-
#ifdef CONFIG_PM
2003+
#ifdef CONFIG_PM_SLEEP
20042004
kfree(codec->image);
20052005
#endif
20062006
pci_dev_put(codec->pci_m1533);
@@ -2232,7 +2232,7 @@ static int __devinit snd_ali_create(struct snd_card *card,
22322232
return err;
22332233
}
22342234

2235-
#ifdef CONFIG_PM
2235+
#ifdef CONFIG_PM_SLEEP
22362236
codec->image = kmalloc(sizeof(*codec->image), GFP_KERNEL);
22372237
if (!codec->image)
22382238
snd_printk(KERN_WARNING "can't allocate apm buffer\n");

‎sound/pci/als300.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ static int __devinit snd_als300_create(struct snd_card *card,
765765
return 0;
766766
}
767767

768-
#ifdef CONFIG_PM
768+
#ifdef CONFIG_PM_SLEEP
769769
static int snd_als300_suspend(struct device *dev)
770770
{
771771
struct pci_dev *pci = to_pci_dev(dev);

‎sound/pci/als4000.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -987,7 +987,7 @@ static void __devexit snd_card_als4000_remove(struct pci_dev *pci)
987987
pci_set_drvdata(pci, NULL);
988988
}
989989

990-
#ifdef CONFIG_PM
990+
#ifdef CONFIG_PM_SLEEP
991991
static int snd_als4000_suspend(struct device *dev)
992992
{
993993
struct pci_dev *pci = to_pci_dev(dev);
@@ -1040,7 +1040,7 @@ static SIMPLE_DEV_PM_OPS(snd_als4000_pm, snd_als4000_suspend, snd_als4000_resume
10401040
#define SND_ALS4000_PM_OPS &snd_als4000_pm
10411041
#else
10421042
#define SND_ALS4000_PM_OPS NULL
1043-
#endif /* CONFIG_PM */
1043+
#endif /* CONFIG_PM_SLEEP */
10441044

10451045
static struct pci_driver als4000_driver = {
10461046
.name = KBUILD_MODNAME,

‎sound/pci/asihpi/asihpi.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2968,7 +2968,7 @@ static struct pci_driver driver = {
29682968
.id_table = asihpi_pci_tbl,
29692969
.probe = snd_asihpi_probe,
29702970
.remove = __devexit_p(snd_asihpi_remove),
2971-
#ifdef CONFIG_PM
2971+
#ifdef CONFIG_PM_SLEEP
29722972
/* .suspend = snd_asihpi_suspend,
29732973
.resume = snd_asihpi_resume, */
29742974
#endif

‎sound/pci/atiixp.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ static int snd_atiixp_aclink_reset(struct atiixp *chip)
535535
return 0;
536536
}
537537

538-
#ifdef CONFIG_PM
538+
#ifdef CONFIG_PM_SLEEP
539539
static int snd_atiixp_aclink_down(struct atiixp *chip)
540540
{
541541
// if (atiixp_read(chip, MODEM_MIRROR) & 0x1) /* modem running, too? */
@@ -1458,7 +1458,7 @@ static int __devinit snd_atiixp_mixer_new(struct atiixp *chip, int clock,
14581458
}
14591459

14601460

1461-
#ifdef CONFIG_PM
1461+
#ifdef CONFIG_PM_SLEEP
14621462
/*
14631463
* power management
14641464
*/
@@ -1533,7 +1533,7 @@ static SIMPLE_DEV_PM_OPS(snd_atiixp_pm, snd_atiixp_suspend, snd_atiixp_resume);
15331533
#define SND_ATIIXP_PM_OPS &snd_atiixp_pm
15341534
#else
15351535
#define SND_ATIIXP_PM_OPS NULL
1536-
#endif /* CONFIG_PM */
1536+
#endif /* CONFIG_PM_SLEEP */
15371537

15381538

15391539
#ifdef CONFIG_PROC_FS

‎sound/pci/atiixp_modem.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ static int snd_atiixp_aclink_reset(struct atiixp_modem *chip)
511511
return 0;
512512
}
513513

514-
#ifdef CONFIG_PM
514+
#ifdef CONFIG_PM_SLEEP
515515
static int snd_atiixp_aclink_down(struct atiixp_modem *chip)
516516
{
517517
// if (atiixp_read(chip, MODEM_MIRROR) & 0x1) /* modem running, too? */
@@ -1113,7 +1113,7 @@ static int __devinit snd_atiixp_mixer_new(struct atiixp_modem *chip, int clock)
11131113
}
11141114

11151115

1116-
#ifdef CONFIG_PM
1116+
#ifdef CONFIG_PM_SLEEP
11171117
/*
11181118
* power management
11191119
*/
@@ -1169,7 +1169,7 @@ static SIMPLE_DEV_PM_OPS(snd_atiixp_pm, snd_atiixp_suspend, snd_atiixp_resume);
11691169
#define SND_ATIIXP_PM_OPS &snd_atiixp_pm
11701170
#else
11711171
#define SND_ATIIXP_PM_OPS NULL
1172-
#endif /* CONFIG_PM */
1172+
#endif /* CONFIG_PM_SLEEP */
11731173

11741174
#ifdef CONFIG_PROC_FS
11751175
/*

‎sound/pci/azt3328.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ struct snd_azf3328 {
365365
* CONFIG_PM register storage below, but that's slightly difficult. */
366366
u16 shadow_reg_ctrl_6AH;
367367

368-
#ifdef CONFIG_PM
368+
#ifdef CONFIG_PM_SLEEP
369369
/* register value containers for power management
370370
* Note: not always full I/O range preserved (similar to Win driver!) */
371371
u32 saved_regs_ctrl[AZF_ALIGN(AZF_IO_SIZE_CTRL_PM) / 4];
@@ -2729,7 +2729,7 @@ snd_azf3328_remove(struct pci_dev *pci)
27292729
snd_azf3328_dbgcallleave();
27302730
}
27312731

2732-
#ifdef CONFIG_PM
2732+
#ifdef CONFIG_PM_SLEEP
27332733
static inline void
27342734
snd_azf3328_suspend_regs(unsigned long io_addr, unsigned count, u32 *saved_regs)
27352735
{
@@ -2866,7 +2866,7 @@ static SIMPLE_DEV_PM_OPS(snd_azf3328_pm, snd_azf3328_suspend, snd_azf3328_resume
28662866
#define SND_AZF3328_PM_OPS &snd_azf3328_pm
28672867
#else
28682868
#define SND_AZF3328_PM_OPS NULL
2869-
#endif /* CONFIG_PM */
2869+
#endif /* CONFIG_PM_SLEEP */
28702870

28712871
static struct pci_driver azf3328_driver = {
28722872
.name = KBUILD_MODNAME,

‎sound/pci/ca0106/ca0106.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ struct snd_ca0106 {
710710

711711
u16 spi_dac_reg[16];
712712

713-
#ifdef CONFIG_PM
713+
#ifdef CONFIG_PM_SLEEP
714714
#define NUM_SAVED_VOLUMES 9
715715
unsigned int saved_vol[NUM_SAVED_VOLUMES];
716716
#endif
@@ -733,7 +733,7 @@ int snd_ca0106_i2c_write(struct snd_ca0106 *emu, u32 reg, u32 value);
733733
int snd_ca0106_spi_write(struct snd_ca0106 * emu,
734734
unsigned int data);
735735

736-
#ifdef CONFIG_PM
736+
#ifdef CONFIG_PM_SLEEP
737737
void snd_ca0106_mixer_suspend(struct snd_ca0106 *chip);
738738
void snd_ca0106_mixer_resume(struct snd_ca0106 *chip);
739739
#else

‎sound/pci/ca0106/ca0106_main.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1871,7 +1871,7 @@ static void __devexit snd_ca0106_remove(struct pci_dev *pci)
18711871
pci_set_drvdata(pci, NULL);
18721872
}
18731873

1874-
#ifdef CONFIG_PM
1874+
#ifdef CONFIG_PM_SLEEP
18751875
static int snd_ca0106_suspend(struct device *dev)
18761876
{
18771877
struct pci_dev *pci = to_pci_dev(dev);

0 commit comments

Comments
 (0)