From: Mauro Carvalho Chehab <mchehab@infradead.org>
To: timf <timf@iinet.net.au>
Cc: linux-dvb <linux-dvb@linuxtv.org>
Subject: Re: [linux-dvb] Any chance of help with v4l-dvb-experimental / Avermedia A16D please?
Date: Thu, 27 Mar 2008 14:42:21 -0300 [thread overview]
Message-ID: <20080327144221.2d642590@gaivota> (raw)
In-Reply-To: <1206635698.5965.5.camel@ubuntu>
On Fri, 28 Mar 2008 01:34:58 +0900
timf <timf@iinet.net.au> wrote:
> [ 53.141643] xc2028 2-0061: seek_firmware called, want type=F8MHZ SCODE (20000002), id 0000000100000007.
> [ 53.141649] xc2028 2-0061: Selecting best matching firmware (3 bits) for type=SCODE (20000000), id 0000000100000007:
> [ 53.141654] xc2028 2-0061: Found firmware for type=SCODE (20000000), id 0000000200000007.
> [ 53.141658] xc2028 2-0061: Loading SCODE for type=SCODE HAS_IF_5640 (60000000), id 0000000200000007.
> [ 53.233496] xc2028 2-0061: Device is Xceive 3028 version 1.0, firmware version 2.7
Unfortunately, you've suppressed the previous firmware loading lines. Up to here, everything is OK.
> [ 53.445170] xc2028 2-0061: Device is Xceive 3028 version 1.0, firmware version 2.7
Still OK here.
> Mar 28 00:25:41 ubuntu kernel: [ 352.902182] xc2028 2-0061: checking firmware, user requested type=F8MHZ (2), id 00000000000000ff, scode_tbl (0), scode_nr 0
Now, tvtime asked a different firmware from the previous one. tuner-xc2028 will try to load a new firmware set to match your video standard.
> Mar 28 00:25:41 ubuntu kernel: [ 352.902196] xc2028 2-0061: load_firmware called
> Mar 28 00:25:41 ubuntu kernel: [ 352.902199] xc2028 2-0061: seek_firmware called, want type=BASE F8MHZ (3), id 0000000000000000.
> Mar 28 00:25:41 ubuntu kernel: [ 352.902203] xc2028 2-0061: Found firmware for type=BASE F8MHZ (3), id 0000000000000000.
It is trying to load F8MHz base firmware. This firmware seemed to be already
loaded, but, since you've asked for a different standard, it will discard and
reload the firmwares.
> Mar 28 00:25:41 ubuntu kernel: [ 352.902207] xc2028 2-0061: Loading firmware for type=BASE F8MHZ (3), id 0000000000000000.
> Mar 28 00:25:41 ubuntu kernel: [ 352.903020] xc2028 2-0061: i2c output error: rc = -5 (should be 64)
> Mar 28 00:25:41 ubuntu kernel: [ 352.903022] xc2028 2-0061: -5 returned from send
> Mar 28 00:25:41 ubuntu kernel: [ 352.903026] xc2028 2-0061: Error -22 while loading base firmware
> Mar 28 00:25:42 ubuntu kernel: [ 352.955955] xc2028 2-0061: Retrying firmware load
The driver didn't like the idea of changing the firmware. Probably, the RESET
command is wrong or incomplete (i suspect the latter).
If you look on other drivers, like cx88, a reset do something like:
cx_write(MO_GP1_IO, 0x101010);
mdelay(250);
cx_write(MO_GP1_IO, 0x101000);
mdelay(250);
cx_write(MO_GP1_IO, 0x101010);
mdelay(250);
The first command is probably not needed, but the basic idea is to do something
like ON-OFF-ON. However, on saa7134 code is something like:
saa_andorl(SAA7134_GPIO_GPMODE0 >> 2, 0x06e20000, 0x06e20000);
saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x06a20000, 0x06a20000);
I suspect that this should be something like:
saa_andorl(SAA7134_GPIO_GPMODE0 >> 2, 0x06e20000, 0x06e20000);
saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x06a20000, 0x06a20000);
mdelay(250);
saa_andorl(SAA7134_GPIO_GPMODE0 >> 2, 0x06e20000, 0);
saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x06a20000, 0);
mdelay(250);
saa_andorl(SAA7134_GPIO_GPMODE0 >> 2, 0x06e20000, 0x06e20000);
saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x06a20000, 0x06a20000);
mdelay(250);
OR:
saa_andorl(SAA7134_GPIO_GPMODE0 >> 2, 0x06e20000, 0);
saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x06a20000, 0);
mdelay(250);
saa_andorl(SAA7134_GPIO_GPMODE0 >> 2, 0x06e20000, 0x06e20000);
saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x06a20000, 0x06a20000);
mdelay(250);
saa_andorl(SAA7134_GPIO_GPMODE0 >> 2, 0x06e20000, 0);
saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x06a20000, 0);
To be sure, I would need to have the regspy.exe (from Dscaler) results when a
reset occurs on your board.
Could you please try to play with those things on your board and post the results?
Another interesting test would be to not let tvtime to select a different
standard, but, instead, the same std loaded initially. This may help to see if
your tuner is ok (if you see some kind of white noise or a bad tuned channel -
this means that tuner is working - of course you'll need to disable signal detection).
Cheers,
Mauro
_______________________________________________
linux-dvb mailing list
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
next parent reply other threads:[~2008-03-27 17:43 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1206635698.5965.5.camel@ubuntu>
2008-03-27 17:42 ` Mauro Carvalho Chehab [this message]
[not found] ` <1206683274.5986.6.camel@ubuntu>
2008-03-28 17:59 ` [linux-dvb] Any chance of help with v4l-dvb-experimental / Avermedia A16D please? Mauro Carvalho Chehab
[not found] <1206604694.6098.14.camel@ubuntu>
2008-03-27 16:37 ` Mauro Carvalho Chehab
2008-03-26 3:11 Cheng-Min Lien
-- strict thread matches above, loose matches on Subject: below --
2008-03-21 5:49 Igor Alexeiuk
[not found] <47E030C1.2000805@inwind.it>
2008-03-18 21:28 ` Mauro Carvalho Chehab
[not found] ` <47E9A539.1050706@inwind.it>
2008-03-26 16:49 ` Mauro Carvalho Chehab
2008-02-03 15:07 Richard (MQ)
2008-02-05 9:50 ` Mauro Carvalho Chehab
[not found] ` <47A8CE7E.6020908@googlemail.com>
[not found] ` <20080205222437.1397896d@gaivota>
[not found] ` <47AA014F.2090608@googlemail.com>
2008-02-07 11:26 ` Mauro Carvalho Chehab
[not found] ` <47AAF0C4.8030804@googlemail.com>
[not found] ` <47AB6A1B.5090100@googlemail.com>
2008-02-07 20:42 ` Mauro Carvalho Chehab
[not found] ` <47ACA9AA.4090702@googlemail.com>
[not found] ` <47AE20BD.7090503@googlemail.com>
2008-02-12 14:47 ` Mauro Carvalho Chehab
[not found] ` <47B1E22D.4090901@googlemail.com>
2008-03-13 14:46 ` Mauro Carvalho Chehab
[not found] ` <1205457408.6358.5.camel@ubuntu>
2008-03-14 15:14 ` Mauro Carvalho Chehab
[not found] ` <1205518856.6094.14.camel@ubuntu>
2008-03-14 18:58 ` Mauro Carvalho Chehab
[not found] ` <1205523274.6364.5.camel@ubuntu>
2008-03-14 20:21 ` Mauro Carvalho Chehab
[not found] ` <1205573636.5941.1.camel@ubuntu>
2008-03-18 13:30 ` Mauro Carvalho Chehab
[not found] ` <1205864312.11231.11.camel@ubuntu>
2008-03-18 19:17 ` Mauro Carvalho Chehab
[not found] ` <1205873332.11231.17.camel@ubuntu>
2008-03-18 21:04 ` Mauro Carvalho Chehab
[not found] ` <1205877331.11231.38.camel@ubuntu>
2008-03-18 23:25 ` Darren Salt
[not found] ` <47DEC660.3080005@googlemail.com>
2008-03-18 13:10 ` Mauro Carvalho Chehab
[not found] ` <1205875868.3385.133.camel@pc08.localdom.local>
[not found] ` <1205904196.6510.3.camel@ubuntu>
2008-03-19 8:14 ` Matthias Schwarzott
2008-03-20 14:55 ` Mauro Carvalho Chehab
[not found] ` <1206030503.5997.2.camel@ubuntu>
2008-03-20 17:07 ` Mauro Carvalho Chehab
[not found] ` <1206061004.6988.3.camel@ubuntu>
2008-03-21 1:53 ` Mauro Carvalho Chehab
2008-03-21 11:31 ` Mauro Carvalho Chehab
[not found] ` <20080322083435.2432256b@gaivota>
[not found] ` <47E51CBD.1000906@googlemail.com>
2008-03-22 14:59 ` Mauro Carvalho Chehab
[not found] ` <1206200253.6403.11.camel@ubuntu>
2008-03-22 16:13 ` Mauro Carvalho Chehab
2008-03-22 16:28 ` Mauro Carvalho Chehab
[not found] ` <47E79DE5.1050404@googlemail.com>
[not found] ` <47E7D4B0.30706@googlemail.com>
[not found] ` <20080326134500.34a245be@gaivota>
[not found] ` <47EAA833.7050507@googlemail.com>
[not found] ` <20080326171546.37b819ad@gaivota>
[not found] ` <47EABCF3.7070605@googlemail.com>
[not found] ` <20080326183336.0cbd04a4@gaivota>
[not found] ` <c09aacb50804250142h49fd47edia96ca3ae830c2354@mail.gmail.com>
2008-04-25 10:52 ` Mauro Carvalho Chehab
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080327144221.2d642590@gaivota \
--to=mchehab@infradead.org \
--cc=linux-dvb@linuxtv.org \
--cc=timf@iinet.net.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox