diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2007-08-23 09:13:15 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-10-09 21:06:48 -0400 |
commit | fd8b281a2809d2bd9119df1fbd717ab2371297cd (patch) | |
tree | c5ebdbc3ba9febddded3d4cddd4deb0e75b9c027 /drivers/media/video/ivtv/ivtv-ioctl.c | |
parent | 33c0fcad2160bc211272295e862c6f708118d006 (diff) |
V4L/DVB (6093): ivtv: reorganized and cleanup ivtv struct
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/ivtv/ivtv-ioctl.c')
-rw-r--r-- | drivers/media/video/ivtv/ivtv-ioctl.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/media/video/ivtv/ivtv-ioctl.c b/drivers/media/video/ivtv/ivtv-ioctl.c index f4f56a6e1f81..01215a1c4b82 100644 --- a/drivers/media/video/ivtv/ivtv-ioctl.c +++ b/drivers/media/video/ivtv/ivtv-ioctl.c | |||
@@ -163,7 +163,7 @@ void ivtv_set_osd_alpha(struct ivtv *itv) | |||
163 | { | 163 | { |
164 | ivtv_vapi(itv, CX2341X_OSD_SET_GLOBAL_ALPHA, 3, | 164 | ivtv_vapi(itv, CX2341X_OSD_SET_GLOBAL_ALPHA, 3, |
165 | itv->osd_global_alpha_state, itv->osd_global_alpha, !itv->osd_local_alpha_state); | 165 | itv->osd_global_alpha_state, itv->osd_global_alpha, !itv->osd_local_alpha_state); |
166 | ivtv_vapi(itv, CX2341X_OSD_SET_CHROMA_KEY, 2, itv->osd_color_key_state, itv->osd_color_key); | 166 | ivtv_vapi(itv, CX2341X_OSD_SET_CHROMA_KEY, 2, itv->osd_chroma_key_state, itv->osd_chroma_key); |
167 | } | 167 | } |
168 | 168 | ||
169 | int ivtv_set_speed(struct ivtv *itv, int speed) | 169 | int ivtv_set_speed(struct ivtv *itv, int speed) |
@@ -426,7 +426,7 @@ static int ivtv_get_fmt(struct ivtv *itv, int streamtype, struct v4l2_format *fm | |||
426 | case V4L2_BUF_TYPE_VIDEO_OUTPUT_OVERLAY: | 426 | case V4L2_BUF_TYPE_VIDEO_OUTPUT_OVERLAY: |
427 | if (!(itv->v4l2_cap & V4L2_CAP_VIDEO_OUTPUT)) | 427 | if (!(itv->v4l2_cap & V4L2_CAP_VIDEO_OUTPUT)) |
428 | return -EINVAL; | 428 | return -EINVAL; |
429 | fmt->fmt.win.chromakey = itv->osd_color_key; | 429 | fmt->fmt.win.chromakey = itv->osd_chroma_key; |
430 | fmt->fmt.win.global_alpha = itv->osd_global_alpha; | 430 | fmt->fmt.win.global_alpha = itv->osd_global_alpha; |
431 | break; | 431 | break; |
432 | 432 | ||
@@ -546,7 +546,7 @@ static int ivtv_try_or_set_fmt(struct ivtv *itv, int streamtype, | |||
546 | if (!(itv->v4l2_cap & V4L2_CAP_VIDEO_OUTPUT)) | 546 | if (!(itv->v4l2_cap & V4L2_CAP_VIDEO_OUTPUT)) |
547 | return -EINVAL; | 547 | return -EINVAL; |
548 | if (set_fmt) { | 548 | if (set_fmt) { |
549 | itv->osd_color_key = fmt->fmt.win.chromakey; | 549 | itv->osd_chroma_key = fmt->fmt.win.chromakey; |
550 | itv->osd_global_alpha = fmt->fmt.win.global_alpha; | 550 | itv->osd_global_alpha = fmt->fmt.win.global_alpha; |
551 | ivtv_set_osd_alpha(itv); | 551 | ivtv_set_osd_alpha(itv); |
552 | } | 552 | } |
@@ -1197,7 +1197,7 @@ int ivtv_v4l2_ioctls(struct ivtv *itv, struct file *filp, unsigned int cmd, void | |||
1197 | fb->flags |= V4L2_FBUF_FLAG_GLOBAL_ALPHA; | 1197 | fb->flags |= V4L2_FBUF_FLAG_GLOBAL_ALPHA; |
1198 | if (itv->osd_local_alpha_state) | 1198 | if (itv->osd_local_alpha_state) |
1199 | fb->flags |= V4L2_FBUF_FLAG_LOCAL_ALPHA; | 1199 | fb->flags |= V4L2_FBUF_FLAG_LOCAL_ALPHA; |
1200 | if (itv->osd_color_key_state) | 1200 | if (itv->osd_chroma_key_state) |
1201 | fb->flags |= V4L2_FBUF_FLAG_CHROMAKEY; | 1201 | fb->flags |= V4L2_FBUF_FLAG_CHROMAKEY; |
1202 | break; | 1202 | break; |
1203 | } | 1203 | } |
@@ -1209,7 +1209,7 @@ int ivtv_v4l2_ioctls(struct ivtv *itv, struct file *filp, unsigned int cmd, void | |||
1209 | return -EINVAL; | 1209 | return -EINVAL; |
1210 | itv->osd_global_alpha_state = (fb->flags & V4L2_FBUF_FLAG_GLOBAL_ALPHA) != 0; | 1210 | itv->osd_global_alpha_state = (fb->flags & V4L2_FBUF_FLAG_GLOBAL_ALPHA) != 0; |
1211 | itv->osd_local_alpha_state = (fb->flags & V4L2_FBUF_FLAG_LOCAL_ALPHA) != 0; | 1211 | itv->osd_local_alpha_state = (fb->flags & V4L2_FBUF_FLAG_LOCAL_ALPHA) != 0; |
1212 | itv->osd_color_key_state = (fb->flags & V4L2_FBUF_FLAG_CHROMAKEY) != 0; | 1212 | itv->osd_chroma_key_state = (fb->flags & V4L2_FBUF_FLAG_CHROMAKEY) != 0; |
1213 | ivtv_set_osd_alpha(itv); | 1213 | ivtv_set_osd_alpha(itv); |
1214 | break; | 1214 | break; |
1215 | } | 1215 | } |