media: codec_mm: fixed scatter cache bug
authorZhi Zhou <zhi.zhou@amlogic.com>
Thu, 31 Aug 2017 03:03:59 +0000 (11:03 +0800)
committerZhi Zhou <zhi.zhou@amlogic.com>
Thu, 31 Aug 2017 08:39:49 +0000 (01:39 -0700)
PD#150197: codec_mm: fixed tvp first wait long time bug

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

index 1505625..cd87463 100644 (file)
@@ -2076,7 +2076,7 @@ int codec_mm_scatter_mgt_delay_free_swith(
                }
        }
        codec_mm_list_unlock(smgt);
-       if (on && wait_size_M > 0) {
+       if (on && wait_size_M > 0 && !is_tvp) {
                u64 start_time = get_jiffies_64();
                int try_max = 1000;