diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-09-26 20:38:24 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-10-21 01:17:41 -0200 |
commit | a6f6fb9c86aa202cbc04796efe9187b698b9b225 (patch) | |
tree | 7ef56f8db0d7525ee367bad7ccca9fa6f2c63b2b /drivers/media/video/cx231xx/cx231xx-dvb.c | |
parent | 1a4aa920d0b49af2c0d9bbedb3bb75be4e174218 (diff) |
[media] cx231xx: better handle the master port enable command
Improves the logic, for it to be clearer and to avoid having
board-dependent config there.
Acked-by: Sri Deevi <Srinivasa.Deevi@conexant.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx231xx/cx231xx-dvb.c')
-rw-r--r-- | drivers/media/video/cx231xx/cx231xx-dvb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/video/cx231xx/cx231xx-dvb.c b/drivers/media/video/cx231xx/cx231xx-dvb.c index 4efd3d3a6a7..5feb3ee640d 100644 --- a/drivers/media/video/cx231xx/cx231xx-dvb.c +++ b/drivers/media/video/cx231xx/cx231xx-dvb.c @@ -235,11 +235,11 @@ static int start_streaming(struct cx231xx_dvb *dvb) if (dev->USE_ISO) { cx231xx_info("DVB transfer mode is ISO.\n"); -mutex_lock(&dev->i2c_lock); - cx231xx_enable_i2c_for_tuner(dev, I2C_1); + mutex_lock(&dev->i2c_lock); + cx231xx_enable_i2c_port_3(dev, false); cx231xx_set_alt_setting(dev, INDEX_TS1, 4); - cx231xx_enable_i2c_for_tuner(dev, I2C_3); -mutex_unlock(&dev->i2c_lock); + cx231xx_enable_i2c_port_3(dev, true); + mutex_unlock(&dev->i2c_lock); rc = cx231xx_set_mode(dev, CX231XX_DIGITAL_MODE); if (rc < 0) return rc; |