diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2006-12-18 20:52:21 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-02-21 10:34:13 -0500 |
commit | 75558ab92dc95c3b5a99df7c77e95a6e8484e05c (patch) | |
tree | c2141e03cc8cb522019a5d572bdcc31fc3fa5875 | |
parent | 20a919f7960df1c0bf1cb4f637149ed4b6bc9ec3 (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>
-rw-r--r-- | Documentation/video4linux/cx2341x/fw-encoder-api.txt | 10 | ||||
-rw-r--r-- | drivers/media/video/cx2341x.c | 17 | ||||
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-hdw.c | 3 | ||||
-rw-r--r-- | include/media/cx2341x.h | 4 |
4 files changed, 2 insertions, 32 deletions
diff --git a/Documentation/video4linux/cx2341x/fw-encoder-api.txt b/Documentation/video4linux/cx2341x/fw-encoder-api.txt index 9a5710646778..2412718c3d0b 100644 --- a/Documentation/video4linux/cx2341x/fw-encoder-api.txt +++ b/Documentation/video4linux/cx2341x/fw-encoder-api.txt | |||
@@ -213,16 +213,6 @@ Param[1] | |||
213 | 213 | ||
214 | ------------------------------------------------------------------------------- | 214 | ------------------------------------------------------------------------------- |
215 | 215 | ||
216 | Name CX2341X_ENC_SET_3_2_PULLDOWN | ||
217 | Enum 177/0xB1 | ||
218 | Description | ||
219 | 3:2 pulldown properties (This command is not implemented in the firmware) | ||
220 | Param[0] | ||
221 | 0=enabled | ||
222 | 1=disabled | ||
223 | |||
224 | ------------------------------------------------------------------------------- | ||
225 | |||
226 | Name CX2341X_ENC_SET_VBI_LINE | 216 | Name CX2341X_ENC_SET_VBI_LINE |
227 | Enum 183/0xB7 | 217 | Enum 183/0xB7 |
228 | Description | 218 | Description |
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 | },{ |
diff --git a/include/media/cx2341x.h b/include/media/cx2341x.h index ecad55bf0162..d758a52cf556 100644 --- a/include/media/cx2341x.h +++ b/include/media/cx2341x.h | |||
@@ -57,7 +57,6 @@ struct cx2341x_mpeg_params { | |||
57 | u16 video_b_frames; | 57 | u16 video_b_frames; |
58 | u16 video_gop_size; | 58 | u16 video_gop_size; |
59 | u16 video_gop_closure; | 59 | u16 video_gop_closure; |
60 | u16 video_pulldown; | ||
61 | enum v4l2_mpeg_video_bitrate_mode video_bitrate_mode; | 60 | enum v4l2_mpeg_video_bitrate_mode video_bitrate_mode; |
62 | u32 video_bitrate; | 61 | u32 video_bitrate; |
63 | u32 video_bitrate_peak; | 62 | u32 video_bitrate_peak; |
@@ -121,8 +120,6 @@ void cx2341x_log_status(struct cx2341x_mpeg_params *p, const char *prefix); | |||
121 | #define CX2341X_DEC_SET_DISPLAY_BUFFERS 0x18 | 120 | #define CX2341X_DEC_SET_DISPLAY_BUFFERS 0x18 |
122 | #define CX2341X_DEC_EXTRACT_VBI 0x19 | 121 | #define CX2341X_DEC_EXTRACT_VBI 0x19 |
123 | #define CX2341X_DEC_SET_DECODER_SOURCE 0x1a | 122 | #define CX2341X_DEC_SET_DECODER_SOURCE 0x1a |
124 | #define CX2341X_DEC_SET_AUDIO_OUTPUT 0x1b | ||
125 | #define CX2341X_DEC_SET_AV_DELAY 0x1c | ||
126 | #define CX2341X_DEC_SET_PREBUFFERING 0x1e | 123 | #define CX2341X_DEC_SET_PREBUFFERING 0x1e |
127 | 124 | ||
128 | /* MPEG encoder API */ | 125 | /* MPEG encoder API */ |
@@ -141,7 +138,6 @@ void cx2341x_log_status(struct cx2341x_mpeg_params *p, const char *prefix); | |||
141 | #define CX2341X_ENC_SET_DNR_FILTER_PROPS 0x9d | 138 | #define CX2341X_ENC_SET_DNR_FILTER_PROPS 0x9d |
142 | #define CX2341X_ENC_SET_CORING_LEVELS 0x9f | 139 | #define CX2341X_ENC_SET_CORING_LEVELS 0x9f |
143 | #define CX2341X_ENC_SET_SPATIAL_FILTER_TYPE 0xa1 | 140 | #define CX2341X_ENC_SET_SPATIAL_FILTER_TYPE 0xa1 |
144 | #define CX2341X_ENC_SET_3_2_PULLDOWN 0xb1 | ||
145 | #define CX2341X_ENC_SET_VBI_LINE 0xb7 | 141 | #define CX2341X_ENC_SET_VBI_LINE 0xb7 |
146 | #define CX2341X_ENC_SET_STREAM_TYPE 0xb9 | 142 | #define CX2341X_ENC_SET_STREAM_TYPE 0xb9 |
147 | #define CX2341X_ENC_SET_OUTPUT_PORT 0xbb | 143 | #define CX2341X_ENC_SET_OUTPUT_PORT 0xbb |