media: v4l2-ctrls: show all owned controls in log_status
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 17 Jan 2024 14:52:04 +0000 (15:52 +0100)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Mon, 5 Feb 2024 11:57:44 +0000 (12:57 +0100)
commit9801b5b28c6929139d6fceeee8d739cc67bb2739
treef1013e4b9d405a144f4f96ae142e12f20198014e
parent8674fd635f287a0652ae1459f6ebb15bc82c2707
media: v4l2-ctrls: show all owned controls in log_status

VIDIOC_LOG_STATUS will log the controls owned by the driver. But the
code didn't take into account the case where a single driver creates
multiple control handlers. A good example is the vivid driver, but
others use it as well.

Modify v4l2_ctrl_handler_log_status() so that it really shows all
controls owned by this driver.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/v4l2-core/v4l2-ctrls-core.c