diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-10-18 18:56:47 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-25 16:00:54 -0500 |
commit | 7f1711234e6a21c153e892758d9d82c333ab37ac (patch) | |
tree | 19281fdae9f51a25c119dccf54515192614b242f /drivers/media/video/bt8xx | |
parent | 2d94dfc8c38edf63e91e48fd55c3a8822b6a9ced (diff) |
V4L/DVB (6384): Replace TDA9887_SET_CONFIG by TUNER_SET_CONFIG
Currently, the only tuner-specific device that allows special
configurations is tda9887. However, tea5767 also may require some
special configurations (for example, to specify a different Xtal freq).
This patch replaces TDA9887_SET_CONFIG by a more generic internal ioctl
(TUNER_SET_CONFIG). The newer one allows specifying what tuner is
appliable to a configuration set, and allows an arbitrary configuration
struct.
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/bt8xx')
-rw-r--r-- | drivers/media/video/bt8xx/bttv-cards.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/media/video/bt8xx/bttv-cards.c b/drivers/media/video/bt8xx/bttv-cards.c index 585d1ef95afd..4f91f98db37b 100644 --- a/drivers/media/video/bt8xx/bttv-cards.c +++ b/drivers/media/video/bt8xx/bttv-cards.c | |||
@@ -3574,8 +3574,12 @@ void __devinit bttv_init_card2(struct bttv *btv) | |||
3574 | } | 3574 | } |
3575 | 3575 | ||
3576 | if (btv->tda9887_conf) { | 3576 | if (btv->tda9887_conf) { |
3577 | bttv_call_i2c_clients(btv, TDA9887_SET_CONFIG, | 3577 | struct v4l2_priv_tun_config tda9887_cfg; |
3578 | &btv->tda9887_conf); | 3578 | |
3579 | tda9887_cfg.tuner = TUNER_TDA9887; | ||
3580 | tda9887_cfg.priv = &btv->tda9887_conf; | ||
3581 | |||
3582 | bttv_call_i2c_clients(btv, TUNER_SET_CONFIG, &tda9887_cfg); | ||
3579 | } | 3583 | } |
3580 | 3584 | ||
3581 | btv->svhs = bttv_tvcards[btv->c.type].svhs; | 3585 | btv->svhs = bttv_tvcards[btv->c.type].svhs; |