Commit 5fd67a1
media: gc2145: Fix the RGB MBUS format
Upstream series https://lore.kernel.org/linux-media/[email protected]/
The GalaxyCore GC2145 is an MIPI-CSI2 sensor. Among others, it support
the MIPI-CSI2 RGB565 format, listed in the driver as
MEDIA_BUS_FMT_RGB565_1X16.
Most CSI2 receiver drivers then map MEDIA_BUS_FMT_RGB565_1X16 to
V4L2_PIX_FMT_RGB565.
However, V4L2_PIX_FMT_RGB565 is defined as having its color components
in the R, G and B order, from left to right. MIPI-CSI2 however defines
the RGB565 format with blue first.
This essentially means that the R and B will be swapped compared to what
V4L2_PIX_FMT_RGB565 defines.
The proper MBUS format would be BGR565, so let's use that.
Fixes: 03cc7fe ("media: i2c: gc2145: Galaxy Core GC2145 sensor support")
Signed-off-by: Maxime Ripard <[email protected]>1 parent 2679781 commit 5fd67a1
1 file changed
+22
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
582 | 582 | | |
583 | 583 | | |
584 | 584 | | |
585 | | - | |
| 585 | + | |
586 | 586 | | |
587 | 587 | | |
588 | 588 | | |
| |||
616 | 616 | | |
617 | 617 | | |
618 | 618 | | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
619 | 634 | | |
620 | 635 | | |
621 | 636 | | |
| |||
661 | 676 | | |
662 | 677 | | |
663 | 678 | | |
| 679 | + | |
664 | 680 | | |
665 | 681 | | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
666 | 686 | | |
667 | 687 | | |
668 | 688 | | |
| |||
699 | 719 | | |
700 | 720 | | |
701 | 721 | | |
702 | | - | |
| 722 | + | |
703 | 723 | | |
704 | 724 | | |
705 | 725 | | |
| |||
0 commit comments