drm/exynos: initialize the buf_num in vp_video_buffer
authorYoungJun Cho <yj44.cho@samsung.com>
Mon, 1 Jul 2013 04:04:12 +0000 (13:04 +0900)
committerInki Dae <inki.dae@samsung.com>
Thu, 4 Jul 2013 06:55:36 +0000 (15:55 +0900)
The buf_num in vp_video_buffer() should be 1 or 2, but it is not
initialized, and only set to 2 in NV12M or NV12MT cases.
So this patch initializes the buf_num with 1 as default.

Signed-off-by: YoungJun Cho <yj44.cho@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_mixer.c

index b1280b43931ce3b8decaf4a784f9fa1db0286cd9..42ffb71c63bca254fd5ac753b1d6dcd84c284371 100644 (file)
@@ -379,7 +379,7 @@ static void vp_video_buffer(struct mixer_context *ctx, int win)
        unsigned long flags;
        struct hdmi_win_data *win_data;
        unsigned int x_ratio, y_ratio;
-       unsigned int buf_num;
+       unsigned int buf_num = 1;
        dma_addr_t luma_addr[2], chroma_addr[2];
        bool tiled_mode = false;
        bool crcb_mode = false;