aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2006-12-18 20:52:21 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-02-21 10:34:13 -0500
commit75558ab92dc95c3b5a99df7c77e95a6e8484e05c (patch)
treec2141e03cc8cb522019a5d572bdcc31fc3fa5875 /drivers
parent20a919f7960df1c0bf1cb4f637149ed4b6bc9ec3 (diff)
V4L/DVB (4986): Removed unimplemented cx2341x API commands
The commands CX2341X_DEC_SET_AUDIO_OUTPUT, CX2341X_DEC_SET_AV_DELAY and CX2341X_ENC_SET_3_2_PULLDOWN are not implemented in the Conexant firmware. So these commands are removed. This also means that the V4L2_CID_MPEG_VIDEO_PULLDOWN control in cx2341x.c and pvrusb2-hdw.c is removed. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/video/cx2341x.c17
-rw-r--r--drivers/media/video/pvrusb2/pvrusb2-hdw.c3
2 files changed, 2 insertions, 18 deletions
diff --git a/drivers/media/video/cx2341x.c b/drivers/media/video/cx2341x.c
index 2f5ca71e0261..d60cd5ecf821 100644
--- a/drivers/media/video/cx2341x.c
+++ b/drivers/media/video/cx2341x.c
@@ -56,7 +56,6 @@ const u32 cx2341x_mpeg_ctrls[] = {
56 V4L2_CID_MPEG_VIDEO_B_FRAMES, 56 V4L2_CID_MPEG_VIDEO_B_FRAMES,
57 V4L2_CID_MPEG_VIDEO_GOP_SIZE, 57 V4L2_CID_MPEG_VIDEO_GOP_SIZE,
58 V4L2_CID_MPEG_VIDEO_GOP_CLOSURE, 58 V4L2_CID_MPEG_VIDEO_GOP_CLOSURE,
59 V4L2_CID_MPEG_VIDEO_PULLDOWN,
60 V4L2_CID_MPEG_VIDEO_BITRATE_MODE, 59 V4L2_CID_MPEG_VIDEO_BITRATE_MODE,
61 V4L2_CID_MPEG_VIDEO_BITRATE, 60 V4L2_CID_MPEG_VIDEO_BITRATE,
62 V4L2_CID_MPEG_VIDEO_BITRATE_PEAK, 61 V4L2_CID_MPEG_VIDEO_BITRATE_PEAK,
@@ -118,9 +117,6 @@ static int cx2341x_get_ctrl(struct cx2341x_mpeg_params *params,
118 case V4L2_CID_MPEG_VIDEO_GOP_CLOSURE: 117 case V4L2_CID_MPEG_VIDEO_GOP_CLOSURE:
119 ctrl->value = params->video_gop_closure; 118 ctrl->value = params->video_gop_closure;
120 break; 119 break;
121 case V4L2_CID_MPEG_VIDEO_PULLDOWN:
122 ctrl->value = params->video_pulldown;
123 break;
124 case V4L2_CID_MPEG_VIDEO_BITRATE_MODE: 120 case V4L2_CID_MPEG_VIDEO_BITRATE_MODE:
125 ctrl->value = params->video_bitrate_mode; 121 ctrl->value = params->video_bitrate_mode;
126 break; 122 break;
@@ -231,9 +227,6 @@ static int cx2341x_set_ctrl(struct cx2341x_mpeg_params *params,
231 case V4L2_CID_MPEG_VIDEO_GOP_CLOSURE: 227 case V4L2_CID_MPEG_VIDEO_GOP_CLOSURE:
232 params->video_gop_closure = ctrl->value; 228 params->video_gop_closure = ctrl->value;
233 break; 229 break;
234 case V4L2_CID_MPEG_VIDEO_PULLDOWN:
235 params->video_pulldown = ctrl->value;
236 break;
237 case V4L2_CID_MPEG_VIDEO_BITRATE_MODE: 230 case V4L2_CID_MPEG_VIDEO_BITRATE_MODE:
238 /* MPEG-1 only allows CBR */ 231 /* MPEG-1 only allows CBR */
239 if (params->video_encoding == V4L2_MPEG_VIDEO_ENCODING_MPEG_1 && 232 if (params->video_encoding == V4L2_MPEG_VIDEO_ENCODING_MPEG_1 &&
@@ -679,7 +672,6 @@ void cx2341x_fill_defaults(struct cx2341x_mpeg_params *p)
679 .video_b_frames = 2, 672 .video_b_frames = 2,
680 .video_gop_size = 12, 673 .video_gop_size = 12,
681 .video_gop_closure = 1, 674 .video_gop_closure = 1,
682 .video_pulldown = 0,
683 .video_bitrate_mode = V4L2_MPEG_VIDEO_BITRATE_MODE_VBR, 675 .video_bitrate_mode = V4L2_MPEG_VIDEO_BITRATE_MODE_VBR,
684 .video_bitrate = 6000000, 676 .video_bitrate = 6000000,
685 .video_bitrate_peak = 8000000, 677 .video_bitrate_peak = 8000000,
@@ -783,10 +775,6 @@ int cx2341x_update(void *priv, cx2341x_mbox_func func,
783 err = cx2341x_api(priv, func, CX2341X_ENC_SET_GOP_CLOSURE, 1, new->video_gop_closure); 775 err = cx2341x_api(priv, func, CX2341X_ENC_SET_GOP_CLOSURE, 1, new->video_gop_closure);
784 if (err) return err; 776 if (err) return err;
785 } 777 }
786 if (old == NULL || old->video_pulldown != new->video_pulldown) {
787 err = cx2341x_api(priv, func, CX2341X_ENC_SET_3_2_PULLDOWN, 1, new->video_pulldown);
788 if (err) return err;
789 }
790 if (old == NULL || old->audio_properties != new->audio_properties) { 778 if (old == NULL || old->audio_properties != new->audio_properties) {
791 err = cx2341x_api(priv, func, CX2341X_ENC_SET_AUDIO_PROPERTIES, 1, new->audio_properties); 779 err = cx2341x_api(priv, func, CX2341X_ENC_SET_AUDIO_PROPERTIES, 1, new->audio_properties);
792 if (err) return err; 780 if (err) return err;
@@ -888,11 +876,10 @@ void cx2341x_log_status(struct cx2341x_mpeg_params *p, const char *prefix)
888 printk(", Peak %d", p->video_bitrate_peak); 876 printk(", Peak %d", p->video_bitrate_peak);
889 } 877 }
890 printk("\n"); 878 printk("\n");
891 printk(KERN_INFO "%s: Video: GOP Size %d, %d B-Frames, %sGOP Closure, %s3:2 Pulldown\n", 879 printk(KERN_INFO "%s: Video: GOP Size %d, %d B-Frames, %sGOP Closure\n",
892 prefix, 880 prefix,
893 p->video_gop_size, p->video_b_frames, 881 p->video_gop_size, p->video_b_frames,
894 p->video_gop_closure ? "" : "No ", 882 p->video_gop_closure ? "" : "No ");
895 p->video_pulldown ? "" : "No ");
896 if (p->video_temporal_decimation) { 883 if (p->video_temporal_decimation) {
897 printk(KERN_INFO "%s: Video: Temporal Decimation %d\n", 884 printk(KERN_INFO "%s: Video: Temporal Decimation %d\n",
898 prefix, p->video_temporal_decimation); 885 prefix, p->video_temporal_decimation);
diff --git a/drivers/media/video/pvrusb2/pvrusb2-hdw.c b/drivers/media/video/pvrusb2/pvrusb2-hdw.c
index d2004965187b..c37f8e18b70b 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-hdw.c
+++ b/drivers/media/video/pvrusb2/pvrusb2-hdw.c
@@ -160,9 +160,6 @@ static const struct pvr2_mpeg_ids mpeg_ids[] = {
160 .strid = "video_gop_closure", 160 .strid = "video_gop_closure",
161 .id = V4L2_CID_MPEG_VIDEO_GOP_CLOSURE, 161 .id = V4L2_CID_MPEG_VIDEO_GOP_CLOSURE,
162 },{ 162 },{
163 .strid = "video_pulldown",
164 .id = V4L2_CID_MPEG_VIDEO_PULLDOWN,
165 },{
166 .strid = "video_bitrate_mode", 163 .strid = "video_bitrate_mode",
167 .id = V4L2_CID_MPEG_VIDEO_BITRATE_MODE, 164 .id = V4L2_CID_MPEG_VIDEO_BITRATE_MODE,
168 },{ 165 },{