From patchwork Sat Mar 28 10:56:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dafna Hirschfeld X-Patchwork-Id: 11463493 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D3FAA92C for ; Sat, 28 Mar 2020 10:56:31 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B3258206CC for ; Sat, 28 Mar 2020 10:56:31 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="RZ/HNf9a" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B3258206CC Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=collabora.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date:Subject:To: From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=oulvCGXQBDkuqLIYnQ44O0wleqfhxQPaP0PDI8Gyz/s=; b=RZ/HNf9aTA/Buy K1iSsr4eVB7cbUZWsHUHpvakGIwLHx31pNV7Ea9A86eCU+swDCe059moBaAvE5rsFMCllZmLPXQBk UiYqpH8NsXyfh+vfFB5q3GVWiK4A8TWUK3M2bEEXFdj6SSzxFs1p0n8+nR4cJfWi5FRKBJxx40301 77hLmqS/7f/XYXYDDlboEGI5KYG8y03BbS+cHBwChfYKc+Afx9l5qimor7BwGVuOiCmmW4HSOwYo1 CKDi4qYGsdb7KguZQBEdjdGP33UUQkL2eDumJY/YAI8IByIJ9DNkVAGR5eCSEjVraRws9dvjXR//P 4/bq0cpVDOCD1KOLRBiA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jI98a-0002pQ-Ha; Sat, 28 Mar 2020 10:56:24 +0000 Received: from bhuna.collabora.co.uk ([2a00:1098:0:82:1000:25:2eeb:e3e3]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jI98X-0002ns-G1 for linux-rockchip@lists.infradead.org; Sat, 28 Mar 2020 10:56:23 +0000 Received: from localhost.localdomain (unknown [IPv6:2a02:810a:1140:6758:90b5:2774:1094:333f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: dafna) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id E879628FC8E; Sat, 28 Mar 2020 10:56:17 +0000 (GMT) From: Dafna Hirschfeld To: linux-media@vger.kernel.org, dafna.hirschfeld@collabora.com, helen.koike@collabora.com, ezequiel@collabora.com, hverkuil@xs4all.nl, kernel@collabora.com, dafna3@gmail.com, sakari.ailus@linux.intel.com, linux-rockchip@lists.infradead.org, mchehab@kernel.org, laurent.pinchart@ideasonboard.com Subject: [PATCH 0/3] media: staging: rkisp1: add support for RGB formats Date: Sat, 28 Mar 2020 11:56:03 +0100 Message-Id: <20200328105606.13660-1-dafna.hirschfeld@collabora.com> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200328_035621_675289_42805998 X-CRM114-Status: UNSURE ( 8.70 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on bombadil.infradead.org summary: Content analysis details: (-0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org Add support for RGB formats in rkisp1, (currently only RGB565 is correctly captured) The patchset is rebased on top of patch "media: staging: rkisp1: cap: remove field fmt_type from struct rkisp1_capture_fmt_cfg" patches summary: patch 1: fix a redundant call to v4l2_format_info in the resizer code patch 2: fix a bug that changes the default hdiv,vdiv in the resizer scale for RGB formats. This bug changes the YUV ratios from 4:2:2 to 4:4:4 and the capture for RGB times out patch 3: removes the restriction in the validation function of the capture that forces the mbus encoding to be the same as the capture encoding. This is because for RGB formats the mbus format should be MEDIA_BUS_FMT_YUYV8_2X8 Dafna Hirschfeld (3): media: staging: rkisp1: rsz: get the capture format info from the capture struct media: staging: rkisp1: rsz: change (hv)div only if capture format is YUV media: staging: rkisp1: cap: enable RGB capture format with YUV media bus drivers/staging/media/rkisp1/rkisp1-capture.c | 7 +++++-- drivers/staging/media/rkisp1/rkisp1-resizer.c | 19 ++++++++++++++----- 2 files changed, 19 insertions(+), 7 deletions(-)