aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Walls <awalls@radix.net>2009-12-31 20:27:28 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-02-26 13:10:30 -0500
commit9bff2d61716bffe5e1d58de9eb940c62bb020fcf (patch)
tree65fb58e5ee023b340d36e8eb5ef5ca3c7af2d8ac
parent82acdc84cc4acc11389bdc648b23b15426d2038c (diff)
V4L/DVB (13909): cx18: Clean up dead code from ivtv once used for IDX processing
Signed-off-by: Andy Walls <awalls@radix.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/video/cx18/cx18-driver.h14
-rw-r--r--drivers/media/video/cx18/cx18-fileops.c4
2 files changed, 1 insertions, 17 deletions
diff --git a/drivers/media/video/cx18/cx18-driver.h b/drivers/media/video/cx18/cx18-driver.h
index 930bab647467..fecebf3fb556 100644
--- a/drivers/media/video/cx18/cx18-driver.h
+++ b/drivers/media/video/cx18/cx18-driver.h
@@ -246,16 +246,8 @@ struct cx18_enc_idx_entry {
246#define CX18_WARN_DEV(dev, fmt, args...) v4l2_warn(dev, fmt , ## args) 246#define CX18_WARN_DEV(dev, fmt, args...) v4l2_warn(dev, fmt , ## args)
247#define CX18_INFO_DEV(dev, fmt, args...) v4l2_info(dev, fmt , ## args) 247#define CX18_INFO_DEV(dev, fmt, args...) v4l2_info(dev, fmt , ## args)
248 248
249/* Values for CX18_API_DEC_PLAYBACK_SPEED mpeg_frame_type_mask parameter: */
250#define MPEG_FRAME_TYPE_IFRAME 1
251#define MPEG_FRAME_TYPE_IFRAME_PFRAME 3
252#define MPEG_FRAME_TYPE_ALL 7
253
254#define CX18_MAX_PGM_INDEX (400)
255
256extern int cx18_debug; 249extern int cx18_debug;
257 250
258
259struct cx18_options { 251struct cx18_options {
260 int megabytes[CX18_MAX_STREAMS]; /* Size in megabytes of each stream */ 252 int megabytes[CX18_MAX_STREAMS]; /* Size in megabytes of each stream */
261 int cardtype; /* force card type on load */ 253 int cardtype; /* force card type on load */
@@ -599,12 +591,6 @@ struct cx18 {
599 591
600 struct vbi_info vbi; 592 struct vbi_info vbi;
601 593
602 u32 pgm_info_offset;
603 u32 pgm_info_num;
604 u32 pgm_info_write_idx;
605 u32 pgm_info_read_idx;
606 struct v4l2_enc_idx_entry pgm_info[CX18_MAX_PGM_INDEX];
607
608 u64 mpg_data_received; 594 u64 mpg_data_received;
609 u64 vbi_data_inserted; 595 u64 vbi_data_inserted;
610 596
diff --git a/drivers/media/video/cx18/cx18-fileops.c b/drivers/media/video/cx18/cx18-fileops.c
index d522d84906e1..eef842b87651 100644
--- a/drivers/media/video/cx18/cx18-fileops.c
+++ b/drivers/media/video/cx18/cx18-fileops.c
@@ -207,9 +207,7 @@ static struct cx18_mdl *cx18_get_mdl(struct cx18_stream *s, int non_block,
207 *err = 0; 207 *err = 0;
208 while (1) { 208 while (1) {
209 if (s->type == CX18_ENC_STREAM_TYPE_MPG) { 209 if (s->type == CX18_ENC_STREAM_TYPE_MPG) {
210 /* Process pending program info updates and pending 210 /* Process pending program updates and VBI data */
211 VBI data */
212
213 if (time_after(jiffies, cx->dualwatch_jiffies + msecs_to_jiffies(1000))) { 211 if (time_after(jiffies, cx->dualwatch_jiffies + msecs_to_jiffies(1000))) {
214 cx->dualwatch_jiffies = jiffies; 212 cx->dualwatch_jiffies = jiffies;
215 cx18_dualwatch(cx); 213 cx18_dualwatch(cx);