]> git.baikalelectronics.ru Git - kernel.git/commit
[media] s5p-mfc: Update v6 encoder buffer alloc
authorArun Kumar K <arun.kk@samsung.com>
Wed, 24 Apr 2013 12:41:53 +0000 (09:41 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 3 Jun 2013 18:17:07 +0000 (15:17 -0300)
commit16e7d26d36e4573a904ec493c688c54f0e82ad76
treef1f84475be17165966a694169c05b88b3fd616a8
parent0c670a43f2073607d91c7362148a3b2de59d9110
[media] s5p-mfc: Update v6 encoder buffer alloc

MFC v6 needs minimum number of output buffers to be queued
for encoder depending on the stream type and profile.
The patch modifies the driver so that encoding cannot be
started with lesser number of OUTPUT buffers than required.
This also fixes the crash happeninig during multi instance
encoder-decoder simultaneous run due to memory allocation
happening from interrupt context.

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@redhat.com>
drivers/media/platform/s5p-mfc/s5p_mfc.c
drivers/media/platform/s5p-mfc/s5p_mfc_common.h
drivers/media/platform/s5p-mfc/s5p_mfc_dec.c
drivers/media/platform/s5p-mfc/s5p_mfc_enc.c
drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c