From patchwork Wed Aug 3 18:03:49 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Longerbeam X-Patchwork-Id: 9261683 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B549060754 for ; Wed, 3 Aug 2016 18:04:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AA5E128210 for ; Wed, 3 Aug 2016 18:04:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9E4B428306; Wed, 3 Aug 2016 18:04:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2595C28210 for ; Wed, 3 Aug 2016 18:04:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932505AbcHCSEO (ORCPT ); Wed, 3 Aug 2016 14:04:14 -0400 Received: from mail-pa0-f66.google.com ([209.85.220.66]:35318 "EHLO mail-pa0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932465AbcHCSEM (ORCPT ); Wed, 3 Aug 2016 14:04:12 -0400 Received: by mail-pa0-f66.google.com with SMTP id cf3so14370899pad.2; Wed, 03 Aug 2016 11:04:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=AhRd4WaTlm9zS7h3/vt6LfFl/cU6e2atv26Fh7vOpEA=; b=CwAnmXV2fSn5sRPo5V6kmHPme8T4aoo8m+zOaip1Msrxrdg3XcGPfzt7i79WfznEPa G1Jo+9ZCw4zCXkmHZ3XLP8pJO9YVZLPfm1kG9ttrfLrG/H32uPaq8W10w7RJnj3cPFcs O+hqpegcZDzw6f9UFAZUAC8PZDPttYnJlphd6ndec2R/dL6vFOZySbrcUoRUlL5lycah gD6SDZyssoXS9/S4KCUXA2t95SuT3CehuI5980mDDDJGZis5g77Xc9txLXH/mpVIwQ2o f4X4lYyQekhp4xoCfpUKdl1UKw8Sw7/BtktRK2T1xM7jeXFH55uge2LMarzRAC9PSjPy t8Ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=AhRd4WaTlm9zS7h3/vt6LfFl/cU6e2atv26Fh7vOpEA=; b=cyl4bx7AF4aAooMhNRsprNfOaJJx2uC39L4nRwuJbdBwwWfosmkjXC6Pg6kuGgT8g0 1vrKkunT99mlHV0r6jcAvAQNjFqb2ee4rX+a2V4CUOVHZM6F8InTfeFk59Typ4O5P4pH fHOjYcjxCHFcMQN4lnzBi8dwU6usmkcvPkM/ewKgCxlCTeZQqGRlLP4Wj2ZUeY800dVH F+D/CHyK2Khr2r5e6Y1W6kToXJX8Fp40vFNn/JylLc+pg0u2jSCsCPIhw3pdnL+dXiW4 v2dfktyCYxwpowhj5h/EOPN7iw4wr3cYe4lkrdtSekhL+0ahaWPiylRCDqrXjrXwYJ4F S03Q== X-Gm-Message-State: AEkoous2Y5BPKlJzkCIAVCa0m8YAqGAntmOB7mrR4raJm5uPAm0PmiCAtHR08OZ+8yvn/g== X-Received: by 10.66.185.14 with SMTP id ey14mr120381028pac.71.1470247446536; Wed, 03 Aug 2016 11:04:06 -0700 (PDT) Received: from mothership.sklembedded.com (c-73-241-2-21.hsd1.ca.comcast.net. [73.241.2.21]) by smtp.googlemail.com with ESMTPSA id w64sm14219878pfb.93.2016.08.03.11.04.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 03 Aug 2016 11:04:05 -0700 (PDT) From: Steve Longerbeam X-Google-Original-From: Steve Longerbeam To: lars@metafoo.de Cc: mchehab@kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Steve Longerbeam , Mauro Carvalho Chehab Subject: [PATCH v4 7/8] v4l: Add signal lock status to source change events Date: Wed, 3 Aug 2016 11:03:49 -0700 Message-Id: <1470247430-11168-8-git-send-email-steve_longerbeam@mentor.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1470247430-11168-1-git-send-email-steve_longerbeam@mentor.com> References: <1470247430-11168-1-git-send-email-steve_longerbeam@mentor.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add a signal lock status change to the source changes bitmask. This indicates there was a signal lock or unlock event detected at the input of a video decoder. Signed-off-by: Steve Longerbeam Cc: Mauro Carvalho Chehab --- v4: - converted to rst from DocBook v3: no changes v2: no changes --- Documentation/media/uapi/v4l/vidioc-dqevent.rst | 9 +++++++++ Documentation/media/videodev2.h.rst.exceptions | 1 + include/uapi/linux/videodev2.h | 1 + 3 files changed, 11 insertions(+) diff --git a/Documentation/media/uapi/v4l/vidioc-dqevent.rst b/Documentation/media/uapi/v4l/vidioc-dqevent.rst index 73c0d5b..7d8a053 100644 --- a/Documentation/media/uapi/v4l/vidioc-dqevent.rst +++ b/Documentation/media/uapi/v4l/vidioc-dqevent.rst @@ -564,6 +564,15 @@ call. an input. This can come from an input connector or from a video decoder. + - .. row 2 + + - ``V4L2_EVENT_SRC_CH_LOCK_STATUS`` + + - 0x0002 + + - This event gets triggered when there is a signal lock or + unlock detected at the input of a video decoder. + Return Value ============ diff --git a/Documentation/media/videodev2.h.rst.exceptions b/Documentation/media/videodev2.h.rst.exceptions index 9bb9a6c..f412cc8 100644 --- a/Documentation/media/videodev2.h.rst.exceptions +++ b/Documentation/media/videodev2.h.rst.exceptions @@ -453,6 +453,7 @@ replace define V4L2_EVENT_CTRL_CH_FLAGS ctrl-changes-flags replace define V4L2_EVENT_CTRL_CH_RANGE ctrl-changes-flags replace define V4L2_EVENT_SRC_CH_RESOLUTION src-changes-flags +replace define V4L2_EVENT_SRC_CH_LOCK_STATUS src-changes-flags replace define V4L2_EVENT_MD_FL_HAVE_FRAME_SEQ v4l2-event-motion-det diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h index 724f43e..08a153f 100644 --- a/include/uapi/linux/videodev2.h +++ b/include/uapi/linux/videodev2.h @@ -2078,6 +2078,7 @@ struct v4l2_event_frame_sync { }; #define V4L2_EVENT_SRC_CH_RESOLUTION (1 << 0) +#define V4L2_EVENT_SRC_CH_LOCK_STATUS (1 << 1) struct v4l2_event_src_change { __u32 changes;