summaryrefslogtreecommitdiff
path: root/linux/drivers/media/common/saa7146_video.c
diff options
context:
space:
mode:
authorMichael Hunold <devnull@localhost>2003-07-01 10:13:26 +0000
committerMichael Hunold <devnull@localhost>2003-07-01 10:13:26 +0000
commita0e4c3a6705764d9c17e7cdc948b351a1eeced02 (patch)
treef8acc1ac04f8726e4b9d600d51e9b0597405023b /linux/drivers/media/common/saa7146_video.c
parent3136b2e443e145266f96a7d6f7a4d45bee9cb445 (diff)
downloadmediapointer-dvb-s2-a0e4c3a6705764d9c17e7cdc948b351a1eeced02.tar.gz
mediapointer-dvb-s2-a0e4c3a6705764d9c17e7cdc948b351a1eeced02.tar.bz2
- capturing alternating fields to different buffers works now
Diffstat (limited to 'linux/drivers/media/common/saa7146_video.c')
-rw-r--r--linux/drivers/media/common/saa7146_video.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/linux/drivers/media/common/saa7146_video.c b/linux/drivers/media/common/saa7146_video.c
index d67282461..4479d7189 100644
--- a/linux/drivers/media/common/saa7146_video.c
+++ b/linux/drivers/media/common/saa7146_video.c
@@ -187,12 +187,18 @@ static int try_fmt(struct saa7146_fh *fh, struct v4l2_format *f)
: V4L2_FIELD_BOTTOM;
}
switch (field) {
+ case V4L2_FIELD_ALTERNATE: {
+ vv->last_field = V4L2_FIELD_TOP;
+ maxh = maxh / 2;
+ break;
+ }
case V4L2_FIELD_TOP:
case V4L2_FIELD_BOTTOM:
- case V4L2_FIELD_ALTERNATE:
+ vv->last_field = V4L2_FIELD_INTERLACED;
maxh = maxh / 2;
break;
case V4L2_FIELD_INTERLACED:
+ vv->last_field = V4L2_FIELD_INTERLACED;
break;
default: {
DEB_D(("no known field mode '%d'.\n",field));