Commit 782953ec authored by YoungJun Cho's avatar YoungJun Cho Committed by Inki Dae

drm/exynos: initialize the buf_num in vp_video_buffer

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: default avatarYoungJun Cho <yj44.cho@samsung.com>
Signed-off-by: default avatarSeung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
parent cbb28bb0
...@@ -379,7 +379,7 @@ static void vp_video_buffer(struct mixer_context *ctx, int win) ...@@ -379,7 +379,7 @@ static void vp_video_buffer(struct mixer_context *ctx, int win)
unsigned long flags; unsigned long flags;
struct hdmi_win_data *win_data; struct hdmi_win_data *win_data;
unsigned int x_ratio, y_ratio; unsigned int x_ratio, y_ratio;
unsigned int buf_num; unsigned int buf_num = 1;
dma_addr_t luma_addr[2], chroma_addr[2]; dma_addr_t luma_addr[2], chroma_addr[2];
bool tiled_mode = false; bool tiled_mode = false;
bool crcb_mode = false; bool crcb_mode = false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment