Re: Fwd: Compro S300 - ZL10313

2010-01-11 Thread Matthias Schwarzott
On Samstag, 9. Januar 2010, JD Louw wrote:
 On Wed, 2010-01-06 at 22:17 +0200, Theunis Potgieter wrote:
  2010/1/2 JD Louw jd.l...@mweb.co.za:
   On Sat, 2010-01-02 at 09:39 +0200, Theunis Potgieter wrote:
   2010/1/1 JD Louw jd.l...@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_dvb41549  11
saa7134   195664  1 saa7134_dvb
nfsd  416819  11
videobuf_dvb8187  1 saa7134_dvb
dvb_core  148140  1 videobuf_dvb
ir_common  40625  1 saa7134
v4l2_common21544  1 saa7134
videodev   58341  2 saa7134,v4l2_common
v4l1_compat24473  1 videodev
videobuf_dma_sg17830  2 saa7134_dvb,saa7134
videobuf_core  26534  3
saa7134,videobuf_dvb,videobuf_dma_sg tveeprom   12550 
1 saa7134
thermal20547  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,   0x8000, 0x8000);
saa_andorl(SAA7134_GPIO_GPSTATUS0  2, 0x8000, 0x8000);
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,   0xc000, 0xc000);
saa_andorl(SAA7134_GPIO_GPSTATUS0  2, 0xc000, 0xc000);
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?
  
   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
   0xc000 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.
 
  This is what happened when I started vdr.
 
  Vertical gave a Volt reading between 13.9 and 14.1, Horizontal Gave
  19.4 ~ 19.5. When I stopped vdr, the Voltage went back to 14V. I
  thought that it would read 0V. What is suppose to happen?
 
  Theunis
 
   Regards
   JD
 
 Hi,
 
 The newer revision cards should be able to shut down LNB power when the
 card is closed. This is what the Windows driver does; not yet
 implemented in Linux.

Do you know how this is done hardware-wise? Is this a gpio connected circuit?

If yes, I think it can be enabled in software by saving original pointer to 
set_voltage and overwriting it by some routine switching gpio and calling 
original function.

Regards
Matthias
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Fwd: Compro S300 - ZL10313

2010-01-09 Thread Matthias Schwarzott
On Wednesday, 6. January 2010, Theunis Potgieter wrote:
 2010/1/2 JD Louw jd.l...@mweb.co.za:
  On Sat, 2010-01-02 at 09:39 +0200, Theunis Potgieter wrote:
 
  Hi,
 
  Just to clarify, can you now watch channels?
 
  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
  0xc000 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.
 
Does this gpio value changes voltage?
If yes it is possible to hook into set_voltage and use this to disable LNB 
voltage for power saving.

 This is what happened when I started vdr.
 
 Vertical gave a Volt reading between 13.9 and 14.1, Horizontal Gave
 19.4 ~ 19.5. When I stopped vdr, the Voltage went back to 14V. I
 thought that it would read 0V. What is suppose to happen?
 
Sounds good so far.

The voltage after stopping vdr is no surprise with zl10313, look into the
code at mt312.c line 425, The value it writes for no voltage is the same as 
for vertical voltage.

Matthias
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Fwd: Compro S300 - ZL10313

2010-01-09 Thread JD Louw
On Wed, 2010-01-06 at 22:17 +0200, Theunis Potgieter wrote:
 2010/1/2 JD Louw jd.l...@mweb.co.za:
  On Sat, 2010-01-02 at 09:39 +0200, Theunis Potgieter wrote:
  2010/1/1 JD Louw jd.l...@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_dvb41549  11
   saa7134   195664  1 saa7134_dvb
   nfsd  416819  11
   videobuf_dvb8187  1 saa7134_dvb
   dvb_core  148140  1 videobuf_dvb
   ir_common  40625  1 saa7134
   v4l2_common21544  1 saa7134
   videodev   58341  2 saa7134,v4l2_common
   v4l1_compat24473  1 videodev
   videobuf_dma_sg17830  2 saa7134_dvb,saa7134
   videobuf_core  26534  3 saa7134,videobuf_dvb,videobuf_dma_sg
   tveeprom   12550  1 saa7134
   thermal20547  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,   0x8000, 0x8000);
   saa_andorl(SAA7134_GPIO_GPSTATUS0  2, 0x8000, 0x8000);
   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,   0xc000, 0xc000);
   saa_andorl(SAA7134_GPIO_GPSTATUS0  2, 0xc000, 0xc000);
   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?
 
  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
  0xc000 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.
 
 This is what happened when I started vdr.
 
 Vertical gave a Volt reading between 13.9 and 14.1, Horizontal Gave
 19.4 ~ 19.5. When I stopped vdr, the Voltage went back to 14V. I
 thought that it would read 0V. What is suppose to happen?
 
 Theunis
 
 
  Regards
  JD
 
 
 
 

Hi,

The newer revision cards should be able to shut down LNB power when the
card is closed. This is what the Windows driver does; not yet
implemented in Linux.

I'd like to document the different variants of this card on the wiki.
Can you send me the output of lspci -vvnn for your variant? If you have
Windows, can you also send me some RegSpy states similar to the ones I'm
attaching to this mail?

Regards
JD

SAA7130 Card [0]:

Vendor ID:   0x1131
Device ID:   0x7130
Subsystem ID:0xc900185b


7 states dumped

Clean PC boot - no tuning yet
--

SAA7130 Card - State 0:
SAA7134_GPIO_GPMODE: 0080c000   ( 1000 1100 
) 
SAA7134_GPIO_GPSTATUS:   0084bf00 * ( 1100 1011 
) 
SAA7134_ANALOG_IN_CTRL1: 88 (10001000)  
  
SAA7134_ANALOG_IO_SELECT:02 

Re: Fwd: Compro S300 - ZL10313

2010-01-06 Thread Theunis Potgieter
2010/1/2 JD Louw jd.l...@mweb.co.za:
 On Sat, 2010-01-02 at 09:39 +0200, Theunis Potgieter wrote:
 2010/1/1 JD Louw jd.l...@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,   0x8000, 0x8000);
  saa_andorl(SAA7134_GPIO_GPSTATUS0  2, 0x8000, 0x8000);
  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,   0xc000, 0xc000);
  saa_andorl(SAA7134_GPIO_GPSTATUS0  2, 0xc000, 0xc000);
  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?

 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
 0xc000 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.

This is what happened when I started vdr.

Vertical gave a Volt reading between 13.9 and 14.1, Horizontal Gave
19.4 ~ 19.5. When I stopped vdr, the Voltage went back to 14V. I
thought that it would read 0V. What is suppose to happen?

Theunis


 Regards
 JD




--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Fwd: Compro S300 - ZL10313

2010-01-04 Thread Matthias Schwarzott
On Samstag, 2. Januar 2010, Theunis Potgieter wrote:
 2010/1/2 JD Louw jd.l...@mweb.co.za:
  On Sat, 2010-01-02 at 09:39 +0200, Theunis Potgieter wrote:
  2010/1/1 JD Louw jd.l...@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_dvb41549  11
   saa7134   195664  1 saa7134_dvb
   nfsd  416819  11
   videobuf_dvb8187  1 saa7134_dvb
   dvb_core  148140  1 videobuf_dvb
   ir_common  40625  1 saa7134
   v4l2_common21544  1 saa7134
   videodev   58341  2 saa7134,v4l2_common
   v4l1_compat24473  1 videodev
   videobuf_dma_sg17830  2 saa7134_dvb,saa7134
   videobuf_core  26534  3 saa7134,videobuf_dvb,videobuf_dma_sg
   tveeprom   12550  1 saa7134
   thermal20547  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,   0x8000, 0x8000);
   saa_andorl(SAA7134_GPIO_GPSTATUS0  2, 0x8000, 0x8000);
   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,   0xc000, 0xc000);
   saa_andorl(SAA7134_GPIO_GPSTATUS0  2, 0xc000, 0xc000);
   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
  0xc000 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
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Fwd: Compro S300 - ZL10313

2010-01-02 Thread JD Louw
On Sat, 2010-01-02 at 09:39 +0200, Theunis Potgieter wrote:
 2010/1/1 JD Louw jd.l...@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_dvb41549  11
  saa7134   195664  1 saa7134_dvb
  nfsd  416819  11
  videobuf_dvb8187  1 saa7134_dvb
  dvb_core  148140  1 videobuf_dvb
  ir_common  40625  1 saa7134
  v4l2_common21544  1 saa7134
  videodev   58341  2 saa7134,v4l2_common
  v4l1_compat24473  1 videodev
  videobuf_dma_sg17830  2 saa7134_dvb,saa7134
  videobuf_core  26534  3 saa7134,videobuf_dvb,videobuf_dma_sg
  tveeprom   12550  1 saa7134
  thermal20547  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,   0x8000, 0x8000);
  saa_andorl(SAA7134_GPIO_GPSTATUS0  2, 0x8000, 0x8000);
  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,   0xc000, 0xc000);
  saa_andorl(SAA7134_GPIO_GPSTATUS0  2, 0xc000, 0xc000);
  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?

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
0xc000 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.

Regards
JD



--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Fwd: Compro S300 - ZL10313

2010-01-02 Thread Theunis Potgieter
2010/1/2 JD Louw jd.l...@mweb.co.za:
 On Sat, 2010-01-02 at 09:39 +0200, Theunis Potgieter wrote:
 2010/1/1 JD Louw jd.l...@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,   0x8000, 0x8000);
  saa_andorl(SAA7134_GPIO_GPSTATUS0  2, 0x8000, 0x8000);
  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,   0xc000, 0xc000);
  saa_andorl(SAA7134_GPIO_GPSTATUS0  2, 0xc000, 0xc000);
  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
 0xc000 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?


 Regards
 JD





Thanks for the assistance :)
Theunis
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Fwd: Compro S300 - ZL10313

2010-01-01 Thread Theunis Potgieter
2010/1/1 JD Louw jd.l...@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,   0x8000, 0x8000);
 saa_andorl(SAA7134_GPIO_GPSTATUS0  2, 0x8000, 0x8000);
 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,   0xc000, 0xc000);
 saa_andorl(SAA7134_GPIO_GPSTATUS0  2, 0xc000, 0xc000);
 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

--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Fwd: Compro S300 - ZL10313

2009-12-31 Thread JD Louw
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_dvb41549  11
 saa7134   195664  1 saa7134_dvb
 nfsd  416819  11
 videobuf_dvb8187  1 saa7134_dvb
 dvb_core  148140  1 videobuf_dvb
 ir_common  40625  1 saa7134
 v4l2_common21544  1 saa7134
 videodev   58341  2 saa7134,v4l2_common
 v4l1_compat24473  1 videodev
 videobuf_dma_sg17830  2 saa7134_dvb,saa7134
 videobuf_core  26534  3 saa7134,videobuf_dvb,videobuf_dma_sg
 tveeprom   12550  1 saa7134
 thermal20547  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,   0x8000, 0x8000);
saa_andorl(SAA7134_GPIO_GPSTATUS0  2, 0x8000, 0x8000);
break;


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 


07:00.0 Multimedia controller [0480]: Philips Semiconductors SAA7130 Video 
Broadcast Decoder [1131:7130] (rev 01)
Subsystem: Compro Technology, Inc. Device [185b:c900]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium TAbort- 
TAbort- MAbort- SERR- PERR- INTx-
Latency: 32 (21000ns min, 8000ns max)
Interrupt: pin A routed to IRQ 21
Region 0: Memory at 50004800 (32-bit, non-prefetchable) [size=1K]
Capabilities: access denied
Kernel driver in use: saa7134
Kernel modules: saa7134




and




[6.560811] Linux video capture interface: v2.00
[6.602624] saa7130/34: v4l2 driver version 0.2.15 loaded
[6.602776] saa7134 :07:00.0: PCI INT A - GSI 21 (level, low) - IRQ 21
[6.602783] saa7130[0]: found at :07:00.0, rev: 1, irq: 21, latency: 32, 
mmio: 0x50004800
[6.602788] saa7130[0]: subsystem: 185b:c900, board: Compro VideoMate 
S350/S300 [card=169,autodetected]
[6.602803] saa7130[0]: board init: gpio is 843f00
[6.602873] input: saa7134 IR (Compro VideoMate S3 as 
/devices/pci:00/:00:1e.0/:07:00.0/input/input14
[6.602935] Creating IR device irrcv0
[6.602939] IRQ 21/saa7130[0]: IRQF_DISABLED is not guaranteed on shared IRQs
[6.710132] saa7130[0]: i2c xfer:  a0 00 
[6.730092] saa7130[0]: i2c xfer:  a1 =5b =18 =00 =c9 =54 =20 =1c =00 =43 
=43 =a9 =1c =55 =d2 =b2 =92 =00 =ff =86 =0f =ff =20 =ff =ff =ff =ff =ff =ff =ff
 =ff =ff =ff =01 =40 =01 =02 =02 =01 =03 =01 =08 =ff =00 =87 =ff =ff =ff =ff 
=ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =d6 =00 =c0 
=86 =1c =02 =01 =02 =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff 
=ff =ff =ff =ff =ff =ff =ff =cb =30 =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =
ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff 
=ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =f
f =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff 
=ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff
 =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff 
=ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff 
=ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff 
=ff =ff =ff =ff =ff =ff =ff =ff =ff =ff =ff 
[6.780031] saa7130[0]: i2c eeprom 00: 5b 18 00 c9 54 20 1c 00 43 43 a9 1c 
55 d2 b2 92
[6.780044] saa7130[0]: i2c eeprom 10: 00 ff 86 0f ff 20 ff ff ff ff ff ff 
ff ff ff ff
[6.780056] saa7130[0]: i2c eeprom 20: 01 40 01 02 02 01 03 01 08 ff 00 87 
ff