diff -r e3072f6d5111 linux/drivers/media/dvb/frontends/lnbp22.c
a
|
b
|
|
58 | 58 | SEC_VOLTAGE_18, SEC_VOLTAGE_13); |
59 | 59 | |
60 | 60 | lnbp22->config[3] = 0x60; // Power down |
| 61 | lnbp22->config[2] &= ~LNBP22_PWR_EN; |
61 | 62 | switch(voltage) { |
62 | 63 | case SEC_VOLTAGE_OFF: |
63 | 64 | break; |
64 | 65 | case SEC_VOLTAGE_13: |
65 | 66 | lnbp22->config[3] |= LNBP22_EN; |
| 67 | lnbp22->config[2] |= LNBP22_PWR_EN; |
66 | 68 | break; |
67 | 69 | case SEC_VOLTAGE_18: |
68 | 70 | lnbp22->config[3] |= (LNBP22_EN | LNBP22_VSEL); |
| 71 | lnbp22->config[2] |= LNBP22_PWR_EN; |
69 | 72 | break; |
70 | 73 | default: |
71 | 74 | return -EINVAL; |
diff -r e3072f6d5111 linux/drivers/media/dvb/frontends/lnbp22.h
a
|
b
|
|
28 | 28 | #ifndef _LNBP22_H |
29 | 29 | #define _LNBP22_H |
30 | 30 | |
| 31 | // Config byte 3 |
31 | 32 | // Enable |
32 | 33 | #define LNBP22_EN 0x10 |
33 | 34 | // Voltage selection |
… |
… |
|
35 | 36 | // Plus 1 Volt Bit |
36 | 37 | #define LNBP22_LLC 0x01 |
37 | 38 | |
| 39 | // Config Byte 2 |
| 40 | // Enable LNB Power supply |
| 41 | #define LNBP22_PWR_EN 0x01 |
| 42 | |
38 | 43 | #include <linux/dvb/frontend.h> |
39 | 44 | |
40 | 45 | #if defined(CONFIG_DVB_LNBP22) || (defined(CONFIG_DVB_LNBP22_MODULE) && defined(MODULE)) |