From patchwork Fri May 11 10:00:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 10393835 X-Patchwork-Delegate: geert@linux-m68k.org 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 6585C602B1 for ; Fri, 11 May 2018 10:01:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 28E7828E62 for ; Fri, 11 May 2018 10:01:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1CAEC28E65; Fri, 11 May 2018 10:01:21 +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=-7.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI 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 9BC3E28E62 for ; Fri, 11 May 2018 10:01:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752989AbeEKKBU (ORCPT ); Fri, 11 May 2018 06:01:20 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:57205 "EHLO relay12.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752984AbeEKKBT (ORCPT ); Fri, 11 May 2018 06:01:19 -0400 Received: from w540.lan (2-224-242-101.ip172.fastwebnet.it [2.224.242.101]) (Authenticated sender: jacopo@jmondi.org) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 9B428200007; Fri, 11 May 2018 12:01:17 +0200 (CEST) From: Jacopo Mondi To: niklas.soderlund@ragnatech.se Cc: Jacopo Mondi , linux-renesas-soc@vger.kernel.org Subject: [PATCH 2/5] vin-tests: Add function to propagate digital format Date: Fri, 11 May 2018 12:00:36 +0200 Message-Id: <1526032839-14536-3-git-send-email-jacopo@jmondi.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1526032839-14536-1-git-send-email-jacopo@jmondi.org> References: <1526032839-14536-1-git-send-email-jacopo@jmondi.org> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add function to vin-tests.sh to propagate the HDMI format for the digital input use case. This is useful for D3 when capturing HDMI input from adv7612 at 640x480 resolution. Signed-off-by: Jacopo Mondi --- scripts/vin-tests.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/vin-tests.sh b/scripts/vin-tests.sh index 4a38d43..52e25b9 100644 --- a/scripts/vin-tests.sh +++ b/scripts/vin-tests.sh @@ -206,3 +206,12 @@ mc_propagate_cvbs() { mc_propagate_format "$cvbsname" 8 "$txbname" 0 "$csi20name" 1 "$vin" } + +# HDMI input from ADV7612 (D3 Draak) +mc_propagate_hdmi_digital() { + vin="$1" + vdev=$($mediactl -d $mdev -e "$vin" ) + + media-ctl -v -d $mdev -V "'$hdminame':1 [fmt:RGB888_1X24/640x480 field:none]" + yavta -f XBGR32 -s 640x480 --field none $vdev +}