Wei Yongjun
3876420a88
[media] mtk-vcodec: remove redundant return value check of platform_get_resource()
...
Remove unneeded error handling on the result of a call
to platform_get_resource() when the value is passed to
devm_ioremap_resource().
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com >
Acked-by: Tiffany Lin <tiffany.lin@mediatek.com >
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com >
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com >
2017-03-22 11:23:20 -03:00
Tiffany Lin
590577a4e5
[media] vcodec: mediatek: Add Mediatek V4L2 Video Decoder Driver
...
Add v4l2 layer decoder driver for MT8173
[mchehab@s-opensource.com: make checkpatch.pl happy]
Signed-off-by: Tiffany Lin <tiffany.lin@mediatek.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-10-21 10:49:26 -02:00
Tiffany Lin
ad34f5412d
[media] vcodec:mediatek: Fix fops_vcodec_release flow for V4L2 Encoder
...
This patch fix that mtk_vcodec_venc_release should be called after v4l2_m2m_ctx_release
Signed-off-by: Tiffany Lin <tiffany.lin@mediatek.com >
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com >
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com >
2016-08-24 11:21:43 -03:00
Krzysztof Kozlowski
1605d2715a
media: mtk-vcodec: remove unused dma_attrs
...
The local variable dma_attrs is set but never read.
Link: http://lkml.kernel.org/r/1468399300-5399-1-git-send-email-k.kozlowski@samsung.com
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2016-08-04 08:50:07 -04:00
Wei Yongjun
712440857e
[media] mtk-vcodec: remove redundant dev_err call in mtk_vcodec_probe()
...
There is a error message within devm_ioremap_resource
already, so remove the dev_err call to avoid redundant
error message.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn >
Reviewed-by: Tiffany Lin <tiffany.lin@mediatek.com >
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com >
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com >
2016-07-13 08:01:20 -03:00
Fengguang Wu
35697a0d99
[media] mtk-vcodec: fix platform_no_drv_owner.cocci warnings
...
drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c:433:3-8: No need to set .owner here. The core will do it.
Remove .owner field if calls are used which set it automatically
Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com >
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com >
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com >
2016-07-12 13:28:14 -03:00
Hans Verkuil
556f44087b
[media] mtk-vcodec: convert driver to use the new vb2_queue dev field
...
The patch dropping the vb2_dma_contig_init_ctx() and _cleanup_ctx()
functions was already applied before this driver was added. So convert
this driver as well.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com >
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com >
2016-07-08 16:16:51 -03:00
Tiffany Lin
4e855a6efa
[media] vcodec: mediatek: Add Mediatek V4L2 Video Encoder Driver
...
Add v4l2 layer encoder driver for MT8173
Signed-off-by: Tiffany Lin <tiffany.lin@mediatek.com >
[hans.verkuil@cisco.com: drop unnecessary ARM || ARM64 dependency]
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-07-08 14:10:51 -03:00