summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/cx25840/cx25840-core.c
diff options
context:
space:
mode:
authorSteven Toth <stoth@hauppauge.com>2008-04-18 21:18:47 -0400
committerSteven Toth <stoth@hauppauge.com>2008-04-18 21:18:47 -0400
commitc848c6cc1338d8911647c02e6ab4e7a4809b0c82 (patch)
tree275ced414f959d3e3820f848828ea530e503a43a /linux/drivers/media/video/cx25840/cx25840-core.c
parent9ac4869b267a0aade9f1a231d340b0d895a4288b (diff)
downloadmediapointer-dvb-s2-c848c6cc1338d8911647c02e6ab4e7a4809b0c82.tar.gz
mediapointer-dvb-s2-c848c6cc1338d8911647c02e6ab4e7a4809b0c82.tar.bz2
cx25840: Ensure GPIO2 is correctly set for cx23885/7/8 based products.
From: Steven Toth <stoth@hauppauge.com> cx25840: Ensure GPIO2 is correctly set for cx23885/7/8 based products. Signed-off-by: Steven Toth <stoth@hauppauge.com>
Diffstat (limited to 'linux/drivers/media/video/cx25840/cx25840-core.c')
-rw-r--r--linux/drivers/media/video/cx25840/cx25840-core.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/linux/drivers/media/video/cx25840/cx25840-core.c b/linux/drivers/media/video/cx25840/cx25840-core.c
index 82e7fb267..7e21143e2 100644
--- a/linux/drivers/media/video/cx25840/cx25840-core.c
+++ b/linux/drivers/media/video/cx25840/cx25840-core.c
@@ -1297,6 +1297,12 @@ static int cx25840_probe(struct i2c_client *client)
state->id = id;
state->rev = device_id;
+ if (state->is_cx23885) {
+ /* Drive GPIO2 direction and values */
+ cx25840_write(client, 0x160, 0x1d);
+ cx25840_write(client, 0x164, 0x00);
+ }
+
return 0;
}