Message ID | 1292264377-31877-1-git-send-email-agust@denx.de (mailing list archive) |
---|---|
State | Changes Requested |
Headers | show |
diff --git a/drivers/media/video/saa7115.c b/drivers/media/video/saa7115.c index 301c62b..f28a4c7 100644 --- a/drivers/media/video/saa7115.c +++ b/drivers/media/video/saa7115.c @@ -1348,6 +1348,18 @@ static int saa711x_querystd(struct v4l2_subdev *sd, v4l2_std_id *std) int reg1e; *std = V4L2_STD_ALL; + + if (state->ident == V4L2_IDENT_SAA7113) { + int reg1f = saa711x_read(sd, R_1F_STATUS_BYTE_2_VD_DEC); + + if (reg1f & 0x20) + *std = V4L2_STD_NTSC; + else + *std = V4L2_STD_PAL; + + return 0; + } + if (state->ident != V4L2_IDENT_SAA7115) return 0; reg1e = saa711x_read(sd, R_1E_STATUS_BYTE_1_VD_DEC);