diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2025-04-08 18:19:03 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2025-04-09 02:29:59 +0300 |
commit | d67d4218f2cb65f79907110b2c1a5b91cad1467a (patch) | |
tree | 8270712b0f6a3234de26694b5a0c4dee3fc51a35 | |
parent | 6d243b708ef0bcd86f700d49c2e72bba0f6aa964 (diff) |
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>
-rwxr-xr-x | scripts/vsp-lib.sh | 6 |
1 files changed, 3 insertions, 3 deletions
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() { |