diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2006-03-25 06:19:47 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-04-02 03:54:51 -0400 |
commit | 013423588af1950e8eb7a44d80a684fd50174827 (patch) | |
tree | 1f0028bb462a8e3ebe3217f89de4efb584ba8609 /drivers/media | |
parent | 51dab14e66a876ca124ef115fda08121ad9533fc (diff) |
V4L/DVB (3606): Minor layout changes to make it consistent
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/saa7115.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/media/video/saa7115.c b/drivers/media/video/saa7115.c index b05015282601..f2123d62f1f8 100644 --- a/drivers/media/video/saa7115.c +++ b/drivers/media/video/saa7115.c | |||
@@ -53,7 +53,7 @@ module_param(debug, bool, 0644); | |||
53 | MODULE_PARM_DESC(debug, "Debug level (0-1)"); | 53 | MODULE_PARM_DESC(debug, "Debug level (0-1)"); |
54 | 54 | ||
55 | static unsigned short normal_i2c[] = { | 55 | static unsigned short normal_i2c[] = { |
56 | 0x4a >>1, 0x48 >>1, /* SAA7113 */ | 56 | 0x4a >> 1, 0x48 >> 1, /* SAA7113 */ |
57 | 0x42 >> 1, 0x40 >> 1, /* SAA7114 and SAA7115 */ | 57 | 0x42 >> 1, 0x40 >> 1, /* SAA7114 and SAA7115 */ |
58 | I2C_CLIENT_END }; | 58 | I2C_CLIENT_END }; |
59 | 59 | ||
@@ -722,16 +722,16 @@ static void saa7115_set_v4lstd(struct i2c_client *client, v4l2_std_id std) | |||
722 | 100 reserved NTSC-Japan (3.58MHz) | 722 | 100 reserved NTSC-Japan (3.58MHz) |
723 | */ | 723 | */ |
724 | if (state->ident == V4L2_IDENT_SAA7113) { | 724 | if (state->ident == V4L2_IDENT_SAA7113) { |
725 | u8 reg = saa7115_read(client, 0x0e) & 0x8f; | 725 | u8 reg = saa7115_read(client, 0x0e) & 0x8f; |
726 | 726 | ||
727 | if (std == V4L2_STD_PAL_M) { | 727 | if (std == V4L2_STD_PAL_M) { |
728 | reg|=0x30; | 728 | reg |= 0x30; |
729 | } else if (std == V4L2_STD_PAL_N) { | 729 | } else if (std == V4L2_STD_PAL_N) { |
730 | reg|=0x20; | 730 | reg |= 0x20; |
731 | } else if (std == V4L2_STD_PAL_60) { | 731 | } else if (std == V4L2_STD_PAL_60) { |
732 | reg|=0x10; | 732 | reg |= 0x10; |
733 | } else if (std == V4L2_STD_NTSC_M_JP) { | 733 | } else if (std == V4L2_STD_NTSC_M_JP) { |
734 | reg|=0x40; | 734 | reg |= 0x40; |
735 | } | 735 | } |
736 | saa7115_write(client, 0x0e, reg); | 736 | saa7115_write(client, 0x0e, reg); |
737 | } | 737 | } |
@@ -811,7 +811,7 @@ static void saa7115_set_lcr(struct i2c_client *client, struct v4l2_sliced_vbi_fo | |||
811 | u8 lcr[24]; | 811 | u8 lcr[24]; |
812 | int i, x; | 812 | int i, x; |
813 | 813 | ||
814 | /* saa7113/71144 doesn't yet support VBI */ | 814 | /* saa7113/7114 doesn't yet support VBI */ |
815 | if (state->ident != V4L2_IDENT_SAA7115) | 815 | if (state->ident != V4L2_IDENT_SAA7115) |
816 | return; | 816 | return; |
817 | 817 | ||
@@ -1321,7 +1321,7 @@ static int saa7115_attach(struct i2c_adapter *adapter, int address, int kind) | |||
1321 | 1321 | ||
1322 | saa7115_write(client, 0, 5); | 1322 | saa7115_write(client, 0, 5); |
1323 | chip_id = saa7115_read(client, 0) & 0x0f; | 1323 | chip_id = saa7115_read(client, 0) & 0x0f; |
1324 | if (chip_id <3 && chip_id > 5) { | 1324 | if (chip_id < 3 && chip_id > 5) { |
1325 | v4l_dbg(1, debug, client, "saa7115 not found\n"); | 1325 | v4l_dbg(1, debug, client, "saa7115 not found\n"); |
1326 | kfree(client); | 1326 | kfree(client); |
1327 | return 0; | 1327 | return 0; |
@@ -1360,7 +1360,7 @@ static int saa7115_attach(struct i2c_adapter *adapter, int address, int kind) | |||
1360 | v4l_dbg(1, debug, client, "writing init values\n"); | 1360 | v4l_dbg(1, debug, client, "writing init values\n"); |
1361 | 1361 | ||
1362 | /* init to 60hz/48khz */ | 1362 | /* init to 60hz/48khz */ |
1363 | if (state->ident==V4L2_IDENT_SAA7113) | 1363 | if (state->ident == V4L2_IDENT_SAA7113) |
1364 | saa7115_writeregs(client, saa7113_init_auto_input); | 1364 | saa7115_writeregs(client, saa7113_init_auto_input); |
1365 | else | 1365 | else |
1366 | saa7115_writeregs(client, saa7115_init_auto_input); | 1366 | saa7115_writeregs(client, saa7115_init_auto_input); |