Skip to content

Commit 2c61995

Browse files
Cai YiWeirkhuangtao
authored andcommitted
media: rockchip: isp1: fix sp rgb output format
sp rgb888 format is bgrx 32bit in memory, change to BGRX. sp rgb666 format is 2bit unused + 6bit data as b/g/r, append 1bits unused, 32bit in memory, no V4L2 format apply to it, so delete it. Change-Id: Iff8c2e560030d76b26d81faff19a3bd49ca33643 Signed-off-by: Cai YiWei <cyw@rock-chips.com>
1 parent ac0c5d3 commit 2c61995

1 file changed

Lines changed: 3 additions & 10 deletions

File tree

  • drivers/media/platform/rockchip/isp1

drivers/media/platform/rockchip/isp1/capture.c

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -503,9 +503,9 @@ static const struct capture_fmt sp_fmts[] = {
503503
},
504504
/* rgb */
505505
{
506-
.fourcc = V4L2_PIX_FMT_RGB24,
506+
.fourcc = V4L2_PIX_FMT_XBGR32,
507507
.fmt_type = FMT_RGB,
508-
.bpp = { 24 },
508+
.bpp = { 32 },
509509
.mplanes = 1,
510510
.write_format = MI_CTRL_SP_WRITE_PLA,
511511
.output_format = MI_CTRL_SP_OUTPUT_RGB888,
@@ -516,14 +516,7 @@ static const struct capture_fmt sp_fmts[] = {
516516
.mplanes = 1,
517517
.write_format = MI_CTRL_SP_WRITE_PLA,
518518
.output_format = MI_CTRL_SP_OUTPUT_RGB565,
519-
}, {
520-
.fourcc = V4L2_PIX_FMT_BGR666,
521-
.fmt_type = FMT_RGB,
522-
.bpp = { 18 },
523-
.mplanes = 1,
524-
.write_format = MI_CTRL_SP_WRITE_PLA,
525-
.output_format = MI_CTRL_SP_OUTPUT_RGB666,
526-
},
519+
}
527520
};
528521

529522
static const struct capture_fmt raw_fmts[] = {

0 commit comments

Comments
 (0)