diff options
author | Yang Hongyang <yanghy@cn.fujitsu.com> | 2009-04-06 22:01:15 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-07 11:31:11 -0400 |
commit | 284901a90a9e0b812ca3f5f852cbbfb60d10249d (patch) | |
tree | 06c1b5a0f83c90cfb662f756e7781977ce739ce8 /sound | |
parent | 6afd142fd0dfba497246d0fab236c20a7b4bf778 (diff) |
dma-mapping: replace all DMA_32BIT_MASK macro with DMA_BIT_MASK(32)
Replace all DMA_32BIT_MASK macro with DMA_BIT_MASK(32)
Signed-off-by: Yang Hongyang<yanghy@cn.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/ad1889.c | 4 | ||||
-rw-r--r-- | sound/pci/au88x0/au88x0.c | 4 | ||||
-rw-r--r-- | sound/pci/aw2/aw2-alsa.c | 4 | ||||
-rw-r--r-- | sound/pci/ca0106/ca0106_main.c | 4 | ||||
-rw-r--r-- | sound/pci/cs5535audio/cs5535audio.c | 4 | ||||
-rw-r--r-- | sound/pci/mixart/mixart.c | 2 | ||||
-rw-r--r-- | sound/pci/pcxhr/pcxhr.c | 2 | ||||
-rw-r--r-- | sound/soc/blackfin/bf5xx-ac97-pcm.c | 4 | ||||
-rw-r--r-- | sound/soc/blackfin/bf5xx-i2s-pcm.c | 4 | ||||
-rw-r--r-- | sound/soc/omap/omap-pcm.c | 2 | ||||
-rw-r--r-- | sound/soc/pxa/pxa2xx-pcm.c | 4 | ||||
-rw-r--r-- | sound/soc/s3c24xx/s3c24xx-pcm.c | 2 |
12 files changed, 20 insertions, 20 deletions
diff --git a/sound/pci/ad1889.c b/sound/pci/ad1889.c index d1f242bd0ac5..8f5098f92c37 100644 --- a/sound/pci/ad1889.c +++ b/sound/pci/ad1889.c | |||
@@ -909,8 +909,8 @@ snd_ad1889_create(struct snd_card *card, | |||
909 | return err; | 909 | return err; |
910 | 910 | ||
911 | /* check PCI availability (32bit DMA) */ | 911 | /* check PCI availability (32bit DMA) */ |
912 | if (pci_set_dma_mask(pci, DMA_32BIT_MASK) < 0 || | 912 | if (pci_set_dma_mask(pci, DMA_BIT_MASK(32)) < 0 || |
913 | pci_set_consistent_dma_mask(pci, DMA_32BIT_MASK) < 0) { | 913 | pci_set_consistent_dma_mask(pci, DMA_BIT_MASK(32)) < 0) { |
914 | printk(KERN_ERR PFX "error setting 32-bit DMA mask.\n"); | 914 | printk(KERN_ERR PFX "error setting 32-bit DMA mask.\n"); |
915 | pci_disable_device(pci); | 915 | pci_disable_device(pci); |
916 | return -ENXIO; | 916 | return -ENXIO; |
diff --git a/sound/pci/au88x0/au88x0.c b/sound/pci/au88x0/au88x0.c index 9ec122383eef..7b72c88e449d 100644 --- a/sound/pci/au88x0/au88x0.c +++ b/sound/pci/au88x0/au88x0.c | |||
@@ -151,8 +151,8 @@ snd_vortex_create(struct snd_card *card, struct pci_dev *pci, vortex_t ** rchip) | |||
151 | // check PCI availability (DMA). | 151 | // check PCI availability (DMA). |
152 | if ((err = pci_enable_device(pci)) < 0) | 152 | if ((err = pci_enable_device(pci)) < 0) |
153 | return err; | 153 | return err; |
154 | if (pci_set_dma_mask(pci, DMA_32BIT_MASK) < 0 || | 154 | if (pci_set_dma_mask(pci, DMA_BIT_MASK(32)) < 0 || |
155 | pci_set_consistent_dma_mask(pci, DMA_32BIT_MASK) < 0) { | 155 | pci_set_consistent_dma_mask(pci, DMA_BIT_MASK(32)) < 0) { |
156 | printk(KERN_ERR "error to set DMA mask\n"); | 156 | printk(KERN_ERR "error to set DMA mask\n"); |
157 | pci_disable_device(pci); | 157 | pci_disable_device(pci); |
158 | return -ENXIO; | 158 | return -ENXIO; |
diff --git a/sound/pci/aw2/aw2-alsa.c b/sound/pci/aw2/aw2-alsa.c index 8eea29fc42fe..4d34bb0d99d3 100644 --- a/sound/pci/aw2/aw2-alsa.c +++ b/sound/pci/aw2/aw2-alsa.c | |||
@@ -279,8 +279,8 @@ static int __devinit snd_aw2_create(struct snd_card *card, | |||
279 | pci_set_master(pci); | 279 | pci_set_master(pci); |
280 | 280 | ||
281 | /* check PCI availability (32bit DMA) */ | 281 | /* check PCI availability (32bit DMA) */ |
282 | if ((pci_set_dma_mask(pci, DMA_32BIT_MASK) < 0) || | 282 | if ((pci_set_dma_mask(pci, DMA_BIT_MASK(32)) < 0) || |
283 | (pci_set_consistent_dma_mask(pci, DMA_32BIT_MASK) < 0)) { | 283 | (pci_set_consistent_dma_mask(pci, DMA_BIT_MASK(32)) < 0)) { |
284 | printk(KERN_ERR "aw2: Impossible to set 32bit mask DMA\n"); | 284 | printk(KERN_ERR "aw2: Impossible to set 32bit mask DMA\n"); |
285 | pci_disable_device(pci); | 285 | pci_disable_device(pci); |
286 | return -ENXIO; | 286 | return -ENXIO; |
diff --git a/sound/pci/ca0106/ca0106_main.c b/sound/pci/ca0106/ca0106_main.c index df757575798a..bfac30f7929f 100644 --- a/sound/pci/ca0106/ca0106_main.c +++ b/sound/pci/ca0106/ca0106_main.c | |||
@@ -1589,8 +1589,8 @@ static int __devinit snd_ca0106_create(int dev, struct snd_card *card, | |||
1589 | err = pci_enable_device(pci); | 1589 | err = pci_enable_device(pci); |
1590 | if (err < 0) | 1590 | if (err < 0) |
1591 | return err; | 1591 | return err; |
1592 | if (pci_set_dma_mask(pci, DMA_32BIT_MASK) < 0 || | 1592 | if (pci_set_dma_mask(pci, DMA_BIT_MASK(32)) < 0 || |
1593 | pci_set_consistent_dma_mask(pci, DMA_32BIT_MASK) < 0) { | 1593 | pci_set_consistent_dma_mask(pci, DMA_BIT_MASK(32)) < 0) { |
1594 | printk(KERN_ERR "error to set 32bit mask DMA\n"); | 1594 | printk(KERN_ERR "error to set 32bit mask DMA\n"); |
1595 | pci_disable_device(pci); | 1595 | pci_disable_device(pci); |
1596 | return -ENXIO; | 1596 | return -ENXIO; |
diff --git a/sound/pci/cs5535audio/cs5535audio.c b/sound/pci/cs5535audio/cs5535audio.c index c89ed1f5bc2b..05f56e04849b 100644 --- a/sound/pci/cs5535audio/cs5535audio.c +++ b/sound/pci/cs5535audio/cs5535audio.c | |||
@@ -285,8 +285,8 @@ static int __devinit snd_cs5535audio_create(struct snd_card *card, | |||
285 | if ((err = pci_enable_device(pci)) < 0) | 285 | if ((err = pci_enable_device(pci)) < 0) |
286 | return err; | 286 | return err; |
287 | 287 | ||
288 | if (pci_set_dma_mask(pci, DMA_32BIT_MASK) < 0 || | 288 | if (pci_set_dma_mask(pci, DMA_BIT_MASK(32)) < 0 || |
289 | pci_set_consistent_dma_mask(pci, DMA_32BIT_MASK) < 0) { | 289 | pci_set_consistent_dma_mask(pci, DMA_BIT_MASK(32)) < 0) { |
290 | printk(KERN_WARNING "unable to get 32bit dma\n"); | 290 | printk(KERN_WARNING "unable to get 32bit dma\n"); |
291 | err = -ENXIO; | 291 | err = -ENXIO; |
292 | goto pcifail; | 292 | goto pcifail; |
diff --git a/sound/pci/mixart/mixart.c b/sound/pci/mixart/mixart.c index c1eb84a14c42..82bc5b9e7629 100644 --- a/sound/pci/mixart/mixart.c +++ b/sound/pci/mixart/mixart.c | |||
@@ -1291,7 +1291,7 @@ static int __devinit snd_mixart_probe(struct pci_dev *pci, | |||
1291 | pci_set_master(pci); | 1291 | pci_set_master(pci); |
1292 | 1292 | ||
1293 | /* check if we can restrict PCI DMA transfers to 32 bits */ | 1293 | /* check if we can restrict PCI DMA transfers to 32 bits */ |
1294 | if (pci_set_dma_mask(pci, DMA_32BIT_MASK) < 0) { | 1294 | if (pci_set_dma_mask(pci, DMA_BIT_MASK(32)) < 0) { |
1295 | snd_printk(KERN_ERR "architecture does not support 32bit PCI busmaster DMA\n"); | 1295 | snd_printk(KERN_ERR "architecture does not support 32bit PCI busmaster DMA\n"); |
1296 | pci_disable_device(pci); | 1296 | pci_disable_device(pci); |
1297 | return -ENXIO; | 1297 | return -ENXIO; |
diff --git a/sound/pci/pcxhr/pcxhr.c b/sound/pci/pcxhr/pcxhr.c index 80e064a3efff..833e9c7b27c7 100644 --- a/sound/pci/pcxhr/pcxhr.c +++ b/sound/pci/pcxhr/pcxhr.c | |||
@@ -1449,7 +1449,7 @@ static int __devinit pcxhr_probe(struct pci_dev *pci, | |||
1449 | pci_set_master(pci); | 1449 | pci_set_master(pci); |
1450 | 1450 | ||
1451 | /* check if we can restrict PCI DMA transfers to 32 bits */ | 1451 | /* check if we can restrict PCI DMA transfers to 32 bits */ |
1452 | if (pci_set_dma_mask(pci, DMA_32BIT_MASK) < 0) { | 1452 | if (pci_set_dma_mask(pci, DMA_BIT_MASK(32)) < 0) { |
1453 | snd_printk(KERN_ERR "architecture does not support " | 1453 | snd_printk(KERN_ERR "architecture does not support " |
1454 | "32bit PCI busmaster DMA\n"); | 1454 | "32bit PCI busmaster DMA\n"); |
1455 | pci_disable_device(pci); | 1455 | pci_disable_device(pci); |
diff --git a/sound/soc/blackfin/bf5xx-ac97-pcm.c b/sound/soc/blackfin/bf5xx-ac97-pcm.c index 8cfed1a5dcbe..cf0dfb7ca221 100644 --- a/sound/soc/blackfin/bf5xx-ac97-pcm.c +++ b/sound/soc/blackfin/bf5xx-ac97-pcm.c | |||
@@ -413,7 +413,7 @@ static void bf5xx_pcm_free_dma_buffers(struct snd_pcm *pcm) | |||
413 | sport_done(sport_handle); | 413 | sport_done(sport_handle); |
414 | } | 414 | } |
415 | 415 | ||
416 | static u64 bf5xx_pcm_dmamask = DMA_32BIT_MASK; | 416 | static u64 bf5xx_pcm_dmamask = DMA_BIT_MASK(32); |
417 | 417 | ||
418 | int bf5xx_pcm_ac97_new(struct snd_card *card, struct snd_soc_dai *dai, | 418 | int bf5xx_pcm_ac97_new(struct snd_card *card, struct snd_soc_dai *dai, |
419 | struct snd_pcm *pcm) | 419 | struct snd_pcm *pcm) |
@@ -424,7 +424,7 @@ int bf5xx_pcm_ac97_new(struct snd_card *card, struct snd_soc_dai *dai, | |||
424 | if (!card->dev->dma_mask) | 424 | if (!card->dev->dma_mask) |
425 | card->dev->dma_mask = &bf5xx_pcm_dmamask; | 425 | card->dev->dma_mask = &bf5xx_pcm_dmamask; |
426 | if (!card->dev->coherent_dma_mask) | 426 | if (!card->dev->coherent_dma_mask) |
427 | card->dev->coherent_dma_mask = DMA_32BIT_MASK; | 427 | card->dev->coherent_dma_mask = DMA_BIT_MASK(32); |
428 | 428 | ||
429 | if (dai->playback.channels_min) { | 429 | if (dai->playback.channels_min) { |
430 | ret = bf5xx_pcm_preallocate_dma_buffer(pcm, | 430 | ret = bf5xx_pcm_preallocate_dma_buffer(pcm, |
diff --git a/sound/soc/blackfin/bf5xx-i2s-pcm.c b/sound/soc/blackfin/bf5xx-i2s-pcm.c index 1318c4f627b7..62fbb8459569 100644 --- a/sound/soc/blackfin/bf5xx-i2s-pcm.c +++ b/sound/soc/blackfin/bf5xx-i2s-pcm.c | |||
@@ -245,7 +245,7 @@ static void bf5xx_pcm_free_dma_buffers(struct snd_pcm *pcm) | |||
245 | sport_done(sport_handle); | 245 | sport_done(sport_handle); |
246 | } | 246 | } |
247 | 247 | ||
248 | static u64 bf5xx_pcm_dmamask = DMA_32BIT_MASK; | 248 | static u64 bf5xx_pcm_dmamask = DMA_BIT_MASK(32); |
249 | 249 | ||
250 | int bf5xx_pcm_i2s_new(struct snd_card *card, struct snd_soc_dai *dai, | 250 | int bf5xx_pcm_i2s_new(struct snd_card *card, struct snd_soc_dai *dai, |
251 | struct snd_pcm *pcm) | 251 | struct snd_pcm *pcm) |
@@ -256,7 +256,7 @@ int bf5xx_pcm_i2s_new(struct snd_card *card, struct snd_soc_dai *dai, | |||
256 | if (!card->dev->dma_mask) | 256 | if (!card->dev->dma_mask) |
257 | card->dev->dma_mask = &bf5xx_pcm_dmamask; | 257 | card->dev->dma_mask = &bf5xx_pcm_dmamask; |
258 | if (!card->dev->coherent_dma_mask) | 258 | if (!card->dev->coherent_dma_mask) |
259 | card->dev->coherent_dma_mask = DMA_32BIT_MASK; | 259 | card->dev->coherent_dma_mask = DMA_BIT_MASK(32); |
260 | 260 | ||
261 | if (dai->playback.channels_min) { | 261 | if (dai->playback.channels_min) { |
262 | ret = bf5xx_pcm_preallocate_dma_buffer(pcm, | 262 | ret = bf5xx_pcm_preallocate_dma_buffer(pcm, |
diff --git a/sound/soc/omap/omap-pcm.c b/sound/soc/omap/omap-pcm.c index 8e1431cb46bb..1bdbb0427183 100644 --- a/sound/soc/omap/omap-pcm.c +++ b/sound/soc/omap/omap-pcm.c | |||
@@ -327,7 +327,7 @@ int omap_pcm_new(struct snd_card *card, struct snd_soc_dai *dai, | |||
327 | if (!card->dev->dma_mask) | 327 | if (!card->dev->dma_mask) |
328 | card->dev->dma_mask = &omap_pcm_dmamask; | 328 | card->dev->dma_mask = &omap_pcm_dmamask; |
329 | if (!card->dev->coherent_dma_mask) | 329 | if (!card->dev->coherent_dma_mask) |
330 | card->dev->coherent_dma_mask = DMA_32BIT_MASK; | 330 | card->dev->coherent_dma_mask = DMA_BIT_MASK(32); |
331 | 331 | ||
332 | if (dai->playback.channels_min) { | 332 | if (dai->playback.channels_min) { |
333 | ret = omap_pcm_preallocate_dma_buffer(pcm, | 333 | ret = omap_pcm_preallocate_dma_buffer(pcm, |
diff --git a/sound/soc/pxa/pxa2xx-pcm.c b/sound/soc/pxa/pxa2xx-pcm.c index 53b9fb127a6d..d38e39575f51 100644 --- a/sound/soc/pxa/pxa2xx-pcm.c +++ b/sound/soc/pxa/pxa2xx-pcm.c | |||
@@ -81,7 +81,7 @@ static struct snd_pcm_ops pxa2xx_pcm_ops = { | |||
81 | .mmap = pxa2xx_pcm_mmap, | 81 | .mmap = pxa2xx_pcm_mmap, |
82 | }; | 82 | }; |
83 | 83 | ||
84 | static u64 pxa2xx_pcm_dmamask = DMA_32BIT_MASK; | 84 | static u64 pxa2xx_pcm_dmamask = DMA_BIT_MASK(32); |
85 | 85 | ||
86 | static int pxa2xx_soc_pcm_new(struct snd_card *card, struct snd_soc_dai *dai, | 86 | static int pxa2xx_soc_pcm_new(struct snd_card *card, struct snd_soc_dai *dai, |
87 | struct snd_pcm *pcm) | 87 | struct snd_pcm *pcm) |
@@ -91,7 +91,7 @@ static int pxa2xx_soc_pcm_new(struct snd_card *card, struct snd_soc_dai *dai, | |||
91 | if (!card->dev->dma_mask) | 91 | if (!card->dev->dma_mask) |
92 | card->dev->dma_mask = &pxa2xx_pcm_dmamask; | 92 | card->dev->dma_mask = &pxa2xx_pcm_dmamask; |
93 | if (!card->dev->coherent_dma_mask) | 93 | if (!card->dev->coherent_dma_mask) |
94 | card->dev->coherent_dma_mask = DMA_32BIT_MASK; | 94 | card->dev->coherent_dma_mask = DMA_BIT_MASK(32); |
95 | 95 | ||
96 | if (dai->playback.channels_min) { | 96 | if (dai->playback.channels_min) { |
97 | ret = pxa2xx_pcm_preallocate_dma_buffer(pcm, | 97 | ret = pxa2xx_pcm_preallocate_dma_buffer(pcm, |
diff --git a/sound/soc/s3c24xx/s3c24xx-pcm.c b/sound/soc/s3c24xx/s3c24xx-pcm.c index a9d68fa2b34a..169ddad31575 100644 --- a/sound/soc/s3c24xx/s3c24xx-pcm.c +++ b/sound/soc/s3c24xx/s3c24xx-pcm.c | |||
@@ -419,7 +419,7 @@ static void s3c24xx_pcm_free_dma_buffers(struct snd_pcm *pcm) | |||
419 | } | 419 | } |
420 | } | 420 | } |
421 | 421 | ||
422 | static u64 s3c24xx_pcm_dmamask = DMA_32BIT_MASK; | 422 | static u64 s3c24xx_pcm_dmamask = DMA_BIT_MASK(32); |
423 | 423 | ||
424 | static int s3c24xx_pcm_new(struct snd_card *card, | 424 | static int s3c24xx_pcm_new(struct snd_card *card, |
425 | struct snd_soc_dai *dai, struct snd_pcm *pcm) | 425 | struct snd_soc_dai *dai, struct snd_pcm *pcm) |