Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] adv7604: log alt-gamma and HDMI colorspace

Log the alternate gamma state and the HDMI colorspace that the adv
device detected.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>

authored by

Hans Verkuil and committed by
Mauro Carvalho Chehab
7a5d99e7 5dd7d88a

+12 -2
+12 -2
drivers/media/i2c/adv7604.c
··· 2222 2222 "invalid", "invalid", "invalid", "invalid", "invalid", 2223 2223 "invalid", "invalid", "automatic" 2224 2224 }; 2225 + static const char * const hdmi_color_space_txt[16] = { 2226 + "RGB limited range (16-235)", "RGB full range (0-255)", 2227 + "YCbCr Bt.601 (16-235)", "YCbCr Bt.709 (16-235)", 2228 + "xvYCC Bt.601", "xvYCC Bt.709", 2229 + "YCbCr Bt.601 (0-255)", "YCbCr Bt.709 (0-255)", 2230 + "sYCC", "Adobe YCC 601", "AdobeRGB", "invalid", "invalid", 2231 + "invalid", "invalid", "invalid" 2232 + }; 2225 2233 static const char * const rgb_quantization_range_txt[] = { 2226 2234 "Automatic", 2227 2235 "RGB limited range (16-235)", ··· 2297 2289 rgb_quantization_range_txt[state->rgb_quantization_range]); 2298 2290 v4l2_info(sd, "Input color space: %s\n", 2299 2291 input_color_space_txt[reg_io_0x02 >> 4]); 2300 - v4l2_info(sd, "Output color space: %s %s, saturator %s\n", 2292 + v4l2_info(sd, "Output color space: %s %s, saturator %s, alt-gamma %s\n", 2301 2293 (reg_io_0x02 & 0x02) ? "RGB" : "YCbCr", 2302 2294 (reg_io_0x02 & 0x04) ? "(16-235)" : "(0-255)", 2303 2295 (((reg_io_0x02 >> 2) & 0x01) ^ (reg_io_0x02 & 0x01)) ? 2304 - "enabled" : "disabled"); 2296 + "enabled" : "disabled", 2297 + (reg_io_0x02 & 0x08) ? "enabled" : "disabled"); 2305 2298 v4l2_info(sd, "Color space conversion: %s\n", 2306 2299 csc_coeff_sel_rb[cp_read(sd, info->cp_csc) >> 4]); 2307 2300 ··· 2339 2330 v4l2_info(sd, "AV Mute: %s\n", (hdmi_read(sd, 0x04) & 0x40) ? "on" : "off"); 2340 2331 2341 2332 v4l2_info(sd, "Deep color mode: %s\n", deep_color_mode_txt[(hdmi_read(sd, 0x0b) & 0x60) >> 5]); 2333 + v4l2_info(sd, "HDMI colorspace: %s\n", hdmi_color_space_txt[hdmi_read(sd, 0x53) & 0xf]); 2342 2334 2343 2335 adv76xx_log_infoframes(sd); 2344 2336 }