Fix firmware load for DVB-T @ 6MHz
Andy Walls
Acked-byQuoted 29 lines · Patch from Mauro Carvalho Chehab
The patch number 11917 was added via Mauro Carvalho Chehab <[email protected]> to http://linuxtv.org/hg/v4l-dvb master development tree.
Kernel patches in this development tree may be modified to be backward compatible with older kernels. Compatibility modifications will be removed before inclusion into the mainstream Kernel
If anyone has any objections, please let us know by sending a message to:
Linux Media Mailing List <[email protected]>------
From: Mauro Carvalho Chehab <[email protected]>
Fix firmware load for DVB-T @ 6MHzbandwidth for xc3028/xc3028L
The only two countries that are known to use 6MHz bandwidth are Taiwan and Uruguay. Both use QAM subcarriers at OFTM.
This patch fixes the firmware load for such countries, where the required firmware is the QAM one.
This also confirms the previous tests where it was noticed that the 6MHz QAM firmware doesn't work for cable. So, this patch also removes support for DVB-C, instead of just printing a warning.
Quoted 9 lines
Thanks to Terry Wu <[email protected]> for pointing this issue and to Andy Walls <[email protected]> for an initial patch for this fix.
Priority: normal
CC Terry Wu <[email protected]>CC Andy Walls <[email protected]>Signed-off-by Mauro Carvalho Chehab <[email protected]>
I looks like it accomplishes the 6 MHz DVB-T support in xc2028_set_params() that Terry needed. I personally wouldn't have disabled the FE_QAM stuff. However it doesn't matter as far as current Linux driver use of the XC3028 is concerned - no driver currently sets up the XC3028 with a DVB-C demod.
Regards,
Andy
Quoted 44 lines
---
linux/drivers/media/common/tuners/tuner-xc2028.c | 17 +++++++-------- 1 file changed, 8 insertions(+), 9 deletions(-)diff -r
d55ec37bebfa-rc78c18fe3dc9linux/drivers/media/common/tuners/tuner-xc2028.clinux/drivers/media/common/tuners/tuner-xc2028.c +8
-10@@ -1026,21 +1026,20 @@ static int xc2028_set_params(struct dvb_switch (fe->ops.info.type) {case FE_OFDM : bw = p->u.ofdm.bandwidth; -break ; -case FE_QAM : -tuner_info ("WARN: There are some reports that " -"QAM 6 MHz doesn't work.\n" -"If this works for you, please report by " -"e-mail to: [email protected]\n" ); - bw =BANDWIDTH_6_MHZ ; - type |=QAM ; +/* +* The only countries with 6MHz seem to be Taiwan/Uruguay. +* Both seem to require QAM firmware for OFDM decoding +* Tested in Taiwan by Terry Wu <[email protected]> +*/ +if (bw ==BANDWIDTH_6_MHZ ) + type |=QAM ;break ;case FE_ATSC : bw =BANDWIDTH_6_MHZ ;/* The only ATSC firmware (at least on v2.7) is D2633 */ type |=ATSC |D2633 ;break ; -/* DVB-S is not supported */ +/* DVB-S and pure QAM (FE_QAM) are not supported */ default :return -EINVAL ; } ---Patch is available at: http://linuxtv.org/hg/v4l-dvb/rev/c78c18fe3dc9f1338a589130c4eeed14c1d90b44
Em Mon, 01 Jun 2009 19:56:39 -0400
Andy Walls <[email protected]> escreveu:
Quoted 5 lines
I looks like it accomplishes the 6 MHz DVB-T support in
xc2028_set_params()that Terry needed. I personally wouldn't have disabled theFE_QAMstuff. However it doesn't matter as far as current Linux driver use of the XC3028 is concerned - no driver currently sets up the XC3028 with a DVB-C demod.
All trials of using FE_QAM failed, and nobody ever returned based on that dmesg. I was asked in the past to remove it, but I nacked, to avoid the risk of loosing something.
The discover that the qam firmware is, in fact, for Taiwan is the missing part of the puzzle.
Signature · 2 lines
Cheers, Mauro