diff mbox series

[vsp-tests,13/16] vsp-lib: Use canonical media bus code names

Message ID 20250409004758.11014-14-laurent.pinchart@ideasonboard.com (mailing list archive)
State New
Delegated to: Kieran Bingham
Headers show
Series Add color space conversion test | expand

Commit Message

Laurent Pinchart April 9, 2025, 12:47 a.m. UTC
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(-)
diff mbox series

Patch

diff --git a/scripts/vsp-lib.sh b/scripts/vsp-lib.sh
index 2e1980d5debb..85f3fdef69d1 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() {