diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-11-22 10:19:37 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-25 16:02:39 -0500 |
commit | 71a2ee37e8851f430d72daea0722908512d57f79 (patch) | |
tree | 29c63bcd6489bba68b354ddc3ee7613869fb09db /drivers/media/video/tuner-xc2028.c | |
parent | 5add9a6f3c90680f89b4694e81025d2aed9559af (diff) |
V4L/DVB (6660): Allow fully configuring xc3028 during xc2028_attach
xc3028 can be used on some DTV only designs (for example, DVB-S boards). Before
this patch, a DTV only board would need to call set_tuner_config callback.
This patch allows to optionally pass a xc3028_ctrl parameter, via xc3028_config
struct, fully initializing the driver for DTV.
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/tuner-xc2028.c')
-rw-r--r-- | drivers/media/video/tuner-xc2028.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/media/video/tuner-xc2028.c b/drivers/media/video/tuner-xc2028.c index 6a6642ea48ce..c231e7a74ffb 100644 --- a/drivers/media/video/tuner-xc2028.c +++ b/drivers/media/video/tuner-xc2028.c | |||
@@ -1061,7 +1061,7 @@ void *xc2028_attach(struct dvb_frontend *fe, struct xc2028_config *cfg) | |||
1061 | if (debug) | 1061 | if (debug) |
1062 | printk(KERN_DEBUG PREFIX ": Xcv2028/3028 init called!\n"); | 1062 | printk(KERN_DEBUG PREFIX ": Xcv2028/3028 init called!\n"); |
1063 | 1063 | ||
1064 | if (NULL == cfg->video_dev) | 1064 | if (NULL == cfg || NULL == cfg->video_dev) |
1065 | return NULL; | 1065 | return NULL; |
1066 | 1066 | ||
1067 | if (!fe) { | 1067 | if (!fe) { |
@@ -1106,6 +1106,9 @@ void *xc2028_attach(struct dvb_frontend *fe, struct xc2028_config *cfg) | |||
1106 | 1106 | ||
1107 | tuner_info("type set to %s\n", "XCeive xc2028/xc3028 tuner"); | 1107 | tuner_info("type set to %s\n", "XCeive xc2028/xc3028 tuner"); |
1108 | 1108 | ||
1109 | if (cfg->ctrl) | ||
1110 | xc2028_set_config(fe, cfg->ctrl); | ||
1111 | |||
1109 | mutex_unlock(&xc2028_list_mutex); | 1112 | mutex_unlock(&xc2028_list_mutex); |
1110 | 1113 | ||
1111 | return fe; | 1114 | return fe; |