diff options
author | Mike Isely <isely@pobox.com> | 2006-02-22 23:47:36 -0600 |
---|---|---|
committer | Mike Isely <isely@pobox.com> | 2006-02-22 23:47:36 -0600 |
commit | eb9221b1b87ce87b3d22458d78fa0b6d2dd848c7 (patch) | |
tree | ea2d53e41507af16937f01115cefeb43dd95da07 /v4l_experimental/pvrusb2/pvrusb2-hdw.c | |
parent | e3ac0002e5f30d492444f7d6e221c634c07b8d83 (diff) | |
download | mediapointer-dvb-s2-eb9221b1b87ce87b3d22458d78fa0b6d2dd848c7.tar.gz mediapointer-dvb-s2-eb9221b1b87ce87b3d22458d78fa0b6d2dd848c7.tar.bz2 |
Implement LOG_STATUS in pvrusb2
From: Mike Isely <isely@pobox.com>
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 <isely@pobox.com>
Diffstat (limited to 'v4l_experimental/pvrusb2/pvrusb2-hdw.c')
-rw-r--r-- | v4l_experimental/pvrusb2/pvrusb2-hdw.c | 10 |
1 files changed, 10 insertions, 0 deletions
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; |