summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/ttpci-budget/budget-core.c
diff options
context:
space:
mode:
authorMichael Hunold <devnull@localhost>2003-01-16 15:17:36 +0000
committerMichael Hunold <devnull@localhost>2003-01-16 15:17:36 +0000
commit7e5378db73d4f64199609f3ccf564f47c6c565e3 (patch)
tree80235168ee0b56e3cb198b1f6934f15ed1e492d2 /linux/drivers/media/dvb/ttpci-budget/budget-core.c
parentddfc150a995f065fffb03791eebd341adfdb0a1f (diff)
downloadmediapointer-dvb-s2-7e5378db73d4f64199609f3ccf564f47c6c565e3.tar.gz
mediapointer-dvb-s2-7e5378db73d4f64199609f3ccf564f47c6c565e3.tar.bz2
- renamed card enum as suggested by Holger
- added fix for cards with hardware diseqc suggested by Peter Schildmann - cleaned up the cards declaration and variables using preprocessor magic
Diffstat (limited to 'linux/drivers/media/dvb/ttpci-budget/budget-core.c')
-rw-r--r--linux/drivers/media/dvb/ttpci-budget/budget-core.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/linux/drivers/media/dvb/ttpci-budget/budget-core.c b/linux/drivers/media/dvb/ttpci-budget/budget-core.c
index b3d19c072..e657885da 100644
--- a/linux/drivers/media/dvb/ttpci-budget/budget-core.c
+++ b/linux/drivers/media/dvb/ttpci-budget/budget-core.c
@@ -308,8 +308,9 @@ int budget_register(struct budget_s *budget)
budget->registered=1;
- /* init DiSEqC stuff */
- dvb_add_frontend_ioctls (budget->dvb_adapter, budget_diseqc_ioctl, NULL, budget);
+ /* init DiSEqC stuff if necessary */
+ if(budget->card->type == BUDGET_TT)
+ dvb_add_frontend_ioctls (budget->dvb_adapter, budget_diseqc_ioctl, NULL, budget);
memcpy(budget->demux_id, "demux0_0", 9);
budget->demux_id[7]=budget->dvb_adapter->num+0x30;
@@ -385,7 +386,8 @@ dvb_unregister(struct budget_s *budget)
dvb_dmxdev_release(&budget->dmxdev);
dvb_dmx_release(&budget->demux);
- dvb_remove_frontend_ioctls (budget->dvb_adapter, budget_diseqc_ioctl, NULL);
+ if(budget->card->type == BUDGET_TT)
+ dvb_remove_frontend_ioctls (budget->dvb_adapter, budget_diseqc_ioctl, NULL);
}
static