From eb9221b1b87ce87b3d22458d78fa0b6d2dd848c7 Mon Sep 17 00:00:00 2001 From: Mike Isely Date: Wed, 22 Feb 2006 23:47:36 -0600 Subject: Implement LOG_STATUS in pvrusb2 From: Mike Isely Implement VIDIOC_LOG_STATUS ioctl() to the application. Implement generation of VIDIOC_LOG_STATUS to the modules. Implement trigger of VIDIOC_LOG_STATUS from sysfs when user cats a few key files, to help with debugging. Signed-off-by: Mike Isely --- v4l_experimental/pvrusb2/pvrusb2-hdw.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'v4l_experimental/pvrusb2/pvrusb2-hdw.c') diff --git a/v4l_experimental/pvrusb2/pvrusb2-hdw.c b/v4l_experimental/pvrusb2/pvrusb2-hdw.c index 940f105c2..a2620e421 100644 --- a/v4l_experimental/pvrusb2/pvrusb2-hdw.c +++ b/v4l_experimental/pvrusb2/pvrusb2-hdw.c @@ -1707,6 +1707,16 @@ struct pvr2_stream *pvr2_hdw_get_video_stream(struct pvr2_hdw *hp) } +void pvr2_hdw_trigger_module_log(struct pvr2_hdw *hdw) +{ + LOCK_TAKE(hdw->big_lock); do { + hdw->log_requested = !0; + pvr2_i2c_core_check_stale(hdw); + hdw->log_requested = 0; + pvr2_i2c_core_sync(hdw); + } while (0); LOCK_GIVE(hdw->big_lock); +} + void pvr2_hdw_cpufw_set_enabled(struct pvr2_hdw *hdw, int enable_flag) { int ret; -- cgit v1.2.3