summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/bttv-i2c.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/video/bttv-i2c.c')
-rw-r--r--linux/drivers/media/video/bttv-i2c.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/linux/drivers/media/video/bttv-i2c.c b/linux/drivers/media/video/bttv-i2c.c
index 7d0d95ff8..111c091a8 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.21 2005/06/10 17:20:24 mchehab Exp $
+ $Id: bttv-i2c.c,v 1.22 2005/07/02 15:24:11 nsh Exp $
bttv-i2c.c -- all the i2c code is here
@@ -295,8 +295,16 @@ static int attach_inform(struct i2c_client *client)
{
struct bttv *btv = i2c_get_adapdata(client->adapter);
- if (btv->tuner_type != UNSET)
- bttv_call_i2c_clients(btv,TUNER_SET_TYPE,&btv->tuner_type);
+ if (btv->tuner_type != UNSET) {
+ struct tuner_addr tun_addr;
+
+ tun_addr.state = T_RADIO | T_ANALOG_TV | T_DIGITAL_TV;
+ tun_addr.type = btv->tuner_type;
+ tun_addr.addr = ADDR_UNSET;
+
+ bttv_call_i2c_clients(btv,TUNER_SET_TYPE_ADDR, &tun_addr);
+ }
+
if (btv->pinnacle_id != UNSET)
bttv_call_i2c_clients(btv,AUDC_CONFIG_PINNACLE,
&btv->pinnacle_id);