From patchwork Wed Jul 20 00:03:35 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Longerbeam X-Patchwork-Id: 9238539 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 074B8602F0 for ; Wed, 20 Jul 2016 00:05:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EDAF72624D for ; Wed, 20 Jul 2016 00:05:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E241126E81; Wed, 20 Jul 2016 00:05:28 +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 AB314277D9 for ; Wed, 20 Jul 2016 00:05:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752913AbcGTAFT (ORCPT ); Tue, 19 Jul 2016 20:05:19 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:33283 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752659AbcGTAEG (ORCPT ); Tue, 19 Jul 2016 20:04:06 -0400 Received: by mail-pf0-f194.google.com with SMTP id i6so2254618pfe.0; Tue, 19 Jul 2016 17:04:05 -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=ybPFGUhpZMdxNU664bd3+BhjrfWJiVoxQJnyj8P1EnU=; b=j5GI/KOR/wdP4C1PXzK0/DGyf4zZfiU7Y4ohhPEN3yohzAGURih4xI2O0IPIdziphJ q6wMLbuIpMu4wJ/PDTAjffU/h/IWF5FP+6ToQn5QNQAa709mYMJT9CLZWnXCXuOXZgs4 2wl6O4Xj38K80+8tSdg3RIa8Lxj4UW5v+/kXwbBS1JC7V5RZaM9vbkCufPBzD1CPJ90G OLRu8wyiCunrYjpF5jQWXz6gznIxlPUcASoK3fxBSSJGXATgl2FqZ1msf6ran+Lcmsjr X5BTx2U1PIt5ymr388VMixWYggfIVTuUDexvcidhI+PZI14D45XUvGg1oqj3WYJ5foh9 oG7w== 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=ybPFGUhpZMdxNU664bd3+BhjrfWJiVoxQJnyj8P1EnU=; b=CFA6AK7OR7wI1GVqH+kClF+0m8iTR9hsBz9y64G4RbvIP3vJ6helSRNqbZkgbPF9Cl kuUCowV88O3e0I5qAIiqO0RFr50QJUBxfScmIiIOd/PrxkyHTsAzSz4+xRK2g+/zOJpn kf+9f1vltxl06z/eFG4SWZY0JJRskBUTkJI842VLYMnn5iG08baP6Y/BoI/E+4AJQGGX gWhp0/p1Hu2BP36V71e8L2IJSGgZvcbTn3LObZqM2fZpj6GTIZ5JPAsKqViIUBM9vGcW kKxblqXTG4Et0zt1gRS7AnJwCH0eDjVRgTIpA+cAvUl5TUQVFsmh3M/DNZ634zphKh5v 63rA== X-Gm-Message-State: ALyK8tKub/yEZ0CH5c1avSK14peLiPC+g+NhS1nQtDMfn/Vs1j/jxe1o2QcWQNjL89Nhsg== X-Received: by 10.98.21.131 with SMTP id 125mr59906460pfv.92.1468973045372; Tue, 19 Jul 2016 17:04:05 -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 ty6sm7107742pac.18.2016.07.19.17.04.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 19 Jul 2016 17:04:04 -0700 (PDT) From: Steve Longerbeam X-Google-Original-From: Steve Longerbeam To: lars@metafoo.de Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Steve Longerbeam , Mauro Carvalho Chehab Subject: [PATCH v2 08/10] v4l: Add signal lock status to source change events Date: Tue, 19 Jul 2016 17:03:35 -0700 Message-Id: <1468973017-17647-9-git-send-email-steve_longerbeam@mentor.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1468973017-17647-1-git-send-email-steve_longerbeam@mentor.com> References: <1467846004-12731-1-git-send-email-steve_longerbeam@mentor.com> <1468973017-17647-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 --- 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 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;