diff options
author | Mike Isely <isely@pobox.com> | 2007-11-25 23:48:52 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-25 16:03:01 -0500 |
commit | 681c739944018d80dbcf7f19997eba97676c7116 (patch) | |
tree | 4c2f3ab63bfd852fba0ec87f69fe76e52fa4aa48 /drivers/media/video/pvrusb2/pvrusb2-v4l2.c | |
parent | 493977f016f2ff52fdca38d031c7211b4da658fd (diff) |
V4L/DVB (6691): pvrusb2: Rework pipeline state control
This is a new implementation for video pipeline control within the
pvrusb2 driver. Actual start/stop of the pipeline is moved to the
driver's kernel thread. Pipeline stages are controlled autonomously
based on surrounding pipeline or application control state. Kernel
thread management is also cleaned up and moved into the internal
control structure of the driver, solving a set up / tear down race
along the way. Better failure recovery is implemented with this new
control strategy. Also with this change comes better control of the
cx23416 encoder, building on additional information learned about the
peculiarities of controlling this part (this information was the
original trigger for this rework). With this change, overall encoder
stability should be considerably improved. Yes, this is a large
change for this driver, but due to the nature of the feature being
worked on, the changes are fairly pervasive and would be difficult to
break into smaller pieces with any semblence of step-wise stability.
Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-v4l2.c')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-v4l2.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-v4l2.c b/drivers/media/video/pvrusb2/pvrusb2-v4l2.c index 7a596ea7cfe6..6f06f595b86c 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-v4l2.c +++ b/drivers/media/video/pvrusb2/pvrusb2-v4l2.c | |||
@@ -1015,10 +1015,8 @@ static int pvr2_v4l2_iosetup(struct pvr2_v4l2_fh *fh) | |||
1015 | sp = fh->dev_info->stream->stream; | 1015 | sp = fh->dev_info->stream->stream; |
1016 | pvr2_stream_set_callback(sp,(pvr2_stream_callback)pvr2_v4l2_notify,fh); | 1016 | pvr2_stream_set_callback(sp,(pvr2_stream_callback)pvr2_v4l2_notify,fh); |
1017 | pvr2_hdw_set_stream_type(hdw,fh->dev_info->config); | 1017 | pvr2_hdw_set_stream_type(hdw,fh->dev_info->config); |
1018 | pvr2_hdw_set_streaming(hdw,!0); | 1018 | if ((ret = pvr2_hdw_set_streaming(hdw,!0)) < 0) return ret; |
1019 | ret = pvr2_ioread_set_enabled(fh->rhp,!0); | 1019 | return pvr2_ioread_set_enabled(fh->rhp,!0); |
1020 | |||
1021 | return ret; | ||
1022 | } | 1020 | } |
1023 | 1021 | ||
1024 | 1022 | ||