From patchwork Tue Jun 14 22:49:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Longerbeam X-Patchwork-Id: 9177113 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 6B4F36021C for ; Tue, 14 Jun 2016 22:52:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5BAE528307 for ; Tue, 14 Jun 2016 22:52:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 50D0B2833E; Tue, 14 Jun 2016 22:52:11 +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=ham 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 ED52828307 for ; Tue, 14 Jun 2016 22:52:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753032AbcFNWv1 (ORCPT ); Tue, 14 Jun 2016 18:51:27 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:35654 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753010AbcFNWvZ (ORCPT ); Tue, 14 Jun 2016 18:51:25 -0400 Received: by mail-pf0-f194.google.com with SMTP id t190so302311pfb.2 for ; Tue, 14 Jun 2016 15:51:25 -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=5i1wHrcm4SrA2lG0OsztNhjOQ4ECFj2zb8QC06gesoU=; b=qeEWBp7TTcClTQ4yq/9qi+IOoiNnpr2bFA311PFInHNax07Ab8N8rSsX86PiM9TVBd rl4xYpXGcmv+kK3K9bb/rI5NzEIo9CgldYHx6bTpI6z+ucH8LZ4fCkMGSRXTTyMoV3Tg fBAsAtAISoS8aIYafaGMP6WsMS1Fd8CDozuQn5z8G5SvQgGOt0BflofR/nUAib+HZkrw 9I6yrvuZieVfDeMQcwQlMWrdtQdioy/3Ml4v2EDhPZnett1CrRN4GuJCqLXbkFbllHVX svXkR7pkXcHI9r3VoytrCg0R5e8mugfBCnGeXGwUZ5EtfTQvfGnvkm4SwmJ1l3k2u2fJ q+SA== 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=5i1wHrcm4SrA2lG0OsztNhjOQ4ECFj2zb8QC06gesoU=; b=kB8I3UtYrfIEmkJWIDWijgeQrsYa7xohHsJC1k9Fk6hHUeT09Nx+jn8CH116cnmOLS jm6J2ljXrc17+U9Tnpo61BkpJvzxrdMQUuFOpzYVrj67Obq4mmaqUN7drhtOFgQ3NIRE 80d3ev3GRQ10IDdGJ/3mZOD/T1rofdZ4BXTXcnNqTdSiW1/swqnYnd0YVC3XKpe3fnw0 myybgfRt/rXW3bcfH9jUn+NzruMFIOKpV2mZgrUQ89PaibM6tXXOaeNyTswIgVaNhzgJ 7ojy1bpoPOI17fTczaquAf0sesemIEFDeR3HMh3ICUdrNb9SRaJpXpIVBR/iHdxGFxgS OcAQ== X-Gm-Message-State: ALyK8tIIT5Ao8yiu5dUJ42k/6o5HX71QDLZ/gaFSOFqF5KXLPGGVRka0Pf3Qrz+GlwykXQ== X-Received: by 10.98.66.208 with SMTP id h77mr105191pfd.30.1465944684725; Tue, 14 Jun 2016 15:51:24 -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 v184sm47829999pfb.24.2016.06.14.15.51.23 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 14 Jun 2016 15:51:24 -0700 (PDT) From: Steve Longerbeam X-Google-Original-From: Steve Longerbeam To: linux-media@vger.kernel.org Cc: Steve Longerbeam Subject: [PATCH 28/38] v4l: Add signal lock status to source change events Date: Tue, 14 Jun 2016 15:49:24 -0700 Message-Id: <1465944574-15745-29-git-send-email-steve_longerbeam@mentor.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1465944574-15745-1-git-send-email-steve_longerbeam@mentor.com> References: <1465944574-15745-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 --- Documentation/DocBook/media/v4l/vidioc-dqevent.xml | 12 ++++++++++-- include/uapi/linux/videodev2.h | 1 + 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Documentation/DocBook/media/v4l/vidioc-dqevent.xml b/Documentation/DocBook/media/v4l/vidioc-dqevent.xml index c9c3c77..7758ad7 100644 --- a/Documentation/DocBook/media/v4l/vidioc-dqevent.xml +++ b/Documentation/DocBook/media/v4l/vidioc-dqevent.xml @@ -233,8 +233,9 @@ This event is triggered when a source parameter change is detected during runtime by the video device. It can be a - runtime resolution change triggered by a video decoder or the - format change happening on an input connector. + runtime resolution change or signal lock status change + triggered by a video decoder, or the format change happening + on an input connector. This event requires that the id matches the input index (when used with a video device node) or the pad index (when used with a subdevice node) from which @@ -461,6 +462,13 @@ from a video decoder. + + 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. + + diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h index 8f95191..2eba5da 100644 --- a/include/uapi/linux/videodev2.h +++ b/include/uapi/linux/videodev2.h @@ -2076,6 +2076,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;