Skip to content

Commit

Permalink
drivers: display: gc9x01x: fix correct mipi buffer size
Browse files Browse the repository at this point in the history
mipi api allows only buffers where pitch is equal to width.
buffers with smaller width get split into multiple transmissions
but mipi buffer size was set incorrectly.

Signed-off-by: Manuel Martin <[email protected]>
  • Loading branch information
Casales authored and kartben committed Nov 22, 2024
1 parent 054d60f commit 479ee9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/display/display_gc9x01x.c
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ static int gc9x01x_write(const struct device *dev, const uint16_t x, const uint1
write_h = 1U;
nbr_of_writes = desc->height;
mipi_desc.height = 1;
mipi_desc.buf_size = desc->pitch * data->bytes_per_pixel;
mipi_desc.buf_size = desc->width * data->bytes_per_pixel;
} else {
write_h = desc->height;
mipi_desc.height = desc->height;
Expand Down

0 comments on commit 479ee9e

Please sign in to comment.