]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commitf4d8b7bc1aa99296a6bfb7f69f0558e8e6cbb0c6
tree907955606cb8a9a2b892fbf328bb433abe3eb0c7
parent451d29ccccb3fee74ee58c08102bec1102f961a0
[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