diff mbox

[2/5] vin-tests: Add function to propagate digital format

Message ID 1526032839-14536-3-git-send-email-jacopo@jmondi.org (mailing list archive)
State Not Applicable
Delegated to: Geert Uytterhoeven
Headers show

Commit Message

Jacopo Mondi May 11, 2018, 10 a.m. UTC
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 <jacopo@jmondi.org>
---
 scripts/vin-tests.sh | 9 +++++++++
 1 file changed, 9 insertions(+)

Comments

Niklas Söderlund May 11, 2018, 11:17 a.m. UTC | #1
Hi Jacopo,

Thanks for your patch,

On 2018-05-11 12:00:36 +0200, Jacopo Mondi wrote:
> 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.

Why is there a need to hard code the HDMI capture format? Can't the 
existing propagate functions which checks the format of the video source 
be extended to support the parallel capture tests?

> 
> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
> ---
>  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
> +}
> -- 
> 2.7.4
>
diff mbox

Patch

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
+}