XC5000 improvements: call for testers!
-------- Original Message --------
Subject: Re: XC5000 improvements: call for testers!
Date: Wed, 06 May 2009 19:09:23 -0500
From: John R. <[email protected]>
To: Linux Media Mailing List <[email protected]>
References: <[email protected]>
Quoted 9 lines · John R.
Devin Heitmueller wrote:
[snip]
Quoted 5 lines
Unfortunately, current users are going to have to upgrade to the new firmware. However, this is a one time cost and I will work with the distros to get it bundled so that users won't have to do this in the future:
Quoted 8 lines
Quoted 2 lines
http://www.devinheitmueller.com/xc5000/dvb-fe-xc5000-1.6.114.fw
http://www.devinheitmueller.com/xc5000/README.xc5000I downloaded the tip archive for xc5000-improvements-beta, compiled and installed it. I copied the firmware above into
/lib/firmware(where the old one was). However, when the driver loads it still loads the old firmware. If this is a non-linux-media question then feel free to direct me where to look. My searching hasn't yet yielded anything yet.Thanks,
John
After some off-list pointers by Devin, I tracked this down to user error. I thought I was compiling tip for xc5000-improvements-beta but was not. This is now working and composite input video works well on my 950Q. I notice no difference from previous version (wouldn't really expect to based on changes).
Thanks,
John
Re: CX24123 no FE_HAS_LOCK/tuning failed.
Rex,
The Hauppauge WinTV Nova-S-Plus has had problems with hi-band transponders since the 2.6.20 kernel or thereabouts. The Optus D1 transponders all seem to be hi-band. See the thread at:
http://bugzilla.kernel.org/show_bug.cgi?id=9476 where I outlined a fix which works OK for this card, but is not robust enough for general use.
In my last post to that thread I make a reference to the isl6421.h file, but it should be to the isl6421.c file. I was confused as that file identifies itself as isl6421.h in line 2. I made no change to isl6421.h.
Regards,
John
Re: CX24123 no FE_HAS_LOCK/tuning failed.
Thanks for the reply John,
Quoted 7 lines
he Hauppauge WinTV Nova-S-Plus has had problems with hi-band transponders since the 2.6.20 kernel or thereabouts. The Optus D1 transponders all seem to be hi-band. See the thread at:
http://bugzilla.kernel.org/show_bug.cgi?id=9476 where I outlined a fix which works OK for this card, but is not robust enough for general use.
I've added this to the latest version of ...
root@mythbox:/usr/src/v4l-dvb# hg diff linux/drivers/media/dvb/frontends/isl6421.c
diff -r fe524e0a6412 linux/drivers/media/dvb/frontends/isl6421.c
--- a/linux/drivers/media/dvb/frontends/isl6421.c Tue May 05 08:50:54 2009 -0300
+++ b/linux/drivers/media/dvb/frontends/isl6421.c Fri May 08 11:30:07 2009 +1200
@@ -99,6 +99,33 @@
fe->sec_priv = NULL;
}+static int isl6421_set_tone(struct dvb_frontend* fe, fe_sec_tone_mode_t tone) +{
+ struct isl6421 *isl6421 = (struct isl6421 *) fe->sec_priv;
+ struct i2c_msg msg = { .addr = isl6421->i2c_addr, .flags = 0,
+ .buf = &isl6421->config,
+ .len = sizeof(isl6421->config) };
+
+ switch (tone) {
+ case SEC_TONE_ON:
+ isl6421->config |= ISL6421_ENT1; + printk(KERN_INFO "%s(SEC_TONE_ON)", __func__); + break; + case SEC_TONE_OFF: + isl6421->config &= ~ISL6421_ENT1; + printk(KERN_INFO "%s(SEC_TONE_OFF)", __func__); + break;
+ default:
+ printk(KERN_ERR "%s: Invalid, tone=%d\n", __func__, tone);
+ return -EINVAL;
+ }
+
+ isl6421->config |= isl6421->override_or;
+ isl6421->config &= isl6421->override_and;
+
+ return (i2c_transfer(isl6421->i2c, &msg, 1) == 1) ? 0 : -EIO;
+}
+
struct dvb_frontend *isl6421_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, u8 i2c_addr,
u8 override_set, u8 override_clear)
{
@@ -130,12 +157,14 @@
/* override frontend ops */
fe->ops.set_voltage = isl6421_set_voltage;
+ fe->ops.set_tone = isl6421_set_tone;
fe->ops.enable_high_lnb_voltage = isl6421_enable_high_lnb_voltage;
return fe;
}EXPORT_SYMBOL(isl6421_attach);
+MODULE_DESCRIPTION("Driver for lnb supply and control ic isl6421"); MODULE_AUTHOR("Andrew de Quincey & Oliver Endriss"); MODULE_LICENSE("GPL");
*Unfortunately it didn't seem to help*
root@mythbox:/usr/src/v4l-dvb# !scan scan -vvv -a 0 ~tv/OptusD1 scanning /home/tv/OptusD1 using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0' initial transponder 12456000 H 22500000 3 initial transponder 12483000 H 22500000 3
Quoted 1 line
Quoted 1 line
Quoted 1 line
tune to: 12456:h:0:22500
DiSEqC: switch pos 0, 18V, hiband (index 3)
diseqc_send_msg:59: DiSEqC: e0 10 38 f3 00 00
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
tuning status ==
0x01
tuning status ==0x01
May 8 11:31:22 mythbox kernel: [ 3205.651828] cx88[0]/2-dvb: cx8802_dvb_advise_acquire May 8 11:31:22 mythbox kernel: [ 3205.652323] CX24123: cx24123_initfe: init frontend May 8 11:31:22 mythbox kernel: [ 3205.672802] isl6421_set_tone(SEC_TONE_OFF)<7>CX24123: cx24123_send_diseqc_msg: May 8 11:31:22 mythbox kernel: [ 3205.836714] CX24123: cx24123_diseqc_send_burst: May 8 11:31:22 mythbox kernel: [ 3205.952866] isl6421_set_tone(SEC_TONE_ON)<7>CX24123: cx24123_set_frontend: May 8 11:31:22 mythbox kernel: [ 3206.004824] CX24123: cx24123_set_inversion: inversion auto May 8 11:31:22 mythbox kernel: [ 3206.007124] CX24123: cx24123_set_fec: set FEC to 3/4 May 8 11:31:22 mythbox kernel: [ 3206.011208] CX24123: cx24123_set_symbolrate: srate=22500000, ratio=0x0038f7b8, sample_rate=50555000 sample_gain=1 May 8 11:31:22 mythbox kernel: [ 3206.011213] CX24123: cx24123_pll_tune: frequency=1856000 May 8 11:31:22 mythbox kernel: [ 3206.011215] CX24123: cx24123_pll_writereg: pll writereg called, data=0x00100e3f May 8 11:31:22 mythbox kernel: [ 3206.017467] CX24123: cx24123_pll_writereg: pll writereg called, data=0x000a0180 May 8 11:31:22 mythbox kernel: [ 3206.023693] CX24123: cx24123_pll_writereg: pll writereg called, data=0x00000220 May 8 11:31:22 mythbox kernel: [ 3206.030443] CX24123: cx24123_pll_writereg: pll writereg called, data=0x001f472b May 8 11:31:22 mythbox kernel: [ 3206.038349] CX24123: cx24123_pll_tune: pll tune VCA=1052223, band=544, pll=2049835
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
tuning status ==
0x01
tuning status ==0x01
tuning status ==0x01
tuning status ==0x01
tuning status ==0x01
tuning status ==0x01
tuning status ==0x01
tuning status ==0x01
WARNING: >>> tuning failed!!!
Quoted 1 line
Quoted 1 line
Quoted 1 line
tune to: 12456:h:0:22500 (tuning failed)
DiSEqC: switch pos 0, 18V, hiband (index 3)
diseqc_send_msg:59: DiSEqC: e0 10 38 f3 00 00
May 8 11:31:24 mythbox kernel: [ 3208.017792] isl6421_set_tone(SEC_TONE_OFF)<7>CX24123: cx24123_send_diseqc_msg: May 8 11:31:25 mythbox kernel: [ 3208.195719] CX24123: cx24123_diseqc_send_burst: May 8 11:31:25 mythbox kernel: [ 3208.312913] isl6421_set_tone(SEC_TONE_ON)<7>CX24123: cx24123_set_frontend: May 8 11:31:25 mythbox kernel: [ 3208.364885] CX24123: cx24123_set_inversion: inversion auto May 8 11:31:25 mythbox kernel: [ 3208.367181] CX24123: cx24123_set_fec: set FEC to 3/4 May 8 11:31:25 mythbox kernel: [ 3208.371271] CX24123: cx24123_set_symbolrate: srate=22500000, ratio=0x0038f7b8, sample_rate=50555000 sample_gain=1 May 8 11:31:25 mythbox kernel: [ 3208.371276] CX24123: cx24123_pll_tune: frequency=1856000 May 8 11:31:25 mythbox kernel: [ 3208.371279] CX24123: cx24123_pll_writereg: pll writereg called, data=0x00100e3f May 8 11:31:25 mythbox kernel: [ 3208.377524] CX24123: cx24123_pll_writereg: pll writereg called, data=0x000a0180 May 8 11:31:25 mythbox kernel: [ 3208.383763] CX24123: cx24123_pll_writereg: pll writereg called, data=0x00000220 May 8 11:31:25 mythbox kernel: [ 3208.390010] CX24123: cx24123_pll_writereg: pll writereg called, data=0x001f472b May 8 11:31:25 mythbox kernel: [ 3208.397886] CX24123: cx24123_pll_tune: pll tune VCA=1052223, band=544, pll=2049835
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
tuning status ==
0x01
tuning status ==0x01
tuning status ==0x01
tuning status ==0x01
tuning status ==0x01
tuning status ==0x01
tuning status ==0x01
tuning status ==0x01
tuning status ==0x01
tuning status ==0x01
WARNING: >>> tuning failed!!!
Quoted 1 line
Quoted 1 line
Quoted 1 line
tune to: 12483:h:0:22500
DiSEqC: switch pos 0, 18V, hiband (index 3)
diseqc_send_msg:59: DiSEqC: e0 10 38 f3 00 00
May 8 11:31:27 mythbox kernel: [ 3210.377686] isl6421_set_tone(SEC_TONE_OFF)<7>CX24123: cx24123_send_diseqc_msg:
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
tuning status ==
0x01
tuning status ==0x01
tuning status ==0x01
tuning status ==0x01
May 8 11:31:27 mythbox kernel: [ 3210.556708] CX24123: cx24123_diseqc_send_burst: May 8 11:31:27 mythbox kernel: [ 3210.672860] isl6421_set_tone(SEC_TONE_ON)<7>CX24123: cx24123_set_frontend: May 8 11:31:27 mythbox kernel: [ 3210.724817] CX24123: cx24123_set_inversion: inversion auto May 8 11:31:27 mythbox kernel: [ 3210.727113] CX24123: cx24123_set_fec: set FEC to 3/4 May 8 11:31:27 mythbox kernel: [ 3210.731205] CX24123: cx24123_set_symbolrate: srate=22500000, ratio=0x0038f7b8, sample_rate=50555000 sample_gain=1 May 8 11:31:27 mythbox kernel: [ 3210.731210] CX24123: cx24123_pll_tune: frequency=1883000 May 8 11:31:27 mythbox kernel: [ 3210.731212] CX24123: cx24123_pll_writereg: pll writereg called, data=0x00100e3f May 8 11:31:27 mythbox kernel: [ 3210.737458] CX24123: cx24123_pll_writereg: pll writereg called, data=0x000a0180 May 8 11:31:27 mythbox kernel: [ 3210.743689] CX24123: cx24123_pll_writereg: pll writereg called, data=0x00000220 May 8 11:31:27 mythbox kernel: [ 3210.749935] CX24123: cx24123_pll_writereg: pll writereg called, data=0x001f4746 May 8 11:31:27 mythbox kernel: [ 3210.757813] CX24123: cx24123_pll_tune: pll tune VCA=1052223, band=544, pll=2049862
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
tuning status ==
0x01
tuning status ==0x01
tuning status ==0x01
tuning status ==0x01
tuning status ==0x01
tuning status ==0x01
WARNING: >>> tuning failed!!!
Quoted 1 line
Quoted 1 line
Quoted 1 line
tune to: 12483:h:0:22500 (tuning failed)
DiSEqC: switch pos 0, 18V, hiband (index 3)
diseqc_send_msg:59: DiSEqC: e0 10 38 f3 00 00
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
tuning status ==
0x01
tuning status ==0x01
May 8 11:31:29 mythbox kernel: [ 3212.737670] isl6421_set_tone(SEC_TONE_OFF)<7>CX24123: cx24123_send_diseqc_msg: May 8 11:31:29 mythbox kernel: [ 3212.916717] CX24123: cx24123_diseqc_send_burst: May 8 11:31:29 mythbox kernel: [ 3213.038352] isl6421_set_tone(SEC_TONE_ON)<7>CX24123: cx24123_set_frontend: May 8 11:31:29 mythbox kernel: [ 3213.090064] CX24123: cx24123_set_inversion: inversion auto May 8 11:31:29 mythbox kernel: [ 3213.092377] CX24123: cx24123_set_fec: set FEC to 3/4 May 8 11:31:29 mythbox kernel: [ 3213.096462] CX24123: cx24123_set_symbolrate: srate=22500000, ratio=0x0038f7b8, sample_rate=50555000 sample_gain=1 May 8 11:31:29 mythbox kernel: [ 3213.096467] CX24123: cx24123_pll_tune: frequency=1883000 May 8 11:31:29 mythbox kernel: [ 3213.096469] CX24123: cx24123_pll_writereg: pll writereg called, data=0x00100e3f May 8 11:31:29 mythbox kernel: [ 3213.103034] CX24123: cx24123_pll_writereg: pll writereg called, data=0x000a0180 May 8 11:31:29 mythbox kernel: [ 3213.109426] CX24123: cx24123_pll_writereg: pll writereg called, data=0x00000220 May 8 11:31:29 mythbox kernel: [ 3213.115652] CX24123: cx24123_pll_writereg: pll writereg called, data=0x001f4746 May 8 11:31:29 mythbox kernel: [ 3213.123521] CX24123: cx24123_pll_tune: pll tune VCA=1052223, band=544, pll=2049862
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
tuning status ==
0x01
tuning status ==0x01
tuning status ==0x01
tuning status ==0x01
tuning status ==0x01
tuning status ==0x01
tuning status ==0x01
tuning status ==0x01
WARNING: >>> tuning failed!!!
ERROR: initial tuning failed
dumping lists (0 services)
Done.
root@mythbox:/usr/src/v4l-dvb# May 8 11:31:31 mythbox kernel: [ 3215.102520] cx88[0]/2-dvb: cx8802_dvb_advise_release
*What have i missed?*
Can anyone suggest anything else?
Thanks, Rex
Re: CX24123 no FE_HAS_LOCK/tuning failed.
In reply to John DonoghueQuoted 2 lines · John Donoghue
http://bugzilla.kernel.org/show_bug.cgi?id=9476 where I outlined a
More, i created a channels.conf file, tried using szap, to no avail.
root@mythbox:~# szap "TV ONE" reading channels from file '/home/rex/.szap/channels.conf' zapping to 2 'TV ONE': sat 0, frequency = 12483 MHz H, symbolrate 22500000, vpid = 0x0203, apid = 0x028d using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0' May 8 12:07:20 mythbox kernel: [ 953.539426] cx88[0]/2-dvb: cx8802_dvb_advise_acquire May 8 12:07:20 mythbox kernel: [ 953.539497] CX24123: cx24123_initfe: init frontend May 8 12:07:20 mythbox kernel: [ 953.559600] isl6421_set_tone(SEC_TONE_OFF)<7>CX24123: cx24123_send_diseqc_msg: May 8 12:07:20 mythbox kernel: [ 953.723705] CX24123: cx24123_diseqc_send_burst: status 01 | signal 0700 | snr a423 | ber 00000000 | unc fffffffe | May 8 12:07:20 mythbox kernel: [ 953.840857] isl6421_set_tone(SEC_TONE_ON)<7>CX24123: cx24123_set_frontend: May 8 12:07:20 mythbox kernel: [ 953.842555] CX24123: cx24123_set_inversion: inversion auto May 8 12:07:20 mythbox kernel: [ 953.844856] CX24123: cx24123_set_fec: set FEC to auto May 8 12:07:20 mythbox kernel: [ 953.848464] CX24123: cx24123_set_symbolrate: srate=22500000, ratio=0x0038f7b8, sample_rate=50555000 sample_gain=1 May 8 12:07:20 mythbox kernel: [ 953.848469] CX24123: cx24123_pll_tune: frequency=1883000 May 8 12:07:20 mythbox kernel: [ 953.848471] CX24123: cx24123_pll_writereg: pll writereg called, data=0x00100e3f May 8 12:07:20 mythbox kernel: [ 953.854740] CX24123: cx24123_pll_writereg: pll writereg called, data=0x000a0180 May 8 12:07:20 mythbox kernel: [ 953.860992] CX24123: cx24123_pll_writereg: pll writereg called, data=0x00000220 May 8 12:07:20 mythbox kernel: [ 953.867270] CX24123: cx24123_pll_writereg: pll writereg called, data=0x001f4746 May 8 12:07:20 mythbox kernel: [ 953.875157] CX24123: cx24123_pll_tune: pll tune VCA=1052223, band=544, pll=2049862 May 8 12:07:20 mythbox kernel: [ 953.880585] CX24123: cx24123_read_signal_strength: Signal strength = 1792 May 8 12:07:20 mythbox kernel: [ 953.881930] CX24123: cx24123_read_snr: read S/N index = 42019 May 8 12:07:20 mythbox kernel: [ 953.883928] CX24123: cx24123_read_ber: BER = 0 status 01 | signal 0600 | snr a327 | ber 00000000 | unc fffffffe | May 8 12:07:21 mythbox kernel: [ 954.885962] CX24123: cx24123_read_signal_strength: Signal strength = 1536 May 8 12:07:21 mythbox kernel: [ 954.887293] CX24123: cx24123_read_snr: read S/N index = 41767 May 8 12:07:21 mythbox kernel: [ 954.889290] CX24123: cx24123_read_ber: BER = 0 status 01 | signal 0600 | snr a2b0 | ber 00000000 | unc fffffffe | May 8 12:07:22 mythbox kernel: [ 955.891312] CX24123: cx24123_read_signal_strength: Signal strength = 1536 May 8 12:07:22 mythbox kernel: [ 955.892636] CX24123: cx24123_read_snr: read S/N index = 41648 May 8 12:07:22 mythbox kernel: [ 955.894627] CX24123: cx24123_read_ber: BER = 0 status 01 | signal 0600 | snr a33a | ber 00000000 | unc fffffffe | May 8 12:07:23 mythbox kernel: [ 956.896657] CX24123: cx24123_read_signal_strength: Signal strength = 1536 May 8 12:07:23 mythbox kernel: [ 956.897991] CX24123: cx24123_read_snr: read S/N index = 41786 May 8 12:07:23 mythbox kernel: [ 956.899987] CX24123: cx24123_read_ber: BER = 0 status 01 | signal 0600 | snr a3d4 | ber 00000000 | unc fffffffe |
*What is this telling me?*
Cheers, Rex
Quoted 9 lines · John R.
After some off-list pointers by Devin, I tracked this down to user error. I thought I was compiling tip for xc5000-improvements-beta but was not. This is now working and composite input video works well on my 950Q. I notice no difference from previous version (wouldn't really expect to based on changes).
Thanks,
John
Glad to hear it's working for you. If you're using composite, then you will not see the benefits of the tuning performance, but you *will* see the power management benefits. This means the tuner chip won't be enabled when you're not watching TV, which will result in not causing as much drain on your battery (if you have a laptop) and the device will be much cooler.
I am still looking for strategies in the code so that the tuner is not enabled when capturing on composite or s-video (which will reduce power consumption further), but the code changes are non-trivial.
Devin
Signature · 3 lines
Devin J. Heitmueller http://www.devinheitmueller.com AIM: devinheitmueller