diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-24 14:21:08 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-24 14:21:08 -0400 |
commit | c328d54cd4ad120d76284e46dcca6c6cf996154a (patch) | |
tree | 104c023be66faa5fce6e0a56c0a6d13c62fd21e5 /drivers/media/dvb/bt8xx/dvb-bt8xx.c | |
parent | 346ad4b7fe392571f19314f153db9151dbc1d82b (diff) | |
parent | b0166ab3a6ae6d7af8d9a21a7836154963c69a11 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/v4l-dvb
* git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/v4l-dvb: (452 commits)
V4L/DVB (7731): tuner-xc2028: fix signal strength calculus
V4L/DVB (7730): tuner-xc2028: Fix SCODE load for MTS firmwares
V4L/DVB (7729): Fix VIDIOCGAP corruption in ivtv
V4L/DVB (7728): tea5761: bugzilla #10462: tea5761 autodetection code were broken
V4L/DVB (7726): cx23885: Enable cx23417 support on the HVR1800
V4L/DVB (7725): cx23885: Add generic cx23417 hardware encoder support
V4L/DVB (7723): pvrusb2: Clean up input selection list generation in V4L interface
V4L/DVB (7722): pvrusb2: Implement FM radio support for Gotview USB2.0 DVD 2
V4L/DVB (7721): pvrusb2: Restructure cx23416 firmware loading to have a common exit point
V4L/DVB (7720): pvrusb2: Fix bad error code on cx23416 firmware load failure
V4L/DVB (7719): pvrusb2: Implement input selection enforcement
V4L/DVB (7718): pvrusb2-dvb: update Kbuild selections
V4L/DVB (7717): pvrusb2-dvb: add DVB-T support for Hauppauge pvrusb2 model 73xxx
V4L/DVB (7716): pvrusb2: clean up global functions
V4L/DVB (7715): pvrusb2: Clean out all use of __FUNCTION__
V4L/DVB (7714): pvrusb2: Fix hang on module removal
V4L/DVB (7713): pvrusb2: Implement cleaner DVB kernel thread shutdown
V4L/DVB (7712): pvrusb2: Close connect/disconnect race
V4L/DVB (7711): pvrusb2: Fix race on module unload
V4L/DVB (7710): pvrusb2: Implement critical digital streaming quirk for onair devices
...
Diffstat (limited to 'drivers/media/dvb/bt8xx/dvb-bt8xx.c')
-rw-r--r-- | drivers/media/dvb/bt8xx/dvb-bt8xx.c | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/drivers/media/dvb/bt8xx/dvb-bt8xx.c b/drivers/media/dvb/bt8xx/dvb-bt8xx.c index dedd30a8356b..6afbfbbef0ce 100644 --- a/drivers/media/dvb/bt8xx/dvb-bt8xx.c +++ b/drivers/media/dvb/bt8xx/dvb-bt8xx.c | |||
@@ -40,10 +40,12 @@ static int debug; | |||
40 | module_param(debug, int, 0644); | 40 | module_param(debug, int, 0644); |
41 | MODULE_PARM_DESC(debug, "Turn on/off debugging (default:off)."); | 41 | MODULE_PARM_DESC(debug, "Turn on/off debugging (default:off)."); |
42 | 42 | ||
43 | DVB_DEFINE_MOD_OPT_ADAPTER_NR(adapter_nr); | ||
44 | |||
43 | #define dprintk( args... ) \ | 45 | #define dprintk( args... ) \ |
44 | do \ | 46 | do { \ |
45 | if (debug) printk(KERN_DEBUG args); \ | 47 | if (debug) printk(KERN_DEBUG args); \ |
46 | while (0) | 48 | } while (0) |
47 | 49 | ||
48 | #define IF_FREQUENCYx6 217 /* 6 * 36.16666666667MHz */ | 50 | #define IF_FREQUENCYx6 217 /* 6 * 36.16666666667MHz */ |
49 | 51 | ||
@@ -609,8 +611,9 @@ static void frontend_init(struct dvb_bt8xx_card *card, u32 type) | |||
609 | lgdt330x_reset(card); | 611 | lgdt330x_reset(card); |
610 | card->fe = dvb_attach(lgdt330x_attach, &tdvs_tua6034_config, card->i2c_adapter); | 612 | card->fe = dvb_attach(lgdt330x_attach, &tdvs_tua6034_config, card->i2c_adapter); |
611 | if (card->fe != NULL) { | 613 | if (card->fe != NULL) { |
612 | dvb_attach(dvb_pll_attach, card->fe, 0x61, | 614 | dvb_attach(simple_tuner_attach, card->fe, |
613 | card->i2c_adapter, DVB_PLL_LG_TDVS_H06XF); | 615 | card->i2c_adapter, 0x61, |
616 | TUNER_LG_TDVS_H06XF); | ||
614 | dprintk ("dvb_bt8xx: lgdt330x detected\n"); | 617 | dprintk ("dvb_bt8xx: lgdt330x detected\n"); |
615 | } | 618 | } |
616 | break; | 619 | break; |
@@ -670,7 +673,7 @@ static void frontend_init(struct dvb_bt8xx_card *card, u32 type) | |||
670 | state->dst_ca = NULL; | 673 | state->dst_ca = NULL; |
671 | /* DST is not a frontend, attaching the ASIC */ | 674 | /* DST is not a frontend, attaching the ASIC */ |
672 | if (dvb_attach(dst_attach, state, &card->dvb_adapter) == NULL) { | 675 | if (dvb_attach(dst_attach, state, &card->dvb_adapter) == NULL) { |
673 | printk("%s: Could not find a Twinhan DST.\n", __FUNCTION__); | 676 | printk("%s: Could not find a Twinhan DST.\n", __func__); |
674 | break; | 677 | break; |
675 | } | 678 | } |
676 | /* Attach other DST peripherals if any */ | 679 | /* Attach other DST peripherals if any */ |
@@ -692,8 +695,9 @@ static void frontend_init(struct dvb_bt8xx_card *card, u32 type) | |||
692 | case BTTV_BOARD_PC_HDTV: | 695 | case BTTV_BOARD_PC_HDTV: |
693 | card->fe = dvb_attach(or51211_attach, &or51211_config, card->i2c_adapter); | 696 | card->fe = dvb_attach(or51211_attach, &or51211_config, card->i2c_adapter); |
694 | if (card->fe != NULL) | 697 | if (card->fe != NULL) |
695 | dvb_attach(dvb_pll_attach, card->fe, 0x61, | 698 | dvb_attach(simple_tuner_attach, card->fe, |
696 | card->i2c_adapter, DVB_PLL_FCV1236D); | 699 | card->i2c_adapter, 0x61, |
700 | TUNER_PHILIPS_FCV1236D); | ||
697 | break; | 701 | break; |
698 | } | 702 | } |
699 | 703 | ||
@@ -715,7 +719,10 @@ static int __devinit dvb_bt8xx_load_card(struct dvb_bt8xx_card *card, u32 type) | |||
715 | { | 719 | { |
716 | int result; | 720 | int result; |
717 | 721 | ||
718 | if ((result = dvb_register_adapter(&card->dvb_adapter, card->card_name, THIS_MODULE, &card->bt->dev->dev)) < 0) { | 722 | result = dvb_register_adapter(&card->dvb_adapter, card->card_name, |
723 | THIS_MODULE, &card->bt->dev->dev, | ||
724 | adapter_nr); | ||
725 | if (result < 0) { | ||
719 | printk("dvb_bt8xx: dvb_register_adapter failed (errno = %d)\n", result); | 726 | printk("dvb_bt8xx: dvb_register_adapter failed (errno = %d)\n", result); |
720 | return result; | 727 | return result; |
721 | } | 728 | } |