Skip to content

Commit 7a9f97a

Browse files
committed
media: imx477: Convert line_length_pix values to decimal
line_length_pix is a value that the developer wants to know, so write the values in decimal. Signed-off-by: Dave Stevenson <[email protected]>
1 parent 3cd6dba commit 7a9f97a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/media/i2c/imx477.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -990,7 +990,7 @@ static const struct imx477_mode supported_modes_12bit[] = {
990990
/* 12MPix 10fps mode */
991991
.width = 4056,
992992
.height = 3040,
993-
.line_length_pix = 0x5dc0,
993+
.line_length_pix = 24000,
994994
.crop = {
995995
.left = IMX477_PIXEL_ARRAY_LEFT,
996996
.top = IMX477_PIXEL_ARRAY_TOP,
@@ -1014,7 +1014,7 @@ static const struct imx477_mode supported_modes_12bit[] = {
10141014
/* 2x2 binned 40fps mode */
10151015
.width = 2028,
10161016
.height = 1520,
1017-
.line_length_pix = 0x31c4,
1017+
.line_length_pix = 12740,
10181018
.crop = {
10191019
.left = IMX477_PIXEL_ARRAY_LEFT,
10201020
.top = IMX477_PIXEL_ARRAY_TOP,
@@ -1038,7 +1038,7 @@ static const struct imx477_mode supported_modes_12bit[] = {
10381038
/* 1080p 50fps cropped mode */
10391039
.width = 2028,
10401040
.height = 1080,
1041-
.line_length_pix = 0x31c4,
1041+
.line_length_pix = 12740,
10421042
.crop = {
10431043
.left = IMX477_PIXEL_ARRAY_LEFT,
10441044
.top = IMX477_PIXEL_ARRAY_TOP + 440,

0 commit comments

Comments
 (0)