[media] s5p-mfc: flush dpbs when resolution changes
authorKiran AVND <avnd.kiran@samsung.com>
Tue, 21 Oct 2014 11:07:04 +0000 (08:07 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 28 Oct 2014 17:50:35 +0000 (15:50 -0200)
commit16258649bf8d7d4379050a51f3cee414e0f8aa8f
tree907955606cb8a9a2b892fbf328bb433abe3eb0c7
parentb16e64482dd2346f7fc68ec4150bb1ddf1f988e6
[media] s5p-mfc: flush dpbs when resolution changes

While resolution change is detected by MFC, we flush out
older dpbs, send the resolution change event to application,
and then accept further queuing of new src buffers.

Sometimes, we error out during dpb flush because of lack of src
buffers. Since we have not started decoding new resolution yet,
it is simpler to push zero-size buffer until we flush out all dpbs.

This is already been done while handling EOS command, and this patch
extends the same logic to resolution change as well.

Signed-off-by: Kiran AVND <avnd.kiran@samsung.com>
Signed-off-by: Arun Kumar K <arun.kk@samsung.com>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c