From 46ccb2c87166fe219f2b4b9ca9e3266bce7a630e Mon Sep 17 00:00:00 2001 From: Gerd Knorr Date: Thu, 16 Sep 2004 08:43:57 +0000 Subject: - bttv: take care that i2c adapter class is set correctly. --- linux/drivers/media/video/bttv-i2c.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'linux/drivers') 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 { -- cgit v1.2.3