diff options
Diffstat (limited to 'sound')
-rw-r--r-- | sound/arm/Makefile | 16 | ||||
-rw-r--r-- | sound/arm/aaci.c | 4 | ||||
-rw-r--r-- | sound/arm/aaci.h | 6 | ||||
-rw-r--r-- | sound/core/memory.c | 14 | ||||
-rw-r--r-- | sound/isa/Kconfig | 19 | ||||
-rw-r--r-- | sound/oss/os.h | 3 | ||||
-rw-r--r-- | sound/pci/ali5451/ali5451.c | 2 | ||||
-rw-r--r-- | sound/pci/atiixp.c | 4 |
8 files changed, 39 insertions, 29 deletions
diff --git a/sound/arm/Makefile b/sound/arm/Makefile index 103f136926d9..4ef6dd00c6ee 100644 --- a/sound/arm/Makefile +++ b/sound/arm/Makefile | |||
@@ -2,12 +2,14 @@ | |||
2 | # Makefile for ALSA | 2 | # Makefile for ALSA |
3 | # | 3 | # |
4 | 4 | ||
5 | snd-sa11xx-uda1341-objs := sa11xx-uda1341.o | ||
6 | snd-aaci-objs := aaci.o devdma.o | ||
7 | snd-pxa2xx-pcm-objs := pxa2xx-pcm.o | ||
8 | snd-pxa2xx-ac97-objs := pxa2xx-ac97.o | ||
9 | |||
10 | obj-$(CONFIG_SND_SA11XX_UDA1341) += snd-sa11xx-uda1341.o | 5 | obj-$(CONFIG_SND_SA11XX_UDA1341) += snd-sa11xx-uda1341.o |
6 | snd-sa11xx-uda1341-objs := sa11xx-uda1341.o | ||
7 | |||
11 | obj-$(CONFIG_SND_ARMAACI) += snd-aaci.o | 8 | obj-$(CONFIG_SND_ARMAACI) += snd-aaci.o |
12 | obj-$(CONFIG_SND_PXA2XX_PCM) += snd-pxa2xx-pcm.o | 9 | snd-aaci-objs := aaci.o devdma.o |
13 | obj-$(CONFIG_SND_PXA2XX_AC97) += snd-pxa2xx-ac97.o | 10 | |
11 | obj-$(CONFIG_SND_PXA2XX_PCM) += snd-pxa2xx-pcm.o | ||
12 | snd-pxa2xx-pcm-objs := pxa2xx-pcm.o | ||
13 | |||
14 | obj-$(CONFIG_SND_PXA2XX_AC97) += snd-pxa2xx-ac97.o | ||
15 | snd-pxa2xx-ac97-objs := pxa2xx-ac97.o | ||
diff --git a/sound/arm/aaci.c b/sound/arm/aaci.c index 08cc3ddca96f..98877030d579 100644 --- a/sound/arm/aaci.c +++ b/sound/arm/aaci.c | |||
@@ -821,7 +821,7 @@ static int __devinit aaci_init_pcm(struct aaci *aaci) | |||
821 | 821 | ||
822 | static unsigned int __devinit aaci_size_fifo(struct aaci *aaci) | 822 | static unsigned int __devinit aaci_size_fifo(struct aaci *aaci) |
823 | { | 823 | { |
824 | void *base = aaci->base + AACI_CSCH1; | 824 | void __iomem *base = aaci->base + AACI_CSCH1; |
825 | int i; | 825 | int i; |
826 | 826 | ||
827 | writel(TXCR_FEN | TXCR_TSZ16 | TXCR_TXEN, base + AACI_TXCR); | 827 | writel(TXCR_FEN | TXCR_TSZ16 | TXCR_TXEN, base + AACI_TXCR); |
@@ -877,7 +877,7 @@ static int __devinit aaci_probe(struct amba_device *dev, void *id) | |||
877 | aaci->playback.fifo = aaci->base + AACI_DR1; | 877 | aaci->playback.fifo = aaci->base + AACI_DR1; |
878 | 878 | ||
879 | for (i = 0; i < 4; i++) { | 879 | for (i = 0; i < 4; i++) { |
880 | void *base = aaci->base + i * 0x14; | 880 | void __iomem *base = aaci->base + i * 0x14; |
881 | 881 | ||
882 | writel(0, base + AACI_IE); | 882 | writel(0, base + AACI_IE); |
883 | writel(0, base + AACI_TXCR); | 883 | writel(0, base + AACI_TXCR); |
diff --git a/sound/arm/aaci.h b/sound/arm/aaci.h index d752e6426894..b2f969bc7845 100644 --- a/sound/arm/aaci.h +++ b/sound/arm/aaci.h | |||
@@ -200,8 +200,8 @@ | |||
200 | 200 | ||
201 | 201 | ||
202 | struct aaci_runtime { | 202 | struct aaci_runtime { |
203 | void *base; | 203 | void __iomem *base; |
204 | void *fifo; | 204 | void __iomem *fifo; |
205 | 205 | ||
206 | struct ac97_pcm *pcm; | 206 | struct ac97_pcm *pcm; |
207 | int pcm_open; | 207 | int pcm_open; |
@@ -223,7 +223,7 @@ struct aaci_runtime { | |||
223 | struct aaci { | 223 | struct aaci { |
224 | struct amba_device *dev; | 224 | struct amba_device *dev; |
225 | snd_card_t *card; | 225 | snd_card_t *card; |
226 | void *base; | 226 | void __iomem *base; |
227 | unsigned int fifosize; | 227 | unsigned int fifosize; |
228 | 228 | ||
229 | /* AC'97 */ | 229 | /* AC'97 */ |
diff --git a/sound/core/memory.c b/sound/core/memory.c index 1622893d00a2..291b4769bde3 100644 --- a/sound/core/memory.c +++ b/sound/core/memory.c | |||
@@ -116,15 +116,21 @@ void *snd_hidden_kmalloc(size_t size, unsigned int __nocast flags) | |||
116 | return _snd_kmalloc(size, flags); | 116 | return _snd_kmalloc(size, flags); |
117 | } | 117 | } |
118 | 118 | ||
119 | void *snd_hidden_kzalloc(size_t size, unsigned int __nocast flags) | ||
120 | { | ||
121 | void *ret = _snd_kmalloc(size, flags); | ||
122 | if (ret) | ||
123 | memset(ret, 0, size); | ||
124 | return ret; | ||
125 | } | ||
126 | EXPORT_SYMBOL(snd_hidden_kzalloc); | ||
127 | |||
119 | void *snd_hidden_kcalloc(size_t n, size_t size, unsigned int __nocast flags) | 128 | void *snd_hidden_kcalloc(size_t n, size_t size, unsigned int __nocast flags) |
120 | { | 129 | { |
121 | void *ret = NULL; | 130 | void *ret = NULL; |
122 | if (n != 0 && size > INT_MAX / n) | 131 | if (n != 0 && size > INT_MAX / n) |
123 | return ret; | 132 | return ret; |
124 | ret = _snd_kmalloc(n * size, flags); | 133 | return snd_hidden_kzalloc(n * size, flags); |
125 | if (ret) | ||
126 | memset(ret, 0, n * size); | ||
127 | return ret; | ||
128 | } | 134 | } |
129 | 135 | ||
130 | void snd_hidden_kfree(const void *obj) | 136 | void snd_hidden_kfree(const void *obj) |
diff --git a/sound/isa/Kconfig b/sound/isa/Kconfig index be4ea60a3679..5c3948311528 100644 --- a/sound/isa/Kconfig +++ b/sound/isa/Kconfig | |||
@@ -15,7 +15,8 @@ config SND_CS4231_LIB | |||
15 | 15 | ||
16 | config SND_AD1816A | 16 | config SND_AD1816A |
17 | tristate "Analog Devices SoundPort AD1816A" | 17 | tristate "Analog Devices SoundPort AD1816A" |
18 | depends on SND && ISAPNP | 18 | depends on SND && PNP && ISA |
19 | select ISAPNP | ||
19 | select SND_OPL3_LIB | 20 | select SND_OPL3_LIB |
20 | select SND_MPU401_UART | 21 | select SND_MPU401_UART |
21 | select SND_PCM | 22 | select SND_PCM |
@@ -80,7 +81,8 @@ config SND_CS4236 | |||
80 | 81 | ||
81 | config SND_ES968 | 82 | config SND_ES968 |
82 | tristate "Generic ESS ES968 driver" | 83 | tristate "Generic ESS ES968 driver" |
83 | depends on SND && ISAPNP | 84 | depends on SND && PNP && ISA |
85 | select ISAPNP | ||
84 | select SND_MPU401_UART | 86 | select SND_MPU401_UART |
85 | select SND_PCM | 87 | select SND_PCM |
86 | help | 88 | help |
@@ -160,7 +162,7 @@ config SND_GUSMAX | |||
160 | 162 | ||
161 | config SND_INTERWAVE | 163 | config SND_INTERWAVE |
162 | tristate "AMD InterWave, Gravis UltraSound PnP" | 164 | tristate "AMD InterWave, Gravis UltraSound PnP" |
163 | depends on SND | 165 | depends on SND && PNP && ISA |
164 | select SND_RAWMIDI | 166 | select SND_RAWMIDI |
165 | select SND_CS4231_LIB | 167 | select SND_CS4231_LIB |
166 | select SND_GUS_SYNTH | 168 | select SND_GUS_SYNTH |
@@ -175,7 +177,7 @@ config SND_INTERWAVE | |||
175 | 177 | ||
176 | config SND_INTERWAVE_STB | 178 | config SND_INTERWAVE_STB |
177 | tristate "AMD InterWave + TEA6330T (UltraSound 32-Pro)" | 179 | tristate "AMD InterWave + TEA6330T (UltraSound 32-Pro)" |
178 | depends on SND | 180 | depends on SND && PNP && ISA |
179 | select SND_RAWMIDI | 181 | select SND_RAWMIDI |
180 | select SND_CS4231_LIB | 182 | select SND_CS4231_LIB |
181 | select SND_GUS_SYNTH | 183 | select SND_GUS_SYNTH |
@@ -291,7 +293,8 @@ config SND_WAVEFRONT | |||
291 | 293 | ||
292 | config SND_ALS100 | 294 | config SND_ALS100 |
293 | tristate "Avance Logic ALS100/ALS120" | 295 | tristate "Avance Logic ALS100/ALS120" |
294 | depends on SND && ISAPNP | 296 | depends on SND && PNP && ISA |
297 | select ISAPNP | ||
295 | select SND_OPL3_LIB | 298 | select SND_OPL3_LIB |
296 | select SND_MPU401_UART | 299 | select SND_MPU401_UART |
297 | select SND_PCM | 300 | select SND_PCM |
@@ -304,7 +307,8 @@ config SND_ALS100 | |||
304 | 307 | ||
305 | config SND_AZT2320 | 308 | config SND_AZT2320 |
306 | tristate "Aztech Systems AZT2320" | 309 | tristate "Aztech Systems AZT2320" |
307 | depends on SND && ISAPNP | 310 | depends on SND && PNP && ISA |
311 | select ISAPNP | ||
308 | select SND_OPL3_LIB | 312 | select SND_OPL3_LIB |
309 | select SND_MPU401_UART | 313 | select SND_MPU401_UART |
310 | select SND_CS4231_LIB | 314 | select SND_CS4231_LIB |
@@ -328,7 +332,8 @@ config SND_CMI8330 | |||
328 | 332 | ||
329 | config SND_DT019X | 333 | config SND_DT019X |
330 | tristate "Diamond Technologies DT-019X, Avance Logic ALS-007" | 334 | tristate "Diamond Technologies DT-019X, Avance Logic ALS-007" |
331 | depends on SND && ISAPNP | 335 | depends on SND && PNP && ISA |
336 | select ISAPNP | ||
332 | select SND_OPL3_LIB | 337 | select SND_OPL3_LIB |
333 | select SND_MPU401_UART | 338 | select SND_MPU401_UART |
334 | select SND_PCM | 339 | select SND_PCM |
diff --git a/sound/oss/os.h b/sound/oss/os.h index d6b96297835c..80dce329cc3a 100644 --- a/sound/oss/os.h +++ b/sound/oss/os.h | |||
@@ -19,9 +19,6 @@ | |||
19 | #include <linux/ioport.h> | 19 | #include <linux/ioport.h> |
20 | #include <asm/page.h> | 20 | #include <asm/page.h> |
21 | #include <asm/system.h> | 21 | #include <asm/system.h> |
22 | #ifdef __alpha__ | ||
23 | #include <asm/segment.h> | ||
24 | #endif | ||
25 | #include <linux/vmalloc.h> | 22 | #include <linux/vmalloc.h> |
26 | #include <asm/uaccess.h> | 23 | #include <asm/uaccess.h> |
27 | #include <linux/poll.h> | 24 | #include <linux/poll.h> |
diff --git a/sound/pci/ali5451/ali5451.c b/sound/pci/ali5451/ali5451.c index ce6c9fadb594..4943299cf137 100644 --- a/sound/pci/ali5451/ali5451.c +++ b/sound/pci/ali5451/ali5451.c | |||
@@ -2249,7 +2249,7 @@ static int __devinit snd_ali_create(snd_card_t * card, | |||
2249 | return -ENXIO; | 2249 | return -ENXIO; |
2250 | } | 2250 | } |
2251 | 2251 | ||
2252 | if ((codec = kcalloc(1, sizeof(*codec), GFP_KERNEL)) == NULL) { | 2252 | if ((codec = kzalloc(sizeof(*codec), GFP_KERNEL)) == NULL) { |
2253 | pci_disable_device(pci); | 2253 | pci_disable_device(pci); |
2254 | return -ENOMEM; | 2254 | return -ENOMEM; |
2255 | } | 2255 | } |
diff --git a/sound/pci/atiixp.c b/sound/pci/atiixp.c index 904d17394e1c..188df085b7ee 100644 --- a/sound/pci/atiixp.c +++ b/sound/pci/atiixp.c | |||
@@ -1427,7 +1427,7 @@ static int snd_atiixp_suspend(snd_card_t *card, pm_message_t state) | |||
1427 | snd_atiixp_aclink_down(chip); | 1427 | snd_atiixp_aclink_down(chip); |
1428 | snd_atiixp_chip_stop(chip); | 1428 | snd_atiixp_chip_stop(chip); |
1429 | 1429 | ||
1430 | pci_set_power_state(chip->pci, 3); | 1430 | pci_set_power_state(chip->pci, PCI_D3hot); |
1431 | pci_disable_device(chip->pci); | 1431 | pci_disable_device(chip->pci); |
1432 | return 0; | 1432 | return 0; |
1433 | } | 1433 | } |
@@ -1438,7 +1438,7 @@ static int snd_atiixp_resume(snd_card_t *card) | |||
1438 | int i; | 1438 | int i; |
1439 | 1439 | ||
1440 | pci_enable_device(chip->pci); | 1440 | pci_enable_device(chip->pci); |
1441 | pci_set_power_state(chip->pci, 0); | 1441 | pci_set_power_state(chip->pci, PCI_D0); |
1442 | pci_set_master(chip->pci); | 1442 | pci_set_master(chip->pci); |
1443 | 1443 | ||
1444 | snd_atiixp_aclink_reset(chip); | 1444 | snd_atiixp_aclink_reset(chip); |