diff options
author | Gerd Knorr <devnull@localhost> | 2004-09-16 08:43:57 +0000 |
---|---|---|
committer | Gerd Knorr <devnull@localhost> | 2004-09-16 08:43:57 +0000 |
commit | 46ccb2c87166fe219f2b4b9ca9e3266bce7a630e (patch) | |
tree | 367d9459599f37c403593c9e3ab7f5e73214046e /linux/drivers/media/video | |
parent | 159ab1ffe030664789120bf8f03349b3fa21a757 (diff) | |
download | mediapointer-dvb-s2-46ccb2c87166fe219f2b4b9ca9e3266bce7a630e.tar.gz mediapointer-dvb-s2-46ccb2c87166fe219f2b4b9ca9e3266bce7a630e.tar.bz2 |
- bttv: take care that i2c adapter class is set correctly.
Diffstat (limited to 'linux/drivers/media/video')
-rw-r--r-- | linux/drivers/media/video/bttv-i2c.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/linux/drivers/media/video/bttv-i2c.c b/linux/drivers/media/video/bttv-i2c.c index 9b9fcb89a..6d11393cd 100644 --- a/linux/drivers/media/video/bttv-i2c.c +++ b/linux/drivers/media/video/bttv-i2c.c @@ -1,5 +1,5 @@ /* - $Id: bttv-i2c.c,v 1.6 2004/09/15 16:15:24 kraxel Exp $ + $Id: bttv-i2c.c,v 1.7 2004/09/16 08:43:57 kraxel Exp $ bttv-i2c.c -- all the i2c code is here @@ -461,6 +461,11 @@ int __devinit init_bttv_i2c(struct bttv *btv) i2c_set_adapdata(&btv->c.i2c_adap, btv); btv->i2c_client.adapter = &btv->c.i2c_adap; + if (bttv_tvcards[btv->c.type].no_video) + btv->c.i2c_adap.class &= ~I2C_CLASS_TV_ANALOG; + if (bttv_tvcards[btv->c.type].has_dvb) + btv->c.i2c_adap.class |= I2C_CLASS_TV_DIGITAL; + if (btv->use_i2c_hw) { btv->i2c_rc = i2c_add_adapter(&btv->c.i2c_adap); } else { |