From a0e4c3a6705764d9c17e7cdc948b351a1eeced02 Mon Sep 17 00:00:00 2001 From: Michael Hunold Date: Tue, 1 Jul 2003 10:13:26 +0000 Subject: - capturing alternating fields to different buffers works now --- linux/drivers/media/common/saa7146_video.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'linux/drivers/media/common/saa7146_video.c') 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)); -- cgit v1.2.3