Skip to contentSkip to conversation

linux-next: manual merge of the drm tree with the v4l-dvb tree

DISCUSSION Stephen Rothwell 2 participants 2 messages Apr 15, 2015 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi Dave,

Today's linux-next merge of the drm tree got a conflict in include/uapi/linux/media-bus-format.h between commits 7b0fd4568bee ("[media] v4l: Add RBG and RGB 8:8:8 media bus formats on 24 and 32 bit busses"), e8b2d7a565ae ("[media] v4l: Sort YUV formats of v4l2_mbus_pixelcode") and 2dca0551e4e2 ("[media] v4l: Add VUY8 24 bits bus format") from the v4l-dvb tree and commits 4b3a81a917a5 ("Add RGB444_1X12 and RGB565_1X16 media bus formats"), b295c22978b8 ("Add LVDS RGB media bus formats"), 08c38458be7e ("Add BGR888_1X24 and GBR888_1X24 media bus formats") and 203508ef52e3 ("Add RGB666_1X24_CPADHI media bus format") from the drm tree.

I fixed it up (I think - see below) and can carry the fix as necessary (no action is required).

(what a mess :-()

Signature · 41 lines
Cheers,
Stephen Rothwell                    [email protected]

diff --cc include/uapi/linux/media-bus-format.h
index d391893064a0,83ea46f4be51..000000000000
--- a/include/uapi/linux/media-bus-format.h
+++ b/include/uapi/linux/media-bus-format.h
@@@ -43,12 -45,16 +45,18 @@@
  #define MEDIA_BUS_FMT_RGB565_2X8_BE		0x1007
  #define MEDIA_BUS_FMT_RGB565_2X8_LE		0x1008
  #define MEDIA_BUS_FMT_RGB666_1X18		0x1009
 +#define MEDIA_BUS_FMT_RBG888_1X24		0x100e
+ #define MEDIA_BUS_FMT_RGB666_1X24_CPADHI	0x1015
+ #define MEDIA_BUS_FMT_RGB666_1X7X3_SPWG		0x1010
+ #define MEDIA_BUS_FMT_BGR888_1X24		0x1013
+ #define MEDIA_BUS_FMT_GBR888_1X24		0x1014
  #define MEDIA_BUS_FMT_RGB888_1X24		0x100a
  #define MEDIA_BUS_FMT_RGB888_2X12_BE		0x100b
  #define MEDIA_BUS_FMT_RGB888_2X12_LE		0x100c
+ #define MEDIA_BUS_FMT_RGB888_1X7X4_SPWG		0x1011
+ #define MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA	0x1012
  #define MEDIA_BUS_FMT_ARGB8888_1X32		0x100d
 +#define MEDIA_BUS_FMT_RGB888_1X32_PADHI		0x100f
  
  /* YUV (including grey) - next is	0x2025 */
  #define MEDIA_BUS_FMT_Y8_1X8			0x2001
@@@ -80,7 -82,13 +88,8 @@@
  #define MEDIA_BUS_FMT_VYUY10_1X20		0x201b
  #define MEDIA_BUS_FMT_YUYV10_1X20		0x200d
  #define MEDIA_BUS_FMT_YVYU10_1X20		0x200e
+ #define MEDIA_BUS_FMT_YUV8_1X24			0x2024
 -#define MEDIA_BUS_FMT_YUV10_1X30		0x2016
 -#define MEDIA_BUS_FMT_AYUV8_1X32		0x2017
 -#define MEDIA_BUS_FMT_UYVY12_2X12		0x201c
 -#define MEDIA_BUS_FMT_VYUY12_2X12		0x201d
 -#define MEDIA_BUS_FMT_YUYV12_2X12		0x201e
 -#define MEDIA_BUS_FMT_YVYU12_2X12		0x201f
 +#define MEDIA_BUS_FMT_VUY8_1X24			0x2024
  #define MEDIA_BUS_FMT_UYVY12_1X24		0x2020
  #define MEDIA_BUS_FMT_VYUY12_1X24		0x2021
  #define MEDIA_BUS_FMT_YUYV12_1X24		0x2022
#1 lore raw

Am Mittwoch, den 15.04.2015, 13:49 +1000 schrieb Stephen Rothwell:

Quoted 13 lines

Hi Dave,

Today's linux-next merge of the drm tree got a conflict in include/uapi/linux/media-bus-format.h between commits 7b0fd4568bee ("[media] v4l: Add RBG and RGB 8:8:8 media bus formats on 24 and 32 bit busses"), e8b2d7a565ae ("[media] v4l: Sort YUV formats of v4l2_mbus_pixelcode") and 2dca0551e4e2 ("[media] v4l: Add VUY8 24 bits bus format") from the v4l-dvb tree and commits 4b3a81a917a5 ("Add RGB444_1X12 and RGB565_1X16 media bus formats"), b295c22978b8 ("Add LVDS RGB media bus formats"), 08c38458be7e ("Add BGR888_1X24 and GBR888_1X24 media bus formats") and 203508ef52e3 ("Add RGB666_1X24_CPADHI media bus format") from the drm tree.

Quoted 4 lines

I fixed it up (I think - see below) and can carry the fix as necessary (no action is required).

(what a mess :-()

I remember Sakari warned about this when I posted my part of these conflicting changes to linux-media.
How about this fixup to get rid of the duplicated values:

-----8<-----

include/uapi/linux/media-bus-format.h +5 -5
index 7f6a9f5..54344c2 100644
@@ -33,7 +33,7 @@
 
 #define MEDIA_BUS_FMT_FIXED			0x0001
 
-/* RGB - next is	0x1016 */
+/* RGB - next is	0x1018 */
 #define MEDIA_BUS_FMT_RGB444_1X12		0x100e
 #define MEDIA_BUS_FMT_RGB444_2X8_PADHI_BE	0x1001
 #define MEDIA_BUS_FMT_RGB444_2X8_PADHI_LE	0x1002
@@ -45,7 +45,7 @@
 #define MEDIA_BUS_FMT_RGB565_2X8_BE		0x1007
 #define MEDIA_BUS_FMT_RGB565_2X8_LE		0x1008
 #define MEDIA_BUS_FMT_RGB666_1X18		0x1009
-#define MEDIA_BUS_FMT_RBG888_1X24		0x100e
+#define MEDIA_BUS_FMT_RBG888_1X24		0x1016
 #define MEDIA_BUS_FMT_RGB666_1X24_CPADHI	0x1015
 #define MEDIA_BUS_FMT_RGB666_1X7X3_SPWG		0x1010
 #define MEDIA_BUS_FMT_BGR888_1X24		0x1013
@@ -56,9 +56,9 @@
 #define MEDIA_BUS_FMT_RGB888_1X7X4_SPWG		0x1011
 #define MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA	0x1012
 #define MEDIA_BUS_FMT_ARGB8888_1X32		0x100d
-#define MEDIA_BUS_FMT_RGB888_1X32_PADHI		0x100f
+#define MEDIA_BUS_FMT_RGB888_1X32_PADHI		0x1017
 
-/* YUV (including grey) - next is	0x2025 */
+/* YUV (including grey) - next is	0x2026 */
 #define MEDIA_BUS_FMT_Y8_1X8			0x2001
 #define MEDIA_BUS_FMT_UV8_1X8			0x2015
 #define MEDIA_BUS_FMT_UYVY8_1_5X8		0x2002
@@ -89,7 +89,7 @@
 #define MEDIA_BUS_FMT_YUYV10_1X20		0x200d
 #define MEDIA_BUS_FMT_YVYU10_1X20		0x200e
 #define MEDIA_BUS_FMT_YUV8_1X24			0x2024
-#define MEDIA_BUS_FMT_VUY8_1X24			0x2024
+#define MEDIA_BUS_FMT_VUY8_1X24			0x2025
 #define MEDIA_BUS_FMT_UYVY12_1X24		0x2020
 #define MEDIA_BUS_FMT_VYUY12_1X24		0x2021
 #define MEDIA_BUS_FMT_YUYV12_1X24		0x2022
Signature · 5 lines
2.1.4
----->8-----

regards
Philipp