drivers: media: rp1_cfe: Fix link validate test for pixel format
authorNaushir Patuck <naush@raspberrypi.com>
Tue, 17 Oct 2023 08:35:44 +0000 (09:35 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:35:06 +0000 (11:35 +0000)
commitdd53c1d869394a9a6a1022c0b4d1ed5d277f877c
tree27b5e9d08256049b1e11edbc7c52adeb353ff65e
parent5e68a4e15d2a7082a9de27725fed7a750faa8450
drivers: media: rp1_cfe: Fix link validate test for pixel format

Now that we have removed unique PISP media bus codes, the cfe format
table has multiple entries with the same media bus code for 16-bit
formats. The test in cfe_video_link_validate() did not account for this.
Fix it by testing the media bus code and the V4L2 pixelformat 4cc
together.

As a drive-by, ensure we have a valid CSI2 datatype id when programming
the hardware block.

Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
drivers/media/platform/raspberrypi/rp1_cfe/cfe.c