media: s5p-mfc: set src_bufs_cnt with requested buffer for DMABUF and USERPTR
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>
Thu, 31 Mar 2016 07:59:37 +0000 (16:59 +0900)
commit085703eff27d7701421e76d1dc78349d843488cf
treeabbc328b77af97678ad63fa2fb29eaa71f64433b
parent56dc4fa613cacd9eacd98a58d23178dfde0a7771
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