diff options
author | Antti Palosaari <crope@iki.fi> | 2014-08-27 03:59:27 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2014-09-21 18:24:32 -0300 |
commit | 676c350f97366f648dbe7f7f8202a695d946f764 (patch) | |
tree | 7c6a245865b7b9451432db6510a062a3eb0532c7 /drivers/media/usb/dvb-usb-v2 | |
parent | d2dbc00cea35081b9f998a0985d151f60ce37835 (diff) |
[media] it913x: re-implement sleep
Re-implement sleep. Based USB sniffs taken from the latest Hauppauge
windows driver version 07/10/2014, 14.6.23.32191.
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/usb/dvb-usb-v2')
-rw-r--r-- | drivers/media/usb/dvb-usb-v2/af9035.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/media/usb/dvb-usb-v2/af9035.c b/drivers/media/usb/dvb-usb-v2/af9035.c index 1a5b600dc34..533c96e4fbb 100644 --- a/drivers/media/usb/dvb-usb-v2/af9035.c +++ b/drivers/media/usb/dvb-usb-v2/af9035.c @@ -1324,6 +1324,13 @@ static int af9035_tuner_attach(struct dvb_usb_adapter *adap) .chip_ver = 1, }; + if (state->dual_mode) { + if (adap->id == 0) + it913x_config.role = IT913X_ROLE_DUAL_MASTER; + else + it913x_config.role = IT913X_ROLE_DUAL_SLAVE; + } + ret = af9035_add_i2c_dev(d, "it913x", state->af9033_config[adap->id].i2c_addr, &it913x_config); @@ -1342,6 +1349,13 @@ static int af9035_tuner_attach(struct dvb_usb_adapter *adap) .chip_ver = 2, }; + if (state->dual_mode) { + if (adap->id == 0) + it913x_config.role = IT913X_ROLE_DUAL_MASTER; + else + it913x_config.role = IT913X_ROLE_DUAL_SLAVE; + } + ret = af9035_add_i2c_dev(d, "it913x", state->af9033_config[adap->id].i2c_addr, &it913x_config); |