diff options
author | Steven Toth <stoth@hauppauge.com> | 2008-01-13 18:44:47 -0500 |
---|---|---|
committer | Steven Toth <stoth@hauppauge.com> | 2008-01-13 18:44:47 -0500 |
commit | ff27acca9170876fb942860e461c20285479f627 (patch) | |
tree | d1524600d015582bd98209f0e163ada13301e5e0 /linux/drivers/media/video/cx23885/cx23885-i2c.c | |
parent | 55c56889a780244c7ca802940cdd63383d991d79 (diff) | |
download | mediapointer-dvb-s2-ff27acca9170876fb942860e461c20285479f627.tar.gz mediapointer-dvb-s2-ff27acca9170876fb942860e461c20285479f627.tar.bz2 |
cx23885: Enable cx23417 support on the HVR1800
From: Steven Toth <stoth@hauppauge.com>
cx23885: Enable cx23417 support on the HVR1800
Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/video/cx23885/cx23885-i2c.c')
-rw-r--r-- | linux/drivers/media/video/cx23885/cx23885-i2c.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/linux/drivers/media/video/cx23885/cx23885-i2c.c b/linux/drivers/media/video/cx23885/cx23885-i2c.c index 972c58cc9..5513b3b39 100644 --- a/linux/drivers/media/video/cx23885/cx23885-i2c.c +++ b/linux/drivers/media/video/cx23885/cx23885-i2c.c @@ -442,6 +442,29 @@ int cx23885_i2c_unregister(struct cx23885_i2c *bus) return 0; } +void cx23885_av_clk(struct cx23885_dev *dev, int enable) +{ + /* write 0 to bus 2 addr 0x144 via i2x_xfer() */ + char buffer[3]; + struct i2c_msg msg; + dprintk(1, "%s(enabled = %d)\n", __func__, enable); + + /* Register 0x144 */ + buffer[0] = 0x01; + buffer[1] = 0x44; + if (enable == 1) + buffer[2] = 0x05; + else + buffer[2] = 0x00; + + msg.addr = 0x44; + msg.flags = I2C_M_TEN; + msg.len = 3; + msg.buf = buffer; + + i2c_xfer(&dev->i2c_bus[2].i2c_adap, &msg, 1); +} + /* ----------------------------------------------------------------------- */ /* |