diff options
| -rw-r--r-- | drivers/media/video/saa7115.c | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/drivers/media/video/saa7115.c b/drivers/media/video/saa7115.c index 498d9aaec1e5..b184fd00b4e7 100644 --- a/drivers/media/video/saa7115.c +++ b/drivers/media/video/saa7115.c | |||
| @@ -725,18 +725,14 @@ static void saa7115_set_v4lstd(struct i2c_client *client, v4l2_std_id std) | |||
| 725 | if (state->ident == V4L2_IDENT_SAA7113) { | 725 | if (state->ident == V4L2_IDENT_SAA7113) { |
| 726 | u8 reg = saa7115_read(client, 0x0e) & 0x8f; | 726 | u8 reg = saa7115_read(client, 0x0e) & 0x8f; |
| 727 | 727 | ||
| 728 | if (std & V4L2_STD_PAL) { | 728 | if (std == V4L2_STD_PAL_M) { |
| 729 | if (std == V4L2_STD_PAL_M) { | 729 | reg|=0x30; |
| 730 | reg|=0x30; | 730 | } else if (std == V4L2_STD_PAL_N) { |
| 731 | } else if (std == V4L2_STD_PAL_N) { | 731 | reg|=0x20; |
| 732 | reg|=0x20; | 732 | } else if (std == V4L2_STD_PAL_60) { |
| 733 | } else if (std == V4L2_STD_PAL_60) { | 733 | reg|=0x10; |
| 734 | reg|=0x10; | 734 | } else if (std == V4L2_STD_NTSC_M_JP) { |
| 735 | } | 735 | reg|=0x40; |
| 736 | } else if (std & V4L2_STD_NTSC) { | ||
| 737 | if (std == V4L2_STD_NTSC_M_JP) { | ||
| 738 | reg|=0x40; | ||
| 739 | } | ||
| 740 | } | 736 | } |
| 741 | saa7115_write(client, 0x0e, reg); | 737 | saa7115_write(client, 0x0e, reg); |
| 742 | } | 738 | } |
