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

media: v4l2-subdev: Add debug prints to v4l2_subdev_collect_streams()

Print streams found by v4l2_subdev_collect_streams() at debug level. This
could be useful in debugging drivers, userspace programs or the framework
itself.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>

authored by

Sakari Ailus and committed by
Hans Verkuil
0bb005ac f9869166

+7
+7
drivers/media/v4l2-core/v4l2-subdev.c
··· 2233 2233 *found_streams = BIT_ULL(0); 2234 2234 *enabled_streams = 2235 2235 (sd->enabled_pads & BIT_ULL(pad)) ? BIT_ULL(0) : 0; 2236 + dev_dbg(sd->dev, 2237 + "collect_streams: sub-device \"%s\" does not support streams\n", 2238 + sd->entity.name); 2236 2239 return; 2237 2240 } 2238 2241 ··· 2253 2250 if (cfg->enabled) 2254 2251 *enabled_streams |= BIT_ULL(cfg->stream); 2255 2252 } 2253 + 2254 + dev_dbg(sd->dev, 2255 + "collect_streams: \"%s\":%u: found %#llx enabled %#llx\n", 2256 + sd->entity.name, pad, *found_streams, *enabled_streams); 2256 2257 } 2257 2258 2258 2259 static void v4l2_subdev_set_streams_enabled(struct v4l2_subdev *sd,