media: venus: use helper function to check supported codecs
authorStanimir Varbanov <stanimir.varbanov@linaro.org>
Fri, 18 Aug 2017 14:16:05 +0000 (10:16 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sat, 26 Aug 2017 12:45:34 +0000 (08:45 -0400)
commit29f0133ec66c3e49a80fdf362be71482d45684f3
treea1fd1afac22654e4d26ae0b7c41eeafeb9480cbe
parentd8db57c26f1c9bf7de3f6bf462a78cc555d9d390
media: venus: use helper function to check supported codecs

Use the helper function in decoder and encoder find_format
to runtime check supported codecs.

Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/qcom/venus/vdec.c
drivers/media/platform/qcom/venus/venc.c