aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb
diff options
context:
space:
mode:
authorSteven Toth <stoth@linuxtv.org>2008-10-06 20:06:48 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-10-13 10:27:24 -0400
commit0a6393ae21d58e85882185ce1e6b0fe28ff2dfa6 (patch)
tree658582ca377a3d41dd9717dcac9ae397411567dd /drivers/media/dvb
parent8a4949b7e98cbb9e304416ecf6da978e1fb1fb9e (diff)
V4L/DVB (9177): S2API: Change _8PSK / _16APSK to PSK_8 and APSK_16
... and cleanup any drivers using them. I've also removed NBC_QPSK and modified the cx24116 driver to check the delivery_type also, removing some excess namespace baggage. Signed-off-by: Steven Toth <stoth@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r--drivers/media/dvb/dvb-core/dvb_frontend.c6
-rw-r--r--drivers/media/dvb/frontends/cx24116.c51
2 files changed, 29 insertions, 28 deletions
diff --git a/drivers/media/dvb/dvb-core/dvb_frontend.c b/drivers/media/dvb/dvb-core/dvb_frontend.c
index 7fe9b3fb1e34..7b4b1a5ac427 100644
--- a/drivers/media/dvb/dvb-core/dvb_frontend.c
+++ b/drivers/media/dvb/dvb-core/dvb_frontend.c
@@ -1011,9 +1011,9 @@ void dtv_property_adv_params_sync(struct dvb_frontend *fe)
1011 p->inversion = c->inversion; 1011 p->inversion = c->inversion;
1012 1012
1013 switch(c->modulation) { 1013 switch(c->modulation) {
1014 case _8PSK: 1014 case PSK_8:
1015 case _16APSK: 1015 case APSK_16:
1016 case NBC_QPSK: 1016 case QPSK:
1017 p->u.qpsk.symbol_rate = c->symbol_rate; 1017 p->u.qpsk.symbol_rate = c->symbol_rate;
1018 p->u.qpsk.fec_inner = c->fec_inner; 1018 p->u.qpsk.fec_inner = c->fec_inner;
1019 break; 1019 break;
diff --git a/drivers/media/dvb/frontends/cx24116.c b/drivers/media/dvb/frontends/cx24116.c
index 808ef2995d80..30f82cb0928b 100644
--- a/drivers/media/dvb/frontends/cx24116.c
+++ b/drivers/media/dvb/frontends/cx24116.c
@@ -344,6 +344,7 @@ static int cx24116_set_inversion(struct cx24116_state* state, fe_spectral_invers
344 * a scheme are support. Especially, no auto detect when in S2 mode. 344 * a scheme are support. Especially, no auto detect when in S2 mode.
345 */ 345 */
346struct cx24116_modfec { 346struct cx24116_modfec {
347 fe_delivery_system_t delivery_system;
347 fe_modulation_t modulation; 348 fe_modulation_t modulation;
348 fe_code_rate_t fec; 349 fe_code_rate_t fec;
349 u8 mask; /* In DVBS mode this is used to autodetect */ 350 u8 mask; /* In DVBS mode this is used to autodetect */
@@ -352,32 +353,32 @@ struct cx24116_modfec {
352 /* QPSK. For unknown rates we set hardware to auto detect 0xfe 0x30 */ 353 /* QPSK. For unknown rates we set hardware to auto detect 0xfe 0x30 */
353 354
354 /*mod fec mask val */ 355 /*mod fec mask val */
355 { QPSK, FEC_NONE, 0xfe, 0x30 }, 356 { SYS_DVBS, QPSK, FEC_NONE, 0xfe, 0x30 },
356 { QPSK, FEC_1_2, 0x02, 0x2e }, /* 00000010 00101110 */ 357 { SYS_DVBS, QPSK, FEC_1_2, 0x02, 0x2e }, /* 00000010 00101110 */
357 { QPSK, FEC_2_3, 0x04, 0x2f }, /* 00000100 00101111 */ 358 { SYS_DVBS, QPSK, FEC_2_3, 0x04, 0x2f }, /* 00000100 00101111 */
358 { QPSK, FEC_3_4, 0x08, 0x30 }, /* 00001000 00110000 */ 359 { SYS_DVBS, QPSK, FEC_3_4, 0x08, 0x30 }, /* 00001000 00110000 */
359 { QPSK, FEC_4_5, 0xfe, 0x30 }, /* 000?0000 ? */ 360 { SYS_DVBS, QPSK, FEC_4_5, 0xfe, 0x30 }, /* 000?0000 ? */
360 { QPSK, FEC_5_6, 0x20, 0x31 }, /* 00100000 00110001 */ 361 { SYS_DVBS, QPSK, FEC_5_6, 0x20, 0x31 }, /* 00100000 00110001 */
361 { QPSK, FEC_6_7, 0xfe, 0x30 }, /* 0?000000 ? */ 362 { SYS_DVBS, QPSK, FEC_6_7, 0xfe, 0x30 }, /* 0?000000 ? */
362 { QPSK, FEC_7_8, 0x80, 0x32 }, /* 10000000 00110010 */ 363 { SYS_DVBS, QPSK, FEC_7_8, 0x80, 0x32 }, /* 10000000 00110010 */
363 { QPSK, FEC_8_9, 0xfe, 0x30 }, /* 0000000? ? */ 364 { SYS_DVBS, QPSK, FEC_8_9, 0xfe, 0x30 }, /* 0000000? ? */
364 { QPSK, FEC_AUTO, 0xfe, 0x30 }, 365 { SYS_DVBS, QPSK, FEC_AUTO, 0xfe, 0x30 },
365 /* NBC-QPSK */ 366 /* NBC-QPSK */
366 { NBC_QPSK, FEC_1_2, 0x00, 0x04 }, 367 { SYS_DVBS2, QPSK, FEC_1_2, 0x00, 0x04 },
367 { NBC_QPSK, FEC_3_5, 0x00, 0x05 }, 368 { SYS_DVBS2, QPSK, FEC_3_5, 0x00, 0x05 },
368 { NBC_QPSK, FEC_2_3, 0x00, 0x06 }, 369 { SYS_DVBS2, QPSK, FEC_2_3, 0x00, 0x06 },
369 { NBC_QPSK, FEC_3_4, 0x00, 0x07 }, 370 { SYS_DVBS2, QPSK, FEC_3_4, 0x00, 0x07 },
370 { NBC_QPSK, FEC_4_5, 0x00, 0x08 }, 371 { SYS_DVBS2, QPSK, FEC_4_5, 0x00, 0x08 },
371 { NBC_QPSK, FEC_5_6, 0x00, 0x09 }, 372 { SYS_DVBS2, QPSK, FEC_5_6, 0x00, 0x09 },
372 { NBC_QPSK, FEC_8_9, 0x00, 0x0a }, 373 { SYS_DVBS2, QPSK, FEC_8_9, 0x00, 0x0a },
373 { NBC_QPSK, FEC_9_10, 0x00, 0x0b }, 374 { SYS_DVBS2, QPSK, FEC_9_10, 0x00, 0x0b },
374 /* 8PSK */ 375 /* 8PSK */
375 { _8PSK, FEC_3_5, 0x00, 0x0c }, 376 { SYS_DVBS2, PSK_8, FEC_3_5, 0x00, 0x0c },
376 { _8PSK, FEC_2_3, 0x00, 0x0d }, 377 { SYS_DVBS2, PSK_8, FEC_2_3, 0x00, 0x0d },
377 { _8PSK, FEC_3_4, 0x00, 0x0e }, 378 { SYS_DVBS2, PSK_8, FEC_3_4, 0x00, 0x0e },
378 { _8PSK, FEC_5_6, 0x00, 0x0f }, 379 { SYS_DVBS2, PSK_8, FEC_5_6, 0x00, 0x0f },
379 { _8PSK, FEC_8_9, 0x00, 0x10 }, 380 { SYS_DVBS2, PSK_8, FEC_8_9, 0x00, 0x10 },
380 { _8PSK, FEC_9_10, 0x00, 0x11 }, 381 { SYS_DVBS2, PSK_8, FEC_9_10, 0x00, 0x11 },
381 /* 382 /*
382 * `val' can be found in the FECSTATUS register when tuning. 383 * `val' can be found in the FECSTATUS register when tuning.
383 * FECSTATUS will give the actual FEC in use if tuning was successful. 384 * FECSTATUS will give the actual FEC in use if tuning was successful.
@@ -1158,7 +1159,7 @@ static int cx24116_set_frontend(struct dvb_frontend* fe, struct dvb_frontend_par
1158 * NBC 8PSK/QPSK with DVB-S is supported for DVB-S2, 1159 * NBC 8PSK/QPSK with DVB-S is supported for DVB-S2,
1159 * but not hardware auto detection 1160 * but not hardware auto detection
1160 */ 1161 */
1161 if(c->modulation != _8PSK && c->modulation != NBC_QPSK) { 1162 if(c->modulation != PSK_8 && c->modulation != QPSK) {
1162 dprintk("%s: unsupported modulation selected (%d)\n", 1163 dprintk("%s: unsupported modulation selected (%d)\n",
1163 __func__, c->modulation); 1164 __func__, c->modulation);
1164 return -EOPNOTSUPP; 1165 return -EOPNOTSUPP;