From d67d4218f2cb65f79907110b2c1a5b91cad1467a Mon Sep 17 00:00:00 2001
From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Date: Tue, 8 Apr 2025 18:19:03 +0300
Subject: vsp-lib: Use canonical media bus code names

The media-ctl utility names media bus codes by stripping the
MEDIA_BUS_FMT_ prefix from the kernel macro name. For a small set of
formats, alternative names are supported for historical reasons. Their
usage is discouraged, so use the canonical names in the tests.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 scripts/vsp-lib.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'scripts/vsp-lib.sh')

diff --git a/scripts/vsp-lib.sh b/scripts/vsp-lib.sh
index 2e1980d..85f3fde 100755
--- a/scripts/vsp-lib.sh
+++ b/scripts/vsp-lib.sh
@@ -532,7 +532,7 @@ pipe_configure() {
 format_v4l2_to_mbus() {
 	case $1 in
 	RGB332 | ARGB555 | XRGB555 | RGB565 | BGR24 | RGB24 | XBGR32 | XRGB32 | ABGR32 | ARGB32)
-		echo "ARGB32";
+		echo "ARGB8888_1X32";
 		;;
 
 	HSV24 | HSV32)
@@ -540,7 +540,7 @@ format_v4l2_to_mbus() {
 		;;
 
 	UYVY | VYUY | YUYV | YVYU | NV12M | NV16M | NV21M | NV61M | YUV420M | YUV422M | YUV444M | YVU420M | YVU422M | YVU444M)
-		echo "AYUV32"
+		echo "AYUV8_1X32"
 		;;
 
 	*)
@@ -558,7 +558,7 @@ format_v4l2_to_mbus() {
 
 format_v4l2_is_yuv() {
 	local format=$(format_v4l2_to_mbus $1)
-	[ $format = 'AYUV32' ]
+	[ $format = 'AYUV8_1X32' ]
 }
 
 format_rpf() {
-- 
cgit v1.2.3