hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/include/media/tpg/v4l2-tpg.h
....@@ -241,7 +241,7 @@
241241
242242 void tpg_set_font(const u8 *f);
243243 void tpg_gen_text(const struct tpg_data *tpg,
244
- u8 *basep[TPG_MAX_PLANES][2], int y, int x, char *text);
244
+ u8 *basep[TPG_MAX_PLANES][2], int y, int x, const char *text);
245245 void tpg_calc_text_basep(struct tpg_data *tpg,
246246 u8 *basep[TPG_MAX_PLANES][2], unsigned p, u8 *vbuf);
247247 unsigned tpg_g_interleaved_plane(const struct tpg_data *tpg, unsigned buf_line);
....@@ -252,6 +252,7 @@
252252 bool tpg_s_fourcc(struct tpg_data *tpg, u32 fourcc);
253253 void tpg_s_crop_compose(struct tpg_data *tpg, const struct v4l2_rect *crop,
254254 const struct v4l2_rect *compose);
255
+const char *tpg_g_color_order(const struct tpg_data *tpg);
255256
256257 static inline void tpg_s_pattern(struct tpg_data *tpg, enum tpg_pattern pattern)
257258 {
....@@ -324,6 +325,7 @@
324325 static inline void tpg_s_hue(struct tpg_data *tpg,
325326 s16 hue)
326327 {
328
+ hue = clamp_t(s16, hue, -128, 128);
327329 if (tpg->hue == hue)
328330 return;
329331 tpg->hue = hue;