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

media: v4l2-core: v4l2-dv-timings: support DRM IFs

Add support for DRM (Dynamic Range and Mastering) InfoFrames.

Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

authored by

Hans Verkuil and committed by
Mauro Carvalho Chehab
0b6cb344 34837c44

+5
+4
drivers/media/v4l2-core/v4l2-dv-timings.c
··· 1226 1226 DEBUGFS_FOPS(audio, V4L2_DEBUGFS_IF_AUDIO); 1227 1227 DEBUGFS_FOPS(spd, V4L2_DEBUGFS_IF_SPD); 1228 1228 DEBUGFS_FOPS(hdmi, V4L2_DEBUGFS_IF_HDMI); 1229 + DEBUGFS_FOPS(drm, V4L2_DEBUGFS_IF_DRM); 1229 1230 1230 1231 struct v4l2_debugfs_if *v4l2_debugfs_if_alloc(struct dentry *root, u32 if_types, 1231 1232 void *priv, ··· 1256 1255 if (if_types & V4L2_DEBUGFS_IF_HDMI) 1257 1256 debugfs_create_file("hdmi", 0400, infoframes->if_dir, 1258 1257 infoframes, &infoframe_hdmi_fops); 1258 + if (if_types & V4L2_DEBUGFS_IF_DRM) 1259 + debugfs_create_file("hdr_drm", 0400, infoframes->if_dir, 1260 + infoframes, &infoframe_drm_fops); 1259 1261 return infoframes; 1260 1262 } 1261 1263 EXPORT_SYMBOL_GPL(v4l2_debugfs_if_alloc);
+1
include/media/v4l2-dv-timings.h
··· 275 275 #define V4L2_DEBUGFS_IF_AUDIO BIT(1) 276 276 #define V4L2_DEBUGFS_IF_SPD BIT(2) 277 277 #define V4L2_DEBUGFS_IF_HDMI BIT(3) 278 + #define V4L2_DEBUGFS_IF_DRM BIT(4) 278 279 279 280 typedef ssize_t (*v4l2_debugfs_if_read_t)(u32 type, void *priv, 280 281 struct file *filp, char __user *ubuf,