summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/cx24123.c
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2006-06-29 19:29:29 -0400
committerMichael Krufky <mkrufky@linuxtv.org>2006-06-29 19:29:29 -0400
commit48e971d5ca65cc35c8eb0baf2613ee29a57d935b (patch)
tree4659941451895a9da64ad69521084c4b236eb5ce /linux/drivers/media/dvb/frontends/cx24123.c
parentd0e72a04e4e692f7aa589745abd2da9258168870 (diff)
downloadmediapointer-dvb-s2-48e971d5ca65cc35c8eb0baf2613ee29a57d935b.tar.gz
mediapointer-dvb-s2-48e971d5ca65cc35c8eb0baf2613ee29a57d935b.tar.bz2
cx24123: fix set_voltage function according to the specs
From: Saqeb Akhter <johoja@gmail.com> The set_voltage function in cx24123.c was corrected to match how it is described in the CX24123 specs, producing the correct behaviour for cards that require it. Signed-off-by: Saqeb Akhter <johoja@gmail.com> Acked-by: Andrew de Quincey <adq_dvb@lidskialf.net> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/dvb/frontends/cx24123.c')
-rw-r--r--linux/drivers/media/dvb/frontends/cx24123.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/frontends/cx24123.c b/linux/drivers/media/dvb/frontends/cx24123.c
index ab1bc9a22..cdec0857a 100644
--- a/linux/drivers/media/dvb/frontends/cx24123.c
+++ b/linux/drivers/media/dvb/frontends/cx24123.c
@@ -681,10 +681,10 @@ static int cx24123_set_voltage(struct dvb_frontend* fe, fe_sec_voltage_t voltage
switch (voltage) {
case SEC_VOLTAGE_13:
dprintk("%s: setting voltage 13V\n", __FUNCTION__);
- return cx24123_writereg(state, 0x29, val | 0x80);
+ return cx24123_writereg(state, 0x29, val & 0x7f);
case SEC_VOLTAGE_18:
dprintk("%s: setting voltage 18V\n", __FUNCTION__);
- return cx24123_writereg(state, 0x29, val & 0x7f);
+ return cx24123_writereg(state, 0x29, val | 0x80);
default:
return -EINVAL;
};