media: codec mm scatter used reserved first.
authorZhi Zhou <zhi.zhou@amlogic.com>
Fri, 15 Dec 2017 07:01:26 +0000 (15:01 +0800)
committerZhi Zhou <zhi.zhou@amlogic.com>
Fri, 15 Dec 2017 07:03:07 +0000 (15:03 +0800)
PD#155696: if have reserved used reserved first
so we can init&play fast.

Change-Id: Id3c5319acef88d373ac1bf76bbb26163ab0c12d5
Signed-off-by: Zhi Zhou <zhi.zhou@amlogic.com>
drivers/amlogic/media/common/codec_mm/codec_mm_scatter.c

index 8a19292..fa6af81 100644 (file)
@@ -593,7 +593,6 @@ static struct codec_mm_slot *codec_mm_slot_alloc(
                        if (codec_mm_get_free_size() < try_alloc_size)
                                try_alloc_size = codec_mm_get_free_size();
                        mm = codec_mm_alloc(SCATTER_MEM, try_alloc_size, 0,
-                                       CODEC_MM_FLAGS_CMA_FIRST |
                                        CODEC_MM_FLAGS_FOR_VDECODER |
                                        CODEC_MM_FLAGS_FOR_SCATTER |
                                        (smgt->tvp_mode ?