summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/chips-media/coda-bit.c
Commit message (Collapse)AuthorAgeFilesLines
* media: platform: chips-media: Move Coda to separate folderSebastian Fricke2023-11-161-2666/+0
| | | | | | | | Prepare the folder structure for a second Chips&Media driver. Move the Coda driver to a sub-directory. Signed-off-by: Sebastian Fricke <sebastian.fricke@collabora.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
* media: coda: Add check for kmallocJiasheng Jiang2022-12-071-2/+8
| | | | | | | | | | | As the kmalloc may return NULL pointer, it should be better to check the return value in order to avoid NULL poineter dereference, same as the others. Fixes: cb1d3a336371 ("[media] coda: add CODA7541 JPEG support") Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
* media: coda: Add check for dcoda_iram_allocJiasheng Jiang2022-12-071-2/+2
| | | | | | | | | | | As the coda_iram_alloc may return NULL pointer, it should be better to check the return value in order to avoid NULL poineter dereference, same as the others. Fixes: b313bcc9a467 ("[media] coda: simplify IRAM setup") Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
* media: coda: consolidate job_finish calls on decoder prepare_run failurePhilipp Zabel2022-04-241-2/+0
| | | | | | | | | | | | | If the decoder prepare_run callback returns an error, the hardware is never started and v4l2_m2m_job_finish() is called immediately, currently in every error path. Remove the duplicated job_finish calls from the error paths and reuse the v4l2_m2m_job_finish() at the end of coda_pic_run_work instead. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
* media: coda: assert bitstream mutex is locked in coda_fill_bitstreamPhilipp Zabel2022-04-241-0/+2
| | | | | | | | coda_fill_bitstream() must be called under the bitstream mutex. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
* media: platform: rename coda/ to chips-media/Mauro Carvalho Chehab2022-03-181-0/+2660
As the end goal is to have platform drivers split by vendor, rename coda/ to chips-media/. Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>