[RAMEN9610-10029][COMMON] media: mfc: fix the 10bit memtype for DRM
authorSunyoung Kang <sy0816.kang@samsung.com>
Tue, 11 Dec 2018 00:21:19 +0000 (09:21 +0900)
committerhskang <hs1218.kang@samsung.com>
Fri, 28 Dec 2018 09:54:40 +0000 (18:54 +0900)
When DRM playback, the 8+2 format is only used for 10bit.

Change-Id: I6613ba128db77178fa4b302c3ec78fbc17fe237b
Signed-off-by: Sunyoung Kang <sy0816.kang@samsung.com>
drivers/media/platform/exynos/mfc/mfc_reg_api.c

index 68a5fa6d7cedcabcca37ada33fe0837833977c90..bf90c1b1990f8f871d82158d10f82e192e6437bf 100644 (file)
@@ -462,7 +462,7 @@ void mfc_set_pixel_format(struct mfc_ctx *ctx, unsigned int format)
        unsigned int reg = 0;
        unsigned int pix_val;
 
-       if (dev->pdata->P010_decoding)
+       if (dev->pdata->P010_decoding && !ctx->is_drm)
                ctx->mem_type_10bit = 1;
 
        switch (format) {