31 Jan
2013
31 Jan
'13
4:02 a.m.
On Tue, Jan 29, 2013 at 06:51:16PM +0000, Charles Keepax wrote:
The ASoC compressed API did not implement the copy callback in its compressed ops which is required for DSPs that are not memory mapped. This patch adds a second set of compressed ops which does implement the copy callback and uses that when copy is defined in the platform compressed ops, ie. when the DSP is not memory mapped.
Signed-off-by: Charles Keepax ckeepax@opensource.wolfsonmicro.com
@@ -335,14 +352,23 @@ int soc_new_compress(struct snd_soc_pcm_runtime *rtd, int num) return -ENOMEM; }
- compr->ops = &soc_compr_ops;
- compr->ops = kmemdup(&soc_compr_ops, sizeof(soc_compr_ops), GFP_KERNEL);
You forgot to free this memory when device is destoryed
-- ~Vinod