diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2006-12-04 23:38:58 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-12-10 06:22:53 -0500 |
commit | 22f3f17dd705c476d2c8a2d879ddacaa8f9237e3 (patch) | |
tree | af7c13877cfed14022f991a03142102d5d9a4b75 /drivers/media | |
parent | ed35526027f3b45a7c799f73916166b1161bf082 (diff) |
V4L/DVB (4946): Cx88: Move cx88_dvb_bus_ctrl out of the card-specific area
This function should not be in the card-specific area of the file.
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/cx88/cx88-dvb.c | 38 |
1 files changed, 20 insertions, 18 deletions
diff --git a/drivers/media/video/cx88/cx88-dvb.c b/drivers/media/video/cx88/cx88-dvb.c index d9907ce8ad4b..694002a7dfc2 100644 --- a/drivers/media/video/cx88/cx88-dvb.c +++ b/drivers/media/video/cx88/cx88-dvb.c | |||
@@ -100,6 +100,26 @@ static struct videobuf_queue_ops dvb_qops = { | |||
100 | }; | 100 | }; |
101 | 101 | ||
102 | /* ------------------------------------------------------------------ */ | 102 | /* ------------------------------------------------------------------ */ |
103 | |||
104 | static int cx88_dvb_bus_ctrl(struct dvb_frontend* fe, int acquire) | ||
105 | { | ||
106 | struct cx8802_dev *dev= fe->dvb->priv; | ||
107 | struct cx8802_driver *drv = NULL; | ||
108 | int ret = 0; | ||
109 | |||
110 | drv = cx8802_get_driver(dev, CX88_MPEG_DVB); | ||
111 | if (drv) { | ||
112 | if(acquire) | ||
113 | ret = drv->request_acquire(drv); | ||
114 | else | ||
115 | ret = drv->request_release(drv); | ||
116 | } | ||
117 | |||
118 | return ret; | ||
119 | } | ||
120 | |||
121 | /* ------------------------------------------------------------------ */ | ||
122 | |||
103 | static int dvico_fusionhdtv_demod_init(struct dvb_frontend* fe) | 123 | static int dvico_fusionhdtv_demod_init(struct dvb_frontend* fe) |
104 | { | 124 | { |
105 | static u8 clock_config [] = { CLOCK_CTL, 0x38, 0x39 }; | 125 | static u8 clock_config [] = { CLOCK_CTL, 0x38, 0x39 }; |
@@ -287,24 +307,6 @@ static struct cx22702_config hauppauge_hvr_config = { | |||
287 | .output_mode = CX22702_SERIAL_OUTPUT, | 307 | .output_mode = CX22702_SERIAL_OUTPUT, |
288 | }; | 308 | }; |
289 | 309 | ||
290 | static int cx88_dvb_bus_ctrl(struct dvb_frontend* fe, | ||
291 | int acquire) | ||
292 | { | ||
293 | struct cx8802_dev *dev= fe->dvb->priv; | ||
294 | struct cx8802_driver *drv = NULL; | ||
295 | int ret = 0; | ||
296 | |||
297 | drv = cx8802_get_driver(dev, CX88_MPEG_DVB); | ||
298 | if (drv) { | ||
299 | if(acquire) | ||
300 | ret = drv->request_acquire(drv); | ||
301 | else | ||
302 | ret = drv->request_release(drv); | ||
303 | } | ||
304 | |||
305 | return ret; | ||
306 | } | ||
307 | |||
308 | static int or51132_set_ts_param(struct dvb_frontend* fe, | 310 | static int or51132_set_ts_param(struct dvb_frontend* fe, |
309 | int is_punctured) | 311 | int is_punctured) |
310 | { | 312 | { |