summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/ttpci/budget.c
diff options
context:
space:
mode:
authorAndrew de Quincy <devnull@localhost>2004-11-07 16:12:32 +0000
committerAndrew de Quincy <devnull@localhost>2004-11-07 16:12:32 +0000
commit42f883be562bf0649c308d7e206e73098074a72e (patch)
treef74def39b7cffc2aa6d57697cd84e7d865f26c26 /linux/drivers/media/dvb/ttpci/budget.c
parent8ffa4c64409b1378cda7de9203be2113420224b5 (diff)
downloadmediapointer-dvb-s2-42f883be562bf0649c308d7e206e73098074a72e.tar.gz
mediapointer-dvb-s2-42f883be562bf0649c308d7e206e73098074a72e.tar.bz2
Fixed set_tone
Diffstat (limited to 'linux/drivers/media/dvb/ttpci/budget.c')
-rw-r--r--linux/drivers/media/dvb/ttpci/budget.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/ttpci/budget.c b/linux/drivers/media/dvb/ttpci/budget.c
index dc3ae56c7..03359ee94 100644
--- a/linux/drivers/media/dvb/ttpci/budget.c
+++ b/linux/drivers/media/dvb/ttpci/budget.c
@@ -151,13 +151,17 @@ static int budget_set_tone(struct dvb_frontend* fe, fe_sec_tone_mode_t tone)
switch (tone) {
case SEC_TONE_ON:
Set22K (budget, 1);
- break;
+ break;
+
case SEC_TONE_OFF:
Set22K (budget, 0);
break;
+
+ default:
+ return -EINVAL;
}
- return -EINVAL;
+ return 0;
}
static int budget_diseqc_send_master_cmd(struct dvb_frontend* fe, struct dvb_diseqc_master_cmd* cmd)