From: Matthias Schwarzott <zzam@gentoo.org>
To: linux-media@vger.kernel.org
Cc: Theunis Potgieter <theunis.potgieter@gmail.com>,
JD Louw <jd.louw@mweb.co.za>
Subject: Re: Fwd: Compro S300 - ZL10313
Date: Mon, 4 Jan 2010 09:26:49 +0100 [thread overview]
Message-ID: <201001040926.49968.zzam@gentoo.org> (raw)
In-Reply-To: <23582ca1001020305w423f0cc0x2e387a8bb68e7153@mail.gmail.com>
On Samstag, 2. Januar 2010, Theunis Potgieter wrote:
> 2010/1/2 JD Louw <jd.louw@mweb.co.za>:
> > On Sat, 2010-01-02 at 09:39 +0200, Theunis Potgieter wrote:
> >> 2010/1/1 JD Louw <jd.louw@mweb.co.za>:
> >> > On Tue, 2009-12-29 at 23:23 +0200, Theunis Potgieter wrote:
> >> >> Hi mailing list,
> >> >>
> >> >> I have a problem with my Compro S300 pci card under Linux 2.6.32.
> >> >>
> >> >> I cannot tune with this card and STR/SNRA is very bad compared to my
> >> >> Technisat SkyStar 2 pci card, connected to the same dish.
> >> >>
> >> >> I have this card and are willing to run tests, tested drivers etc to
> >> >> make this work.
> >> >>
> >> >> I currently load the module saa7134 with options: card=169
> >> >>
> >> >> I enabled some debug parameters on the saa7134, not sure what else I
> >> >> should enable. Please find my dmesg log attached.
> >> >>
> >> >> lsmod shows :
> >> >>
> >> >> # lsmod
> >> >> Module Size Used by
> >> >> zl10039 6268 2
> >> >> mt312 12048 2
> >> >> saa7134_dvb 41549 11
> >> >> saa7134 195664 1 saa7134_dvb
> >> >> nfsd 416819 11
> >> >> videobuf_dvb 8187 1 saa7134_dvb
> >> >> dvb_core 148140 1 videobuf_dvb
> >> >> ir_common 40625 1 saa7134
> >> >> v4l2_common 21544 1 saa7134
> >> >> videodev 58341 2 saa7134,v4l2_common
> >> >> v4l1_compat 24473 1 videodev
> >> >> videobuf_dma_sg 17830 2 saa7134_dvb,saa7134
> >> >> videobuf_core 26534 3 saa7134,videobuf_dvb,videobuf_dma_sg
> >> >> tveeprom 12550 1 saa7134
> >> >> thermal 20547 0
> >> >> processor 54638 1
> >> >>
> >> >> # uname -a
> >> >> Linux vbox 2.6.32-gentoo #4 Sat Dec 19 00:54:19 SAST 2009 i686
> >> >> Pentium III (Coppermine) GenuineIntel GNU/Linux
> >> >>
> >> >> Thanks,
> >> >> Theunis
> >> >
> >> > Hi,
> >> >
> >> > It's probably the GPIO settings that are wrong for your SAA7133 based
> >> > card revision. See
> >> > http://osdir.com/ml/linux-media/2009-06/msg01256.html for an
> >> > explanation. For quick confirmation check if you have 12V - 20V DC
> >> > going to your LNB. The relevant lines of code is in
> >> > ~/v4l-dvb/linux/drivers/media/video/saa7134/saa7134-cards.c:
> >> >
> >> > case SAA7134_BOARD_VIDEOMATE_S350:
> >> > dev->has_remote = SAA7134_REMOTE_GPIO;
> >> > saa_andorl(SAA7134_GPIO_GPMODE0 >> 2, 0x00008000, 0x00008000);
> >> > saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x00008000, 0x00008000);
> >> > break;
> >>
> >> Hi thanks for the hint. I changed it to the following:
> >>
> >> case SAA7134_BOARD_VIDEOMATE_S350:
> >> dev->has_remote = SAA7134_REMOTE_GPIO;
> >> saa_andorl(SAA7134_GPIO_GPMODE0 >> 2, 0x0000c000, 0x0000c000);
> >> saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, 0x0000c000, 0x0000c000);
> >> break;
> >>
> >> I now get the same SNR as on my skystar2 card, signal is still
> >> indicating 17% where as the skystar2 would show 68%. At least I'm
> >> getting a LOCK on channels :)
> >>
> >> Thanks!
> >>
> >> > Looking at your log, at least the demodulator and tuner is responding
> >> > correctly. You can see this by looking at the i2c traffic addressed to
> >> > 0x1c (demodulator) and 0xc0 (tuner). Attached is a dmesg trace from my
> >> > working SAA7130 based card.
> >> >
> >> > Regards
> >> > JD
> >
> > Hi,
> >
> > Just to clarify, can you now watch channels?
>
> Hi Jan, yes I can watch channels on Vivid bouquet, some of which are
> FTA channels. Here is some channels I can get a lock and a picture on
> vdr:
>
> GodCh;GodCh:11674:vC56M2O0S0:S68.5E:26652:0:0:0:0:110:73:3:0
> ASTV;ASTV:11674:vC56M2O0S0:S68.5E:26652:0:0:0:0:111:73:3:0
>
> > At the moment the signal strength measurement is a bit whacked, so don't
> > worry too much about it. I also get the 75%/17% figures you mentioned
> > when tuning to strong signals. The figure is simply reported wrongly:
> > even weaker signals should tune fine. If you want you can have a look in
> > ~/v4l-dvb/linux/drivers/media/dvb/frontends/mt312.c at
> > mt312_read_signal_strength().
> >
> > Also, if you have a multimeter handy, can you confirm that the
> > 0x0000c000 GPIO fix enables LNB voltage? I'd like to issue a patch for
> > this. I've already tested this on my older card with no ill effect.
>
> I will try and do this as soon as possible.
> Was there any worth while information in the ZL10313 documentation
> that could assist in setting the correct parameters for my Compro
> S300?
>
I added the support for ZL10313 to mt312 driver. And at least for my card, the
documentation of ZL10313 did help only a bit for setting GPIOs correctly. The
most important step was tracing copper on the board, and having a look at how
the windows driver sets the gpio lines.
Have a look at my results:
http://www.linuxtv.org/wiki/index.php/AVerMedia_AVerTV_DVB-
S_Pro_(A700)#GPIO_table
Most important pin to get correct is the one that resets demod, but you got it
right it seems as you can tune channels :)
Regards
Matthias
next prev parent reply other threads:[~2010-01-04 8:26 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <23582ca0912291306v11d0631fia6ad442918961b48@mail.gmail.com>
2009-12-29 21:07 ` Fwd: Compro S300 - ZL10313 Theunis Potgieter
[not found] ` <23582ca0912291323s1be512ebnd60bf2ea1988799@mail.gmail.com>
2009-12-31 22:07 ` JD Louw
2010-01-02 7:39 ` Theunis Potgieter
2010-01-02 10:33 ` JD Louw
2010-01-02 11:05 ` Theunis Potgieter
2010-01-04 8:26 ` Matthias Schwarzott [this message]
2010-01-06 20:17 ` Theunis Potgieter
2010-01-09 11:47 ` Matthias Schwarzott
2010-01-09 22:05 ` JD Louw
2010-01-09 22:43 ` Theunis Potgieter
2010-01-11 18:57 ` Matthias Schwarzott
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=201001040926.49968.zzam@gentoo.org \
--to=zzam@gentoo.org \
--cc=jd.louw@mweb.co.za \
--cc=linux-media@vger.kernel.org \
--cc=theunis.potgieter@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.