summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorSteven Toth <stoth@hauppauge.com>2006-09-29 23:13:31 -0400
committerSteven Toth <stoth@hauppauge.com>2006-09-29 23:13:31 -0400
commit3cb96f769778203f2a971250d765bbeb0e493c74 (patch)
tree0564dea0e157d99279e0e85cff2b49d1a72c92fa /linux
parent9e72a27d2c6618eaf1b66750c9021a9a62128508 (diff)
downloadmediapointer-dvb-s2-3cb96f769778203f2a971250d765bbeb0e493c74.tar.gz
mediapointer-dvb-s2-3cb96f769778203f2a971250d765bbeb0e493c74.tar.bz2
Force all cx88 DVB frontends to request bus access.
From: Steven Toth <stoth@hauppauge.com> Force all cx88 DVB frontends to request bus access. Signed-off-by: Steven Toth <stoth@hauppauge.com>
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/media/video/cx88/cx88-dvb.c22
1 files changed, 8 insertions, 14 deletions
diff --git a/linux/drivers/media/video/cx88/cx88-dvb.c b/linux/drivers/media/video/cx88/cx88-dvb.c
index 2fd4c99c4..fde191dc1 100644
--- a/linux/drivers/media/video/cx88/cx88-dvb.c
+++ b/linux/drivers/media/video/cx88/cx88-dvb.c
@@ -329,21 +329,14 @@ static int cx88_dvb_bus_ctrl(struct dvb_frontend* fe,
struct cx88_core *core = dev->core;
int ret = 0;
- dprintk(1, "%s(acquire=%d)\n", __FUNCTION__, acquire);
-
- switch (dev->core->board) {
- case CX88_BOARD_HAUPPAUGE_HVR1300:
- drv = cx8802_get_driver(dev, CX88_MPEG_DVB);
- if (drv) {
- if(acquire)
- ret = drv->request_acquire(drv);
- else
- ret = drv->request_release(drv);
- }
- break;
+ drv = cx8802_get_driver(dev, CX88_MPEG_DVB);
+ if (drv) {
+ if(acquire)
+ ret = drv->request_acquire(drv);
+ else
+ ret = drv->request_release(drv);
}
- dprintk(1, "%s(acquire=%d) returns %d\n", __FUNCTION__, acquire, ret);
return ret;
}
@@ -791,7 +784,6 @@ static int dvb_register(struct cx8802_dev *dev)
dvb_attach(dvb_pll_attach, dev->dvb.frontend, 0x61,
&dev->core->i2c_adap,
&dvb_pll_fmd1216me);
- dev->dvb.frontend->ops.ts_bus_ctrl = cx88_dvb_bus_ctrl;
}
break;
default:
@@ -808,6 +800,8 @@ static int dvb_register(struct cx8802_dev *dev)
dev->dvb.frontend->ops.info.frequency_min = dev->core->pll_desc->min;
dev->dvb.frontend->ops.info.frequency_max = dev->core->pll_desc->max;
}
+ /* Ensure all frontends negotiate bus access */
+ dev->dvb.frontend->ops.ts_bus_ctrl = cx88_dvb_bus_ctrl;
/* Put the analog decoder in standby to keep it quiet */
cx88_call_i2c_clients (dev->core, TUNER_SET_STANDBY, NULL);