diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-01-04 20:10:19 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-01-04 20:10:19 -0500 |
commit | 6225f18b88b9ba6c6643aa8c1c96f51a9ad24380 (patch) | |
tree | a8f664e24e0b070f1ab00f6c1d718ead5d582a21 /drivers/media/dvb/firewire | |
parent | 534e04810304a9c6715220b392aa387197d5fa15 (diff) |
[media] Don't test for ops->info.type inside drivers
Now, ops->info.type is handled inside the dvb_frontend
core, only for DVBv3 calls, and according with the
delivery system. So, drivers should not care or use it,
otherwise, it may have issues with DVBv5 calls.
The drivers that were still using it were detected via
this small temporary hack:
--- a/include/linux/dvb/frontend.h
+++ b/include/linux/dvb/frontend.h
@@ -29,13 +29,16 @@
#include <linux/types.h>
typedef enum fe_type {
+#if defined(__DVB_CORE__) || !defined (__KERNEL__)
FE_QPSK,
FE_QAM,
FE_OFDM,
FE_ATSC
+#else
+FE_FOOO
+#endif
} fe_type_t;
-
typedef enum fe_caps {
FE_IS_STUPID = 0,
FE_CAN_INVERSION_AUTO = 0x1,
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/firewire')
-rw-r--r-- | drivers/media/dvb/firewire/firedtv-fe.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/media/dvb/firewire/firedtv-fe.c b/drivers/media/dvb/firewire/firedtv-fe.c index 39f5caafd2be..6fe9793b98b3 100644 --- a/drivers/media/dvb/firewire/firedtv-fe.c +++ b/drivers/media/dvb/firewire/firedtv-fe.c | |||
@@ -173,7 +173,6 @@ void fdtv_frontend_init(struct firedtv *fdtv, const char *name) | |||
173 | switch (fdtv->type) { | 173 | switch (fdtv->type) { |
174 | case FIREDTV_DVB_S: | 174 | case FIREDTV_DVB_S: |
175 | ops->delsys[0] = SYS_DVBS; | 175 | ops->delsys[0] = SYS_DVBS; |
176 | fi->type = FE_QPSK; | ||
177 | 176 | ||
178 | fi->frequency_min = 950000; | 177 | fi->frequency_min = 950000; |
179 | fi->frequency_max = 2150000; | 178 | fi->frequency_max = 2150000; |
@@ -193,8 +192,7 @@ void fdtv_frontend_init(struct firedtv *fdtv, const char *name) | |||
193 | 192 | ||
194 | case FIREDTV_DVB_S2: | 193 | case FIREDTV_DVB_S2: |
195 | ops->delsys[0] = SYS_DVBS; | 194 | ops->delsys[0] = SYS_DVBS; |
196 | ops->delsys[1] = SYS_DVBS; | 195 | ops->delsys[1] = SYS_DVBS2; |
197 | fi->type = FE_QPSK; | ||
198 | 196 | ||
199 | fi->frequency_min = 950000; | 197 | fi->frequency_min = 950000; |
200 | fi->frequency_max = 2150000; | 198 | fi->frequency_max = 2150000; |
@@ -215,7 +213,6 @@ void fdtv_frontend_init(struct firedtv *fdtv, const char *name) | |||
215 | 213 | ||
216 | case FIREDTV_DVB_C: | 214 | case FIREDTV_DVB_C: |
217 | ops->delsys[0] = SYS_DVBC_ANNEX_A; | 215 | ops->delsys[0] = SYS_DVBC_ANNEX_A; |
218 | fi->type = FE_QAM; | ||
219 | 216 | ||
220 | fi->frequency_min = 47000000; | 217 | fi->frequency_min = 47000000; |
221 | fi->frequency_max = 866000000; | 218 | fi->frequency_max = 866000000; |
@@ -234,7 +231,6 @@ void fdtv_frontend_init(struct firedtv *fdtv, const char *name) | |||
234 | 231 | ||
235 | case FIREDTV_DVB_T: | 232 | case FIREDTV_DVB_T: |
236 | ops->delsys[0] = SYS_DVBT; | 233 | ops->delsys[0] = SYS_DVBT; |
237 | fi->type = FE_OFDM; | ||
238 | 234 | ||
239 | fi->frequency_min = 49000000; | 235 | fi->frequency_min = 49000000; |
240 | fi->frequency_max = 861000000; | 236 | fi->frequency_max = 861000000; |