summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-03-01 22:35:16 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-07-15 13:46:18 +0300
commit4d3a118c11f5dc3a1eaa2e516015499d09ee773a (patch)
treeb04986a5fce8bb4a80a02e9e442bf0a92bfcf4fa /utils
parent9007d37939b971930252fd74b973b0d9c0c83eed (diff)
utils: rkisp1: Fix pixel format for raw capture
The regexp to convert the raw pixel media bus code to a pixel format is incorrect. Fix it. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Diffstat (limited to 'utils')
-rwxr-xr-xutils/rkisp1/rkisp1-capture.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/rkisp1/rkisp1-capture.sh b/utils/rkisp1/rkisp1-capture.sh
index eee6b802..2549779d 100755
--- a/utils/rkisp1/rkisp1-capture.sh
+++ b/utils/rkisp1/rkisp1-capture.sh
@@ -171,7 +171,7 @@ mediactl="media-ctl -d $mdev"
get_sensor_format "$sensor"
if [[ $raw == true ]] ; then
- capture_format=$(echo $sensor_mbus_code | sed 's/_[0-9X]$//')
+ capture_format=$(echo $sensor_mbus_code | sed 's/_[0-9X]*$//')
capture_mbus_code=$sensor_mbus_code
else
capture_format=YUYV