Skip to contentSkip to conversation

+ sound-core-memallocc-use-gen_pool_dma_alloc-to-allocate-iram-buffer.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Nov 4, 2013 Sound

lore
Share & tools
lore
#0 lore raw

Subject: + sound-core-memallocc-use-gen_pool_dma_alloc-to-allocate-iram-buffer.patch added to -mm tree
To: [email protected],[email protected]
From: [email protected]
Date: Mon, 04 Nov 2013 14:17:16 -0800

The patch titled
Subject: sound/core/memalloc.c: use gen_pool_dma_alloc() to allocate iram buffer
has been added to the -mm tree. Its filename is
sound-core-memallocc-use-gen_pool_dma_alloc-to-allocate-iram-buffer.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/sound-core-memallocc-use-gen_pool_dma_alloc-to-allocate-iram-buffer.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/sound-core-memallocc-use-gen_pool_dma_alloc-to-allocate-iram-buffer.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Nicolin Chen <[email protected]>
Subject: sound/core/memalloc.c: use gen_pool_dma_alloc() to allocate iram buffer

Since gen_pool_dma_alloc() is introduced, we implement it to simplify code.

---

 sound/core/memalloc.c |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
sound/core/memalloc.c renamed from sound/core/memalloc.c~sound-core-memallocc-use-gen_pool_dma_alloc-to-allocate-iram-buffer +0 -3
diff -puN sound/core/memalloc.c~sound-core-memallocc-use-gen_pool_dma_alloc-to-allocate-iram-buffer sound/core/memalloc.c
@@ -184,11 +184,7 @@ static void snd_malloc_dev_iram(struct s
 	/* Assign the pool into private_data field */
 	dmab->private_data = pool;
 
-	dmab->area = (void *)gen_pool_alloc(pool, size);
-	if (!dmab->area)
-		return;