aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/bt8xx/bttvp.h
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2009-03-28 07:29:00 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 11:43:46 -0400
commit859f0277a6c3ba59b0a5a1eb183f8f6ce661a95d (patch)
tree47d9d7ee5b1cb7899db12c881d27cd373254e4f8 /drivers/media/video/bt8xx/bttvp.h
parente4129a9ccea54e8f4fbc408476120059809a4627 (diff)
V4L/DVB (11278): bttv: convert to v4l2_subdev since i2c autoprobing will disappear.
Since i2c autoprobing will disappear bttv needs to be converted to use v4l2_subdev instead. Without autoprobing the autoload module option has become obsolete. A warning is generated if it is set, but it is otherwise ignored. Since the bttv card definitions are of questionable value a new option was introduced to allow the user to control which audio module is selected: msp3400, tda7432 or tvaudio (or none at all). By default bttv will use the card definitions and fallback on tvaudio as the last resort. If no audio device was found a warning is printed. The saa6588 RDS device is now also explicitly probed since it is no longer possible to autoprobe it. A new saa6588 module option was added to override the card definition since I suspect more cards have this device than one would guess from the card definitions. Note that the probe addresses of the i2c modules are hardcoded in this driver. Once all v4l drivers are converted to v4l2_subdev this will be cleaned up. Such data belongs in an i2c driver header. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/bt8xx/bttvp.h')
-rw-r--r--drivers/media/video/bt8xx/bttvp.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/video/bt8xx/bttvp.h b/drivers/media/video/bt8xx/bttvp.h
index 5755b407c0a2..96498489199d 100644
--- a/drivers/media/video/bt8xx/bttvp.h
+++ b/drivers/media/video/bt8xx/bttvp.h
@@ -329,6 +329,7 @@ struct bttv {
329 unsigned int tuner_type; /* tuner chip type */ 329 unsigned int tuner_type; /* tuner chip type */
330 unsigned int tda9887_conf; 330 unsigned int tda9887_conf;
331 unsigned int svhs, dig; 331 unsigned int svhs, dig;
332 unsigned int has_saa6588:1;
332 struct bttv_pll_info pll; 333 struct bttv_pll_info pll;
333 int triton1; 334 int triton1;
334 int gpioirq; 335 int gpioirq;
@@ -352,8 +353,8 @@ struct bttv {
352 int i2c_state, i2c_rc; 353 int i2c_state, i2c_rc;
353 int i2c_done; 354 int i2c_done;
354 wait_queue_head_t i2c_queue; 355 wait_queue_head_t i2c_queue;
355 struct i2c_client *i2c_msp34xx_client; 356 struct v4l2_subdev *sd_msp34xx;
356 struct i2c_client *i2c_tvaudio_client; 357 struct v4l2_subdev *sd_tvaudio;
357 358
358 /* video4linux (1) */ 359 /* video4linux (1) */
359 struct video_device *video_dev; 360 struct video_device *video_dev;