Skip to content

Commit 5dcbda6

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 d19d48e commit 5dcbda6

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
@@ -1006,7 +1006,7 @@ static const struct imx477_mode supported_modes_12bit[] = {
10061006
/* 12MPix 10fps mode */
10071007
.width = 4056,
10081008
.height = 3040,
1009-
.line_length_pix = 0x5dc0,
1009+
.line_length_pix = 24000,
10101010
.crop = {
10111011
.left = IMX477_PIXEL_ARRAY_LEFT,
10121012
.top = IMX477_PIXEL_ARRAY_TOP,
@@ -1030,7 +1030,7 @@ static const struct imx477_mode supported_modes_12bit[] = {
10301030
/* 2x2 binned 40fps mode */
10311031
.width = 2028,
10321032
.height = 1520,
1033-
.line_length_pix = 0x31c4,
1033+
.line_length_pix = 12740,
10341034
.crop = {
10351035
.left = IMX477_PIXEL_ARRAY_LEFT,
10361036
.top = IMX477_PIXEL_ARRAY_TOP,
@@ -1054,7 +1054,7 @@ static const struct imx477_mode supported_modes_12bit[] = {
10541054
/* 1080p 50fps cropped mode */
10551055
.width = 2028,
10561056
.height = 1080,
1057-
.line_length_pix = 0x31c4,
1057+
.line_length_pix = 12740,
10581058
.crop = {
10591059
.left = IMX477_PIXEL_ARRAY_LEFT,
10601060
.top = IMX477_PIXEL_ARRAY_TOP + 440,

0 commit comments

Comments
 (0)