lkml.org 
[lkml]   [2014]   [Oct]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 3.14 213/238] media: adv7604: fix inverted condition
    Date
    3.14-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Hans Verkuil <hverkuil@xs4all.nl>

    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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    drivers/media/i2c/adv7604.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/drivers/media/i2c/adv7604.c
    +++ b/drivers/media/i2c/adv7604.c
    @@ -1984,7 +1984,7 @@ static int adv7604_log_status(struct v4l
    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;



    \
     
     \ /
      Last update: 2014-10-04 01:41    [W:4.207 / U:0.244 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site