linux-stable/drivers/media/platform/verisilicon
Chen-Yu Tsai c9ca3b53ee media: hantro: Use core-generated bus_info value
The Hantro driver uses a hardcoded value for the bus_info field in the
media device and |struct v4l2_capability|. This worked well when there
was just one device. However with the iMX.8 series we are now seeing
two Hantro blocks on the same chip. The static bus_info is no longer
sufficient for differentiating devices.

Since commit f2d8b6917f ("media: v4l: ioctl: Set bus_info in
v4l_querycap()"), the V4L2 core provides a default value for the
bus_info field for platform and PCI devices. This value will match
the default value for media devices added by commit cef699749f
("media: mc: Set bus_info in media_device_init()"). These defaults
are stable and device-specific.

Drop the static bus_info values from the hantro driver and use the
defaults.

Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Reviewed-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
2023-02-08 07:33:16 +01:00
..
hantro.h
hantro_drv.c media: hantro: Use core-generated bus_info value 2023-02-08 07:33:16 +01:00
hantro_g1.c
hantro_g1_h264_dec.c
hantro_g1_mpeg2_dec.c
hantro_g1_regs.h
hantro_g1_vp8_dec.c
hantro_g2.c
hantro_g2_hevc_dec.c media: hantro: postproc: Configure output regs to support 10bit 2022-09-24 09:00:00 +02:00
hantro_g2_regs.h
hantro_g2_vp9_dec.c
hantro_h1_jpeg_enc.c
hantro_h1_regs.h
hantro_h264.c
hantro_hevc.c media: hantro: HEVC: Fix auxilary buffer size calculation 2022-09-24 08:58:12 +02:00
hantro_hw.h
hantro_jpeg.c
hantro_jpeg.h
hantro_mpeg2.c
hantro_postproc.c media: hantro: postproc: Configure output regs to support 10bit 2022-09-24 09:00:00 +02:00
hantro_v4l2.c media: hantro: Use core-generated bus_info value 2023-02-08 07:33:16 +01:00
hantro_v4l2.h
hantro_vp8.c
hantro_vp9.c
hantro_vp9.h
imx8m_vpu_hw.c media: hantro: imx8m: Enable 10bit decoding 2022-09-24 09:00:50 +02:00
Kconfig
Makefile
rockchip_vpu2_hw_h264_dec.c
rockchip_vpu2_hw_jpeg_enc.c
rockchip_vpu2_hw_mpeg2_dec.c
rockchip_vpu2_hw_vp8_dec.c
rockchip_vpu2_regs.h
rockchip_vpu_hw.c
sama5d4_vdec_hw.c
sunxi_vpu_hw.c