Skip to contentSkip to conversation

adv7604: fix inverted condition

PATCH New Hans Verkuil 1 participant 1 message Sep 12, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 adv7604: fix inverted condition

The log_status function should show HDMI information, but the test checking for an HDMI input was inverted. Fix this.

Cc [email protected] # for v3.12 and up
drivers/media/i2c/adv7604.c +1 -1
index d4fa213..de88b98 100644
@@ -2325,7 +2325,7 @@ static int adv7604_log_status(struct v4l2_subdev *sd)
 	v4l2_info(sd, "HDCP keys read: %s%s\n",
 			(hdmi_read(sd, 0x04) & 0x20) ? "yes" : "no",
 			(hdmi_read(sd, 0x04) & 0x10) ? "ERROR" : "");
-	if (!is_hdmi(sd)) {
+	if (is_hdmi(sd)) {
 		bool audio_pll_locked = hdmi_read(sd, 0x04) & 0x01;
 		bool audio_sample_packet_detect = hdmi_read(sd, 0x18) & 0x01;
 		bool audio_mute = io_read(sd, 0x65) & 0x40;