media: s5p-mfc: set src_bufs_cnt with requested buffer for DMABUF and USERPTR 98/50798/1 accepted/tizen/mobile/20151103.105519 accepted/tizen/tv/20151103.105555 accepted/tizen/wearable/20151103.105620 submit/tizen/20151103.071105
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Sat, 31 Oct 2015 08:24:54 +0000 (17:24 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 2 Nov 2015 09:49:35 +0000 (18:49 +0900)
commit204daf02766b36d3f652c3436b058dc484510916
tree888cc2841719c22c685b5c47d6d0eb2770e75600
parentf179726c590d43579667955694b526308643ea4c
media: s5p-mfc: set src_bufs_cnt with requested buffer for DMABUF and USERPTR

During start_streaming of output, it checks src_bufs_cnt compared
with pb_count. But it is only meaningful for MMAP memory. So this
patch fixes to set src_bufs_cnt with requested buffer for non MMAP
memory.

Change-Id: Icd447f1b82a6b805be4aa54843ce979265f7e17d
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
drivers/media/platform/s5p-mfc/s5p_mfc_enc.c