Browse Source

[media] bdisp: add debug info for RGB24 format

Add this missing debug information

Signed-off-by: Fabien Dessenne <fabien.dessenne@st.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Fabien Dessenne 10 years ago
parent
commit
24310279eb
1 changed files with 8 additions and 0 deletions
  1. 8 0
      drivers/media/platform/sti/bdisp/bdisp-debug.c

+ 8 - 0
drivers/media/platform/sti/bdisp/bdisp-debug.c

@@ -116,6 +116,9 @@ static void bdisp_dbg_dump_tty(struct seq_file *s, u32 val)
 	case BDISP_RGB565:
 	case BDISP_RGB565:
 		seq_puts(s, "RGB565 - ");
 		seq_puts(s, "RGB565 - ");
 		break;
 		break;
+	case BDISP_RGB888:
+		seq_puts(s, "RGB888 - ");
+		break;
 	case BDISP_XRGB8888:
 	case BDISP_XRGB8888:
 		seq_puts(s, "xRGB888 - ");
 		seq_puts(s, "xRGB888 - ");
 		break;
 		break;
@@ -185,6 +188,9 @@ static void bdisp_dbg_dump_sty(struct seq_file *s,
 	case BDISP_RGB565:
 	case BDISP_RGB565:
 		seq_puts(s, "RGB565 - ");
 		seq_puts(s, "RGB565 - ");
 		break;
 		break;
+	case BDISP_RGB888:
+		seq_puts(s, "RGB888 - ");
+		break;
 	case BDISP_XRGB8888:
 	case BDISP_XRGB8888:
 		seq_puts(s, "xRGB888 - ");
 		seq_puts(s, "xRGB888 - ");
 		break;
 		break;
@@ -420,6 +426,8 @@ static const char *bdisp_fmt_to_str(struct bdisp_frame frame)
 			return "NV12";
 			return "NV12";
 	case V4L2_PIX_FMT_RGB565:
 	case V4L2_PIX_FMT_RGB565:
 		return "RGB16";
 		return "RGB16";
+	case V4L2_PIX_FMT_RGB24:
+		return "RGB24";
 	case V4L2_PIX_FMT_XBGR32:
 	case V4L2_PIX_FMT_XBGR32:
 		return "XRGB";
 		return "XRGB";
 	case V4L2_PIX_FMT_ABGR32:
 	case V4L2_PIX_FMT_ABGR32: