Hi all
El 04/03/13 16:42, Mauro Carvalho Chehab escribió:
Em Sun, 3 Mar 2013 13:40:51 -0300
Mauro Carvalho Chehab <mchehab@xxxxxxxxxx> escreveu:
Em Sun, 03 Mar 2013 11:50:25 -0300
Alfredo Jesús Delaiti <alfredodelaiti@xxxxxxxxxxxx> escreveu:
The new data replacement in mb86a20s
/*
* Initialization sequence: Use whatevere default values that PV SBTVD
* does on its initialisation, obtained via USB snoop
*/
static struct regdata mb86a20s_init[] = {
Please test first my mb86a20s patchset. If it doesn't work, we'll need
to dig into the differences.
The better is to group these and reorder them to look like what's there
at the driver, and send it like a diff. That would make a way easier to
see what's different there.
Anyway, it follows my comments about a few things that came into my eyes.
{ 0x09, 0x3a },
No idea what's here, but it seems a worth trial to change it.
It controls inversion. I just pushed a patch that will let it handle
both normal and inverted spectrum. The DVB core will automatically
switch inversion during device tuning.
I test, but not work.
Before the latest patches, obtained as follows, for example:
dmesg
[ 397.076641] mb86a20s: mb86a20s_read_status:
[ 397.077129] mb86a20s: mb86a20s_read_status: val = X, status = 0xXX
and now, I don't get anything. But if I use VLC I get this:
dtvdebug: frontend status: 0x00
dtvdebug: frontend status: 0x03
dtvdebug: frontend status: 0x07
dtvdebug: frontend status: 0x01
Before only got:
dtvdebug: frontend status: 0x00
dtvdebug: frontend status: 0x01
{ 0x28, 0x2a },
{ 0x29, 0x00 },
{ 0x2a, 0xfd },
{ 0x2b, 0xc8 },
Hmm... the above may explain why it is not working. This is calculated
from the XTAL frequency, and IF (if different than 4MHz).
Just changing it could fix the issue.
I also added a patch that allows using a different XTAL frequency.
You can use the calculus there to convert from 0x00fdc8 into the XTAL
frequency, if you have the IF set by xc5000.
I don't have the IF. How I can know the intermediate frequency?
Xtal near of xc5000 is 32.000MHz. Perhaps 32/8=4 -->IF
There are other 2 xtal of 16.000MHz and other of 28.636MHz.
Xtal of mb86a20s is 32.571MHz.
In total there are 4 xtal.
With mb86a20s changes made, the logs (i2c traffic) obtained are
different from those obtained with Windows
I have yet to thoroughly analyze 24 samples I took with the logic
analyzer and try to see your logic. This is going to take some time.
Again thank you very much,
Alfredo
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html