]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
media: adv7604: fix inverted condition
authorHans Verkuil <hverkuil@xs4all.nl>
Fri, 12 Sep 2014 09:02:02 +0000 (06:02 -0300)
committerJiri Slaby <jslaby@suse.cz>
Mon, 13 Oct 2014 13:41:37 +0000 (15:41 +0200)
commit 77639ff2b3404a913b8037d230a384798b854bae upstream.

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

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/media/i2c/adv7604.c

index fbfdd2fc2a367f5b48c67fc41785395508fc473d..afbc0d72dd46c223a1868c2b9b7caa911cb7c9d0 100644 (file)
@@ -1752,7 +1752,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;