vdin: remove hardcode manual buffer cnt. [1/3]
authorsky zhou <sky.zhou@amlogic.com>
Fri, 5 Jul 2019 08:37:36 +0000 (16:37 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Wed, 17 Jul 2019 06:43:55 +0000 (23:43 -0700)
commit67bc8600cb3f518fbf6fb2109446dca2bdcef0a6
tree7e6535e00cde69af6373a1d4ae8410071320dc8e
parente4d73cadd706c821efb93ebcbf9cd714fed51663
vdin: remove hardcode manual buffer cnt. [1/3]

PD#TV-7344

Problem:
current vdin1 use hardcode buffer cnt 4, it
is not good for user space program.

Solution:
Check passed buffer fd arry, so we can read variable
fd num.

Verify:
verified on macroni

Change-Id: I9bc07e45a3716423dc037a5d966c9b6b5eafcdfe
Signed-off-by: sky zhou <sky.zhou@amlogic.com>
drivers/amlogic/media/vin/tvin/vdin/vdin_canvas.c
drivers/amlogic/media/vin/tvin/vdin/vdin_drv.c