projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1112b9e
)
sound/soc/pxa/mmp-pcm.c: use gen_pool_dma_alloc() to allocate dma buffer
author
Nicolin Chen
<
[email protected]
>
Tue, 12 Nov 2013 23:10:00 +0000
(15:10 -0800)
committer
Linus Torvalds
<
[email protected]
>
Wed, 13 Nov 2013 03:09:23 +0000
(12:09 +0900)
Since gen_pool_dma_alloc() is introduced, we implement it to simplify code.
Signed-off-by: Nicolin Chen <
[email protected]
>
Cc: Eric Miao <
[email protected]
>
Cc: Russell King <
[email protected]
>
Cc: Haojian Zhuang <
[email protected]
>
Cc: Liam Girdwood <
[email protected]
>
Cc: Mark Brown <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
sound/soc/pxa/mmp-pcm.c
patch
|
blob
|
history
diff --git
a/sound/soc/pxa/mmp-pcm.c
b/sound/soc/pxa/mmp-pcm.c
index 8235e231d89c013dd957f08b3336a0d3d3a941e4..7929e19b0ef5970b1942da441770df909f29629e 100644
(file)
--- a/
sound/soc/pxa/mmp-pcm.c
+++ b/
sound/soc/pxa/mmp-pcm.c
@@
-201,10
+201,9
@@
static int mmp_pcm_preallocate_dma_buffer(struct snd_pcm_substream *substream,
if (!gpool)
return -ENOMEM;
- buf->area =
(unsigned char *)gen_pool_alloc(gpool, size
);
+ buf->area =
gen_pool_dma_alloc(gpool, size, &buf->addr
);
if (!buf->area)
return -ENOMEM;
- buf->addr = gen_pool_virt_to_phys(gpool, (unsigned long)buf->area);
buf->bytes = size;
return 0;
}