diff options
author | Takashi Iwai <tiwai@suse.de> | 2012-08-14 12:12:04 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-08-14 12:12:04 -0400 |
commit | c7561cd80469f2fe4a6be0984db57832ee7f2a3b (patch) | |
tree | 02ce843b7caed4d41ef6d17450e6b05b96c94952 /sound/pci/cs46xx | |
parent | 7ccbde57ce312ff1388c2990699f8863280808ac (diff) |
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>
Diffstat (limited to 'sound/pci/cs46xx')
-rw-r--r-- | sound/pci/cs46xx/cs46xx.c | 2 | ||||
-rw-r--r-- | sound/pci/cs46xx/cs46xx.h | 2 | ||||
-rw-r--r-- | sound/pci/cs46xx/cs46xx_lib.c | 8 | ||||
-rw-r--r-- | sound/pci/cs46xx/cs46xx_lib.h | 2 | ||||
-rw-r--r-- | sound/pci/cs46xx/dsp_spos.c | 8 | ||||
-rw-r--r-- | sound/pci/cs46xx/dsp_spos_scb_lib.c | 2 |
6 files changed, 12 insertions, 12 deletions
diff --git a/sound/pci/cs46xx/cs46xx.c b/sound/pci/cs46xx/cs46xx.c index 1e007c736a8b..575bed0836ff 100644 --- a/sound/pci/cs46xx/cs46xx.c +++ b/sound/pci/cs46xx/cs46xx.c | |||
@@ -166,7 +166,7 @@ static struct pci_driver cs46xx_driver = { | |||
166 | .id_table = snd_cs46xx_ids, | 166 | .id_table = snd_cs46xx_ids, |
167 | .probe = snd_card_cs46xx_probe, | 167 | .probe = snd_card_cs46xx_probe, |
168 | .remove = __devexit_p(snd_card_cs46xx_remove), | 168 | .remove = __devexit_p(snd_card_cs46xx_remove), |
169 | #ifdef CONFIG_PM | 169 | #ifdef CONFIG_PM_SLEEP |
170 | .driver = { | 170 | .driver = { |
171 | .pm = &snd_cs46xx_pm, | 171 | .pm = &snd_cs46xx_pm, |
172 | }, | 172 | }, |
diff --git a/sound/pci/cs46xx/cs46xx.h b/sound/pci/cs46xx/cs46xx.h index 29d8a8da1ba7..fc339ef0a0ae 100644 --- a/sound/pci/cs46xx/cs46xx.h +++ b/sound/pci/cs46xx/cs46xx.h | |||
@@ -1721,7 +1721,7 @@ struct snd_cs46xx { | |||
1721 | unsigned int play_ctl; | 1721 | unsigned int play_ctl; |
1722 | #endif | 1722 | #endif |
1723 | 1723 | ||
1724 | #ifdef CONFIG_PM | 1724 | #ifdef CONFIG_PM_SLEEP |
1725 | u32 *saved_regs; | 1725 | u32 *saved_regs; |
1726 | #endif | 1726 | #endif |
1727 | }; | 1727 | }; |
diff --git a/sound/pci/cs46xx/cs46xx_lib.c b/sound/pci/cs46xx/cs46xx_lib.c index f75f5ffdfdfb..6b111d0929b1 100644 --- a/sound/pci/cs46xx/cs46xx_lib.c +++ b/sound/pci/cs46xx/cs46xx_lib.c | |||
@@ -2797,7 +2797,7 @@ static int snd_cs46xx_free(struct snd_cs46xx *chip) | |||
2797 | } | 2797 | } |
2798 | #endif | 2798 | #endif |
2799 | 2799 | ||
2800 | #ifdef CONFIG_PM | 2800 | #ifdef CONFIG_PM_SLEEP |
2801 | kfree(chip->saved_regs); | 2801 | kfree(chip->saved_regs); |
2802 | #endif | 2802 | #endif |
2803 | 2803 | ||
@@ -3590,7 +3590,7 @@ static struct cs_card_type __devinitdata cards[] = { | |||
3590 | /* | 3590 | /* |
3591 | * APM support | 3591 | * APM support |
3592 | */ | 3592 | */ |
3593 | #ifdef CONFIG_PM | 3593 | #ifdef CONFIG_PM_SLEEP |
3594 | static unsigned int saved_regs[] = { | 3594 | static unsigned int saved_regs[] = { |
3595 | BA0_ACOSV, | 3595 | BA0_ACOSV, |
3596 | /*BA0_ASER_FADDR,*/ | 3596 | /*BA0_ASER_FADDR,*/ |
@@ -3711,7 +3711,7 @@ static int snd_cs46xx_resume(struct device *dev) | |||
3711 | } | 3711 | } |
3712 | 3712 | ||
3713 | SIMPLE_DEV_PM_OPS(snd_cs46xx_pm, snd_cs46xx_suspend, snd_cs46xx_resume); | 3713 | SIMPLE_DEV_PM_OPS(snd_cs46xx_pm, snd_cs46xx_suspend, snd_cs46xx_resume); |
3714 | #endif /* CONFIG_PM */ | 3714 | #endif /* CONFIG_PM_SLEEP */ |
3715 | 3715 | ||
3716 | 3716 | ||
3717 | /* | 3717 | /* |
@@ -3868,7 +3868,7 @@ int __devinit snd_cs46xx_create(struct snd_card *card, | |||
3868 | 3868 | ||
3869 | snd_cs46xx_proc_init(card, chip); | 3869 | snd_cs46xx_proc_init(card, chip); |
3870 | 3870 | ||
3871 | #ifdef CONFIG_PM | 3871 | #ifdef CONFIG_PM_SLEEP |
3872 | chip->saved_regs = kmalloc(sizeof(*chip->saved_regs) * | 3872 | chip->saved_regs = kmalloc(sizeof(*chip->saved_regs) * |
3873 | ARRAY_SIZE(saved_regs), GFP_KERNEL); | 3873 | ARRAY_SIZE(saved_regs), GFP_KERNEL); |
3874 | if (!chip->saved_regs) { | 3874 | if (!chip->saved_regs) { |
diff --git a/sound/pci/cs46xx/cs46xx_lib.h b/sound/pci/cs46xx/cs46xx_lib.h index b5189495d58a..86f14620f817 100644 --- a/sound/pci/cs46xx/cs46xx_lib.h +++ b/sound/pci/cs46xx/cs46xx_lib.h | |||
@@ -90,7 +90,7 @@ static inline unsigned int snd_cs46xx_peekBA0(struct snd_cs46xx *chip, unsigned | |||
90 | struct dsp_spos_instance *cs46xx_dsp_spos_create (struct snd_cs46xx * chip); | 90 | struct dsp_spos_instance *cs46xx_dsp_spos_create (struct snd_cs46xx * chip); |
91 | void cs46xx_dsp_spos_destroy (struct snd_cs46xx * chip); | 91 | void cs46xx_dsp_spos_destroy (struct snd_cs46xx * chip); |
92 | int cs46xx_dsp_load_module (struct snd_cs46xx * chip, struct dsp_module_desc * module); | 92 | int cs46xx_dsp_load_module (struct snd_cs46xx * chip, struct dsp_module_desc * module); |
93 | #ifdef CONFIG_PM | 93 | #ifdef CONFIG_PM_SLEEP |
94 | int cs46xx_dsp_resume(struct snd_cs46xx * chip); | 94 | int cs46xx_dsp_resume(struct snd_cs46xx * chip); |
95 | #endif | 95 | #endif |
96 | struct dsp_symbol_entry *cs46xx_dsp_lookup_symbol (struct snd_cs46xx * chip, char * symbol_name, | 96 | struct dsp_symbol_entry *cs46xx_dsp_lookup_symbol (struct snd_cs46xx * chip, char * symbol_name, |
diff --git a/sound/pci/cs46xx/dsp_spos.c b/sound/pci/cs46xx/dsp_spos.c index 56fec0bc0efb..1686b4f4c44f 100644 --- a/sound/pci/cs46xx/dsp_spos.c +++ b/sound/pci/cs46xx/dsp_spos.c | |||
@@ -287,7 +287,7 @@ void cs46xx_dsp_spos_destroy (struct snd_cs46xx * chip) | |||
287 | if (ins->scbs[i].deleted) continue; | 287 | if (ins->scbs[i].deleted) continue; |
288 | 288 | ||
289 | cs46xx_dsp_proc_free_scb_desc ( (ins->scbs + i) ); | 289 | cs46xx_dsp_proc_free_scb_desc ( (ins->scbs + i) ); |
290 | #ifdef CONFIG_PM | 290 | #ifdef CONFIG_PM_SLEEP |
291 | kfree(ins->scbs[i].data); | 291 | kfree(ins->scbs[i].data); |
292 | #endif | 292 | #endif |
293 | } | 293 | } |
@@ -1019,7 +1019,7 @@ cs46xx_dsp_create_scb (struct snd_cs46xx *chip, char * name, u32 * scb_data, u32 | |||
1019 | { | 1019 | { |
1020 | struct dsp_scb_descriptor * desc; | 1020 | struct dsp_scb_descriptor * desc; |
1021 | 1021 | ||
1022 | #ifdef CONFIG_PM | 1022 | #ifdef CONFIG_PM_SLEEP |
1023 | /* copy the data for resume */ | 1023 | /* copy the data for resume */ |
1024 | scb_data = kmemdup(scb_data, SCB_BYTES, GFP_KERNEL); | 1024 | scb_data = kmemdup(scb_data, SCB_BYTES, GFP_KERNEL); |
1025 | if (!scb_data) | 1025 | if (!scb_data) |
@@ -1032,7 +1032,7 @@ cs46xx_dsp_create_scb (struct snd_cs46xx *chip, char * name, u32 * scb_data, u32 | |||
1032 | _dsp_create_scb(chip,scb_data,dest); | 1032 | _dsp_create_scb(chip,scb_data,dest); |
1033 | } else { | 1033 | } else { |
1034 | snd_printk(KERN_ERR "dsp_spos: failed to map SCB\n"); | 1034 | snd_printk(KERN_ERR "dsp_spos: failed to map SCB\n"); |
1035 | #ifdef CONFIG_PM | 1035 | #ifdef CONFIG_PM_SLEEP |
1036 | kfree(scb_data); | 1036 | kfree(scb_data); |
1037 | #endif | 1037 | #endif |
1038 | } | 1038 | } |
@@ -1937,7 +1937,7 @@ int cs46xx_dsp_set_iec958_volume (struct snd_cs46xx * chip, u16 left, u16 right) | |||
1937 | return 0; | 1937 | return 0; |
1938 | } | 1938 | } |
1939 | 1939 | ||
1940 | #ifdef CONFIG_PM | 1940 | #ifdef CONFIG_PM_SLEEP |
1941 | int cs46xx_dsp_resume(struct snd_cs46xx * chip) | 1941 | int cs46xx_dsp_resume(struct snd_cs46xx * chip) |
1942 | { | 1942 | { |
1943 | struct dsp_spos_instance * ins = chip->dsp_spos_instance; | 1943 | struct dsp_spos_instance * ins = chip->dsp_spos_instance; |
diff --git a/sound/pci/cs46xx/dsp_spos_scb_lib.c b/sound/pci/cs46xx/dsp_spos_scb_lib.c index c2c695b07f8c..409e8764fbeb 100644 --- a/sound/pci/cs46xx/dsp_spos_scb_lib.c +++ b/sound/pci/cs46xx/dsp_spos_scb_lib.c | |||
@@ -203,7 +203,7 @@ void cs46xx_dsp_remove_scb (struct snd_cs46xx *chip, struct dsp_scb_descriptor * | |||
203 | remove_symbol (chip,scb->scb_symbol); | 203 | remove_symbol (chip,scb->scb_symbol); |
204 | 204 | ||
205 | ins->scbs[scb->index].deleted = 1; | 205 | ins->scbs[scb->index].deleted = 1; |
206 | #ifdef CONFIG_PM | 206 | #ifdef CONFIG_PM_SLEEP |
207 | kfree(ins->scbs[scb->index].data); | 207 | kfree(ins->scbs[scb->index].data); |
208 | ins->scbs[scb->index].data = NULL; | 208 | ins->scbs[scb->index].data = NULL; |
209 | #endif | 209 | #endif |