aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/pvrusb2/pvrusb2-hdw.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-hdw.c')
-rw-r--r--drivers/media/video/pvrusb2/pvrusb2-hdw.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-hdw.c b/drivers/media/video/pvrusb2/pvrusb2-hdw.c
index 16c7df9c093f..a26b5251ec1b 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-hdw.c
+++ b/drivers/media/video/pvrusb2/pvrusb2-hdw.c
@@ -3806,6 +3806,24 @@ static unsigned int pvr2_hdw_report_unlocked(struct pvr2_hdw *hdw,int which,
3806 buf,acnt, 3806 buf,acnt,
3807 "state: %s", 3807 "state: %s",
3808 pvr2_get_state_name(hdw->master_state)); 3808 pvr2_get_state_name(hdw->master_state));
3809 case 4: {
3810 struct pvr2_stream_stats stats;
3811 if (!hdw->vid_stream) break;
3812 pvr2_stream_get_stats(hdw->vid_stream,
3813 &stats,
3814 0);
3815 return scnprintf(
3816 buf,acnt,
3817 "Bytes streamed=%u"
3818 " URBs: queued=%u idle=%u ready=%u"
3819 " processed=%u failed=%u",
3820 stats.bytes_processed,
3821 stats.buffers_in_queue,
3822 stats.buffers_in_idle,
3823 stats.buffers_in_ready,
3824 stats.buffers_processed,
3825 stats.buffers_failed);
3826 }
3809 default: break; 3827 default: break;
3810 } 3828 }
3811 return 0; 3829 return 0;