Skip to content

Commit e10707d

Browse files
Niklas Söderlundmchehab
authored andcommitted
media: rcar-vin: Select correct interrupt mode for V4L2_FIELD_ALTERNATE
When adding proper support for V4L2_FIELD_ALTERNATE it was missed that this field format should trigger an interrupt for each field, not just for the whole frame. Fix this by marking it as progressive in the capture setup, which will then select the correct interrupt mode. Tested on both Gen2 and Gen3 with the result of a doubling of the frame rate for V4L2_FIELD_ALTERNATE. From a PAL video source the frame rate is now 50, which is expected for alternate field capture. Signed-off-by: Niklas Söderlund <[email protected]> Signed-off-by: Hans Verkuil <[email protected]>
1 parent cb88d82 commit e10707d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/media/platform/renesas/rcar-vin/rcar-dma.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -728,11 +728,9 @@ static int rvin_setup(struct rvin_dev *vin)
728728
case V4L2_FIELD_SEQ_TB:
729729
case V4L2_FIELD_SEQ_BT:
730730
case V4L2_FIELD_NONE:
731-
vnmc = VNMC_IM_ODD_EVEN;
732-
progressive = true;
733-
break;
734731
case V4L2_FIELD_ALTERNATE:
735732
vnmc = VNMC_IM_ODD_EVEN;
733+
progressive = true;
736734
break;
737735
default:
738736
vnmc = VNMC_IM_ODD;

0 commit comments

Comments
 (0)