[alsa-devel] [PATCH v2] ASoC: soc-compress: Add support for not memory mapped DSPs
Vinod Koul
vinod.koul at intel.com
Thu Jan 31 04:02:32 CET 2013
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 at 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
More information about the Alsa-devel
mailing list