From patchwork Thu Jul 5 13:33:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Todor Tomov X-Patchwork-Id: 141154 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp1949854ljj; Thu, 5 Jul 2018 06:34:58 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfyV/0Zrk1h9XryuSHSZeea6kgktb23m21Yd5kKqcB9e7Yr/a7Xr2xLOtZv28Jyt2zjQ6oY X-Received: by 2002:a17:902:102b:: with SMTP id b40-v6mr6186471pla.125.1530797698654; Thu, 05 Jul 2018 06:34:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530797698; cv=none; d=google.com; s=arc-20160816; b=OOi3MoFs5iJgkIbRPm6xmtravFEVj8Eo7lc8J+HE80i2o1bLi+XeW3ywJtJkAfTSt3 E0czewK74wpXGcS1IikQDmx9W6aP4oPzJWlt+EG5U9CJgJxUqfBrlFExLaCYwGDDY5IY lQYSTnkbneoJfUf/G3PmZnJ07znuuSYVHmPtsOcex5y4TH1x0GFBKnMS9UmqFZFFLIau neeDXwBV0az/m6wYErCxwgGh0/0fqTBTluYbD9SIltfb6cwh4zBWjh1UmFiG3cNMwo+Z l5O9eWWGAowFBSJPTaTrSyaZIDkLQPQ431e2TUpr0DAJ66DecZgq3Zy33wvBao/cUB/w MmTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=bJwHCNWRDS8wWSUR9r9XAhZmEL+YrbN5g9nw+OvUm7E=; b=EQd8XwTWmwhp3nt0nLVvJXkuldRgJ2Q904GZtFqmqqobeYzaHhqEj2cOJZ8aCILdZx tB8S2abTotyIjyfSGZ19qn7Hf2fGReEd+S22BXPmkx/HRxDwYLZYT/rytXc+wJ/AjmHN Z97gI/VqmiVBADYtTFEHF2i+W3SAPVj44s7zwg5eby8DkIBp67BSm3MCvXu/huT0KlVs q3ZTQjczfCwWvr5/DwRiO/kZzDf+kM0WKRbtkVqhAUhhaHHal941j4cP0+hdFNGK5x/f Zx++3qUnrNRXTvngTu0aRN5d95PwKSEDLoc9sxEWEumUiFcoU8UBgqJx3XIvbZa+qpV1 HirA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d5-v6si6173598pla.337.2018.07.05.06.34.58; Thu, 05 Jul 2018 06:34:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753389AbeGENe4 (ORCPT + 4 others); Thu, 5 Jul 2018 09:34:56 -0400 Received: from ns.mm-sol.com ([37.157.136.199]:41332 "EHLO extserv.mm-sol.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753838AbeGENdX (ORCPT ); Thu, 5 Jul 2018 09:33:23 -0400 Received: from mms-0439.qualcomm.mm-sol.com (unknown [37.157.136.206]) by extserv.mm-sol.com (Postfix) with ESMTPSA id 23A8BCD69; Thu, 5 Jul 2018 16:33:18 +0300 (EEST) From: Todor Tomov To: mchehab@kernel.org, sakari.ailus@linux.intel.com, hans.verkuil@cisco.com, laurent.pinchart+renesas@ideasonboard.com, linux-media@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Todor Tomov Subject: [PATCH v2 33/34] media: camss: csid: Add support for events triggered by user controls Date: Thu, 5 Jul 2018 16:33:04 +0300 Message-Id: <1530797585-8555-34-git-send-email-todor.tomov@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1530797585-8555-1-git-send-email-todor.tomov@linaro.org> References: <1530797585-8555-1-git-send-email-todor.tomov@linaro.org> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Changing a user control value can trigger an event to other users. Add support for that. Signed-off-by: Todor Tomov --- drivers/media/platform/qcom/camss/camss-csid.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/media/platform/qcom/camss/camss-csid.c b/drivers/media/platform/qcom/camss/camss-csid.c index a581377..b50eb96 100644 --- a/drivers/media/platform/qcom/camss/camss-csid.c +++ b/drivers/media/platform/qcom/camss/camss-csid.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include "camss-csid.h" @@ -1266,6 +1267,8 @@ static int csid_link_setup(struct media_entity *entity, static const struct v4l2_subdev_core_ops csid_core_ops = { .s_power = csid_set_power, + .subscribe_event = v4l2_ctrl_subdev_subscribe_event, + .unsubscribe_event = v4l2_event_subdev_unsubscribe, }; static const struct v4l2_subdev_video_ops csid_video_ops = { @@ -1311,7 +1314,8 @@ int msm_csid_register_entity(struct csid_device *csid, v4l2_subdev_init(sd, &csid_v4l2_ops); sd->internal_ops = &csid_v4l2_internal_ops; - sd->flags |= V4L2_SUBDEV_FL_HAS_DEVNODE; + sd->flags |= V4L2_SUBDEV_FL_HAS_DEVNODE | + V4L2_SUBDEV_FL_HAS_EVENTS; snprintf(sd->name, ARRAY_SIZE(sd->name), "%s%d", MSM_CSID_NAME, csid->id); v4l2_set_subdevdata(sd, csid); From patchwork Thu Jul 5 13:33:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Todor Tomov X-Patchwork-Id: 141148 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp1948186ljj; Thu, 5 Jul 2018 06:33:30 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfpXSigm2a3BIGT/ZgFiEaxUGIxtrGmqUZ9c2g4pdc0YENo9Vev8dgpGHD5kqY2f0vJ9B4M X-Received: by 2002:a17:902:24a5:: with SMTP id w34-v6mr6213624pla.52.1530797610818; Thu, 05 Jul 2018 06:33:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530797610; cv=none; d=google.com; s=arc-20160816; b=K7ljz6nOMeQ3D7i6T5FZB7x5/rQQshwprHfDu/D4YnoHGaI/bL8cwgaHPcqw8uudpI ujADKKivr37O6Im6fbNqxjFyLtdxz6vfZuVGULhOw4z1CWAt8OeCQPVjeH/wrcT0LpXy ok/bqhzMSTUdHCs1ntI7Okve68Iq5Waan65TCNMoLtlCt04jRdGLPr7nCzRrvdxqiDks A4rH0xJxftdz1ohTIYryAsiinpum9ByojEmsKqTJhLDkMVLwR4rRX9E6C2p1pUDOHTFY EQlFE3wuDuVE/0KTnc1lAPwhB1+2JrAQVQGfERSRbBYrY0hPYQFho9or0Dtgen/gaE3l RqlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=JR/0eNeJR6DFOBO8F9Cz8lGD5obnURUHP5v8GpJRf0w=; b=HB+Z0EE+eo10Y4DtOrsJf85nfx/YA4HeCduV6+sCSnJGJHHQkrvzPKGIG/LAotFXzG l4FTj1nS23N9C4YKldBrf1Gox1DTFLTIoi/0+724Tv61UzmiXKhjqHbgcKgdlrJsmw1y JcitnVJK+ORAcA/1bNJ1Wz4i0HEZzbG7cW/7uo90tPKp7MGSpqLn6gLbjwOOwHURAm9f bujd2KdfTTjK/QzQazJtZgVmw3ol61cbFibYiPWDfuvDv6mL6Sh7NKo5585/oe2XSCY/ eW/gE8xGjUOktR6uSpDJB9d2FzFtG7VVShCuikbaCZY2jdQxHoRhRmebUCsrjA2G04bp sHKw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h12-v6si6260891pfk.156.2018.07.05.06.33.30; Thu, 05 Jul 2018 06:33:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753904AbeGENd2 (ORCPT + 4 others); Thu, 5 Jul 2018 09:33:28 -0400 Received: from ns.mm-sol.com ([37.157.136.199]:41379 "EHLO extserv.mm-sol.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753859AbeGENdY (ORCPT ); Thu, 5 Jul 2018 09:33:24 -0400 Received: from mms-0439.qualcomm.mm-sol.com (unknown [37.157.136.206]) by extserv.mm-sol.com (Postfix) with ESMTPSA id 2B78FCD6A; Thu, 5 Jul 2018 16:33:18 +0300 (EEST) From: Todor Tomov To: mchehab@kernel.org, sakari.ailus@linux.intel.com, hans.verkuil@cisco.com, laurent.pinchart+renesas@ideasonboard.com, linux-media@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Todor Tomov Subject: [PATCH v2 34/34] media: v4l2-ioctl: Add format descriptions for packed Bayer raw14 pixel formats Date: Thu, 5 Jul 2018 16:33:05 +0300 Message-Id: <1530797585-8555-35-git-send-email-todor.tomov@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1530797585-8555-1-git-send-email-todor.tomov@linaro.org> References: <1530797585-8555-1-git-send-email-todor.tomov@linaro.org> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org This removes warning "Unknown pixelformat" for the following formats: V4L2_PIX_FMT_SBGGR14P V4L2_PIX_FMT_SGBRG14P V4L2_PIX_FMT_SGRBG14P V4L2_PIX_FMT_SRGGB14P CC: Sakari Ailus Signed-off-by: Todor Tomov --- drivers/media/v4l2-core/v4l2-ioctl.c | 4 ++++ 1 file changed, 4 insertions(+) -- 2.7.4 diff --git a/drivers/media/v4l2-core/v4l2-ioctl.c b/drivers/media/v4l2-core/v4l2-ioctl.c index 2e3b1f0..e8f7c89 100644 --- a/drivers/media/v4l2-core/v4l2-ioctl.c +++ b/drivers/media/v4l2-core/v4l2-ioctl.c @@ -1260,6 +1260,10 @@ static void v4l_fill_fmtdesc(struct v4l2_fmtdesc *fmt) case V4L2_PIX_FMT_SGBRG12P: descr = "12-bit Bayer GBGB/RGRG Packed"; break; case V4L2_PIX_FMT_SGRBG12P: descr = "12-bit Bayer GRGR/BGBG Packed"; break; case V4L2_PIX_FMT_SRGGB12P: descr = "12-bit Bayer RGRG/GBGB Packed"; break; + case V4L2_PIX_FMT_SBGGR14P: descr = "14-bit Bayer BGBG/GRGR Packed"; break; + case V4L2_PIX_FMT_SGBRG14P: descr = "14-bit Bayer GBGB/RGRG Packed"; break; + case V4L2_PIX_FMT_SGRBG14P: descr = "14-bit Bayer GRGR/BGBG Packed"; break; + case V4L2_PIX_FMT_SRGGB14P: descr = "14-bit Bayer RGRG/GBGB Packed"; break; case V4L2_PIX_FMT_SBGGR16: descr = "16-bit Bayer BGBG/GRGR"; break; case V4L2_PIX_FMT_SGBRG16: descr = "16-bit Bayer GBGB/RGRG"; break; case V4L2_PIX_FMT_SGRBG16: descr = "16-bit Bayer GRGR/BGBG"; break;