diff options
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2022-05-12 10:36:20 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2022-06-20 10:30:30 +0100 |
commit | b9629c550f01f9864fa644b2ba6dae9c9a2be98d (patch) | |
tree | 9f8e10bf465c86a9000f0fd8fb7dc1a244893f71 /drivers | |
parent | 6b1814e2698968a223af4f363dcb32fb2c74e265 (diff) | |
download | linux-stable-b9629c550f01f9864fa644b2ba6dae9c9a2be98d.tar.gz linux-stable-b9629c550f01f9864fa644b2ba6dae9c9a2be98d.tar.bz2 linux-stable-b9629c550f01f9864fa644b2ba6dae9c9a2be98d.zip |
media: adv7604: try all infoframe types
When logging the infoframes the adv7604 driver stopped reading
infoframes at the first missing infoframe type. Instead it should
try all supported infoframe types.
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/i2c/adv7604.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/media/i2c/adv7604.c b/drivers/media/i2c/adv7604.c index bb0c8fc6d383..497419a5cfdd 100644 --- a/drivers/media/i2c/adv7604.c +++ b/drivers/media/i2c/adv7604.c @@ -2505,9 +2505,8 @@ static void adv76xx_log_infoframes(struct v4l2_subdev *sd) union hdmi_infoframe frame; struct i2c_client *client = v4l2_get_subdevdata(sd); - if (adv76xx_read_infoframe(sd, i, &frame)) - return; - hdmi_infoframe_log(KERN_INFO, &client->dev, &frame); + if (!adv76xx_read_infoframe(sd, i, &frame)) + hdmi_infoframe_log(KERN_INFO, &client->dev, &frame); } } |