]> 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)
commitf7cdf8256b91c183e7899100e778a882f809d978
treef1f84475be17165966a694169c05b88b3fd616a8
parentd9e9e0031c99447e37e17945647848a3776870ff
[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