aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSteven Toth <stoth@hauppauge.com>2008-04-19 00:18:47 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-24 13:09:44 -0400
commit2770b7d7136f9c6a51ae7fd1d29fa58caf2bcf1c (patch)
tree45149b5ba75489e805d2a9fec27661a8c51c5fd9 /drivers
parentb3ea01668907bdb32b0c690d28f9f2b1298bd258 (diff)
V4L/DVB (7646): cx25840: Ensure GPIO2 is correctly set for cx23885/7/8 based products
cx25840: Ensure GPIO2 is correctly set for cx23885/7/8 based products. Signed-off-by: Steven Toth <stoth@hauppauge.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/video/cx25840/cx25840-core.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/media/video/cx25840/cx25840-core.c b/drivers/media/video/cx25840/cx25840-core.c
index ae395f8cf292..7fde678b2c4a 100644
--- a/drivers/media/video/cx25840/cx25840-core.c
+++ b/drivers/media/video/cx25840/cx25840-core.c
@@ -1268,6 +1268,12 @@ static int cx25840_probe(struct i2c_client *client)
1268 state->id = id; 1268 state->id = id;
1269 state->rev = device_id; 1269 state->rev = device_id;
1270 1270
1271 if (state->is_cx23885) {
1272 /* Drive GPIO2 direction and values */
1273 cx25840_write(client, 0x160, 0x1d);
1274 cx25840_write(client, 0x164, 0x00);
1275 }
1276
1271 return 0; 1277 return 0;
1272} 1278}
1273 1279