From 7e5378db73d4f64199609f3ccf564f47c6c565e3 Mon Sep 17 00:00:00 2001 From: Michael Hunold Date: Thu, 16 Jan 2003 15:17:36 +0000 Subject: - 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 --- linux/drivers/media/dvb/ttpci-budget/budget-core.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'linux/drivers/media/dvb/ttpci-budget/budget-core.c') 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 -- cgit v1.2.3