diff options
| author | Linkai Gong <gonglinkai@kylinos.cn> | 2026-08-25 10:26:16 +0800 |
|---|---|---|
| committer | Hans Verkuil <hverkuil+cisco@kernel.org> | 2026-09-08 15:10:04 +0200 |
| commit | cb37e83f1bbdf0964ed0a9524ce45a0694f98205 (patch) | |
| tree | 7c41a5db504b441ca4cffee71ecb2bf27a5a5136 | |
| parent | cdee6cae0c64b45e14b80cf9be11aa237d2ce2d2 (diff) | |
| download | linux-next-cb37e83f1bbdf0964ed0a9524ce45a0694f98205.tar.gz linux-next-cb37e83f1bbdf0964ed0a9524ce45a0694f98205.zip | |
media: i2c: tc358743: add missing color-space strings
VI_STATUS3 S_V_COLOR is four bits, so the index after the shift
is 0-15. input_color_space[] only has 14 entries. Add the two
reserved values so log_status() cannot walk off the table.
Fixes: d32d98642de6 ("[media] Driver for Toshiba TC358743 HDMI to CSI-2 bridge")
Cc: stable@vger.kernel.org
Signed-off-by: Linkai Gong <gonglinkai@kylinos.cn>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
| -rw-r--r-- | drivers/media/i2c/tc358743.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/i2c/tc358743.c b/drivers/media/i2c/tc358743.c index fbd38bbfee03..ce75812cbf72 100644 --- a/drivers/media/i2c/tc358743.c +++ b/drivers/media/i2c/tc358743.c @@ -1373,7 +1373,8 @@ static int tc358743_log_status(struct v4l2_subdev *sd) static const char * const input_color_space[] = { "RGB", "YCbCr 601", "opRGB", "YCbCr 709", "NA (4)", "xvYCC 601", "NA(6)", "xvYCC 709", "NA(8)", "sYCC601", - "NA(10)", "NA(11)", "NA(12)", "opYCC 601"}; + "NA(10)", "NA(11)", "NA(12)", "opYCC 601", "NA(14)", + "NA(15)"}; v4l2_info(sd, "-----Chip status-----\n"); v4l2_info(sd, "Chip ID: 0x%02x\n", |
