Re: Hauppauge WinTV-HVR-1120 on Unbuntu 10.04

2011-01-15 Thread Albin Kauffmann
On Tuesday 11 January 2011 14:57:43 mmanzato wrote:
 Same behaviour here. I'm with Mythbuntu 10.10.
 
 TDA10048 firwmare is found in the linux-firmware-nonfree Ubuntu package.
 From what I can see in dmesg it is loaded correctly.
 
 http://www.linuxtv.org/wiki/index.php/Hauppauge_WinTV-HVR-1120 says that
 support for this card seems to be broken in recent Linux kernels (does
 that mean in recent V4L drivers?)

Yes. As far as I understand, Linux releases include a stable snapshot of V4L 
and both seem broken :(

-- 
Albin Kauffmann
Open Wide - Architecte Open Source
--
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: Wintv-HVR-1120 woes

2010-11-11 Thread Albin Kauffmann
On Sunday 24 October 2010 22:22:18 Sasha Sirotkin wrote:
 On Sun, Oct 24, 2010 at 8:55 PM, Albin Kauffmann
 
 albin.kauffm...@gmail.com wrote:
  On Thursday 21 October 2010 23:25:29 Sasha Sirotkin wrote:
  I'm having all sorts of troubles with Wintv-HVR-1120 on Ubuntu 10.10
  (kernel 2.6.35-22). Judging from what I've seen on the net, including
  this mailing list, I'm not the only one not being able to use this
  card and no solution seem to exist.
  
  Problems:
  1. The driver yells various cryptic error messages
  (tda18271_write_regs: [1-0060|M] ERROR: idx = 0x5, len = 1,
  i2c_transfer returned: -5, tda18271_set_analog_params: [1-0060|M]
  error -5 on line 1045, etc)
  
  yes, indeed :(
  (cf Hauppauge WinTV-HVR-1120 on Unbuntu 10.04 thread)
  
  2. DVB-T scan (using w_scan) produces no results
  
  Is this happening after each reboot? As far as I'm concerned, I've never
  had problems with DVB-T scans.
 
 Almost always. I think I had a lucky reboot or two, but most of the
 time DVB-T scan produces nothing.

Strange. I use kaffeine and it works really well (except when getting errors 
mentionned in 1.). I also tried to use w_scan as you talked about it, and it 
works (output available at the end of this email).
So, I'm trying to understand your problems :
 - Do you get errors? (in dmesg for example?)
 - Does it work under Windows? / Are you sure your antenna is good?

  3. Analog seems to work, but with very poor quality
  
  I just tried to use Analog TV in order to confirm the problem but I
  cannot get any picture. Maybe I just don't know how to use it. I'm using
  commands like (I'm located in France):
  
  mplayer tv:// -tv driver=v4l2:norm=SECAM:chanlist=france -tvscan
  autostart
  
  ... and just get some snow on scanned channels.
  As I might have a problem with my antenna (an interior one), I am going
  to test it under Windows and report back my experience.
 
 I'm using tvtime-scanner

I set up a Windows so I'm sure my Analog TV is working.
After having set SECAM and france in /etc/tvtime/tvtime.xml, I have run 
tvtime-scanner and it seems to be successful:

sh tvtime-scanner
Reading configuration from /etc/tvtime/tvtime.xml
Scanning using TV standard SECAM.
Scanning from  44.00 MHz to 958.00 MHz.
Found a channel at  45.00 MHz (44.75 - 45.00 MHz), adding to channel list.
I/O warning : failed to load external entity 
/data/./home/albinkauf/.tvtime/stationlist.xml
station: No station file found, creating a new one.
Found a channel at 101.50 MHz (101.25 - 101.50 MHz), adding to channel list.
Found a channel at 117.50 MHz (117.25 - 117.50 MHz), adding to channel list.
Found a channel at 145.00 MHz (144.75 - 145.00 MHz), adding to channel list.
Found a channel at 302.75 MHz (302.50 - 302.75 MHz), adding to channel list.
Found a channel at 389.00 MHz (388.75 - 389.00 MHz), adding to channel list.
Found a channel at 480.25 MHz (479.25 - 481.00 MHz), adding to channel list.
Found a channel at 503.50 MHz (503.25 - 503.75 MHz), adding to channel list.
Found a channel at 505.00 MHz (504.75 - 505.00 MHz), adding to channel list.
Found a channel at 528.50 MHz (528.25 - 528.50 MHz), adding to channel list.
Found a channel at 544.75 MHz (544.50 - 544.75 MHz), adding to channel list.
Found a channel at 588.75 MHz (588.50 - 588.75 MHz), adding to channel list.
Found a channel at 639.75 MHz (639.50 - 639.75 MHz), adding to channel list.
Found a channel at 646.00 MHz (645.75 - 646.00 MHz), adding to channel list.
Found a channel at 664.75 MHz (664.50 - 664.75 MHz), adding to channel list.
Found a channel at 675.50 MHz (675.25 - 675.50 MHz), adding to channel list.
Found a channel at 702.00 MHz (701.75 - 702.00 MHz), adding to channel list.
Found a channel at 711.00 MHz (710.75 - 711.00 MHz), adding to channel list.
Found a channel at 749.25 MHz (749.00 - 749.25 MHz), adding to channel list.
Found a channel at 778.00 MHz (777.75 - 778.00 MHz), adding to channel list.
Found a channel at 924.00 MHz (923.75 - 924.00 MHz), adding to channel list.
Found a channel at 932.75 MHz (932.50 - 932.75 MHz), adding to channel list.
tvtime-scanner  0.10s user 139.36s system 2% cpu 1:44:44.25 total

However, I've seen a lot of errors related to tda18271 in `dmesg` and I can't 
get any picture when running tvime. Do you also get that kind of errors?


In order to solve the 1st problem (TV sometimes not working), I also try to 
boot under Windows in order to load the the original tda10048 firmware. Then, I 
started my Linux box several times (without the firmware available in 
/lib/firmware). After 4 boots, it fails so the firmware is probably not the 
sources of our problems.
Then, I've started to read the sources and the documentation of the saa7134 
chip. This documentation is not bad but it misses particularities of the 
Hauppauge HVR1120 such as how the different chips are plugged together. Did 
Hauppauge make this kind of documentation public? Does anyone know where can I 
find it?

Thanks,



- Output of w_scan

Re: Wintv-HVR-1120 woes

2010-10-25 Thread Albin Kauffmann
On Mon, Oct 25, 2010 at 9:46 AM, Sasha Sirotkin demi...@femtolinux.com wrote:
 On Mon, Oct 25, 2010 at 9:24 AM, fabio tirapelle ftirape...@yahoo.it wrote:


 Da: Sasha Sirotkin demi...@femtolinux.com
 A: fabio tirapelle ftirape...@yahoo.it
 Cc: Albin Kauffmann albin.kauffm...@gmail.com; linux-media@vger.kernel.org
 Inviato: Lun 25 ottobre 2010, 09:18:28
 Oggetto: Re: Wintv-HVR-1120 woes

 On Mon, Oct 25, 2010 at 8:16 AM, fabio tirapelle ftirape...@yahoo.it 
 wrote:
  My  WinTV-HVR-1120 works if I delete dvb-fe-tda10048-1.0.fw and
  rename  dvb-fe-tda10046.fw in dvb-fe-tda10048-1.0.fw
  (see cf Hauppauge   WinTV-HVR-1120 on Unbuntu 10.04 thread).
  After reboot my  WinTV-HVR-1120 works. Ubuntu recognizes that the firmware
isn't
  correct  and doesn't load the firmware.

 How come it works without the firmware !?  Is it possible that you
 booted into Windows before that and there is a  correct firmware
 already running in the card ?

 No my mediacenter works only on Ubuntu

 This is weird. I will try this workaround tonight.

Actually, I think that the dvb-fe-tda10048-1.0.fw firmware is still
loaded in the TV card and that this scenario has not changed anything.

Fabio, have you tried to reboot several times in order to see if the
problem is really fixed?
And are you still getting some ERROR messages in `dmesg`? If not, this
is good but I don't understand :)

Cheers,

-- 
Albin Kauffmann
--
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: Hauppauge WinTV-HVR-1120 on Unbuntu 10.04

2010-10-24 Thread Albin Kauffmann
On Tuesday 19 October 2010 21:56:51 fabio tirapelle wrote:
 The WinTV did work correctly with ubuntu 9.10. In Ubuntu 9.10 the
 package linux-firmware-nonfree didn't include the dvb-fe-tda10048-1.0.fw. I
 remember that Ubuntu 9.10 used for my card the dvb-fe-tda10046.fw.
 
 Now, Ubuntu 10.04 loads for my card the dvb-fe-tda10048-1.0.fw
 Its seems that with the 9.10 version, the card is recognized as
 WinTV-HVR-1100 or 1110 and now as WinTV-HVR-1120.

This is actually strange because the Wiki states that the card is using an 
NXP TDA10048 digital demodulator 
(http://linuxtv.org/wiki/index.php/Hauppauge_WinTV-HVR-1120). Anyway, this may 
worth the cost to build an old kernel to see if this effectively works well ;)

 I wait until you recompile the kernel  with the v4l. Please tell me if this
 solves the problem

I have tried several scenarios :
 - the last 2.6.36 Linux kernel
 - the kernel 2.6.35 with sources from the HG repository 
(http://linuxtv.org/hg/v4l-dvb/)
 - the media tree git (http://git.linuxtv.org/media_tree.git)

In all situations, I get the same behaviour. After a random number of reboots, 
the TV (DVB-T) is not working and I get this message displayed in loop in 
`dmesg`:

tda18271_write_regs: [1-0060|M] ERROR: idx = 0x5, len = 1, i2c_transfer 
returned: -5
tda18271_init: [1-0060|M] error -5 on line 830
tda18271_tune: [1-0060|M] error -5 on line 908
tda18271_set_params: [1-0060|M] error -5 on line 989

Also, even when the TV is working, I get these error messages in `dmesg:

[...]
tda829x 1-004b: type set to tda8290
tda18271 1-0060: attaching existing instance
DVB: registering new adapter (saa7133[0])
DVB: registering adapter 0 frontend 0 (NXP TDA10048HN DVB-T)...
tda10048_firmware_upload: waiting for firmware upload (dvb-fe-
tda10048-1.0.fw)...
tda10048_firmware_upload: firmware read 24878 bytes.
tda10048_firmware_upload: firmware uploading
tda18271_write_regs: [1-0060|M] ERROR: idx = 0x13, len = 1, i2c_transfer 
returned: -5
tda18271_write_regs: [1-0060|M] ERROR: idx = 0x5, len = 1, i2c_transfer 
returned: -5
tda18271_set_analog_params: [1-0060|M] error -5 on line 1045
tda18271_write_regs: [1-0060|M] ERROR: idx = 0x13, len = 1, i2c_transfer 
returned: -5
tda10048_firmware_upload: firmware uploaded
saa7134 ALSA driver for DMA sound loaded
saa7133[0]/alsa: saa7133[0] at 0xeb20 irq 20 registered as card -1
tda18271_read_regs: [1-0060|M] ERROR: i2c_transfer returned: -5
tda18271_ir_cal_init: [1-0060|M] error -5 on line 811
tda18271_init: [1-0060|M] error -5 on line 835
tda18271_tune: [1-0060|M] error -5 on line 908
tda18271_set_analog_params: [1-0060|M] error -5 on line 1045


I may take a look at sources to understand what is happening. So, if someone 
have an idea, please tell me ;)

Thanks,

-- 
Albin Kauffmann
--
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: Wintv-HVR-1120 woes

2010-10-24 Thread Albin Kauffmann
On Thursday 21 October 2010 23:25:29 Sasha Sirotkin wrote:
 I'm having all sorts of troubles with Wintv-HVR-1120 on Ubuntu 10.10
 (kernel 2.6.35-22). Judging from what I've seen on the net, including
 this mailing list, I'm not the only one not being able to use this
 card and no solution seem to exist.
 
 Problems:
 1. The driver yells various cryptic error messages
 (tda18271_write_regs: [1-0060|M] ERROR: idx = 0x5, len = 1,
 i2c_transfer returned: -5, tda18271_set_analog_params: [1-0060|M]
 error -5 on line 1045, etc)

yes, indeed :(
(cf Hauppauge WinTV-HVR-1120 on Unbuntu 10.04 thread)

 2. DVB-T scan (using w_scan) produces no results

Is this happening after each reboot? As far as I'm concerned, I've never had 
problems with DVB-T scans.

 3. Analog seems to work, but with very poor quality

I just tried to use Analog TV in order to confirm the problem but I cannot get 
any picture. Maybe I just don't know how to use it. I'm using commands like 
(I'm located in France):

mplayer tv:// -tv driver=v4l2:norm=SECAM:chanlist=france -tvscan autostart

... and just get some snow on scanned channels.
As I might have a problem with my antenna (an interior one), I am going to 
test it under Windows and report back my experience.

Cheers,

-- 
Albin Kauffmann
--
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: Hauppauge WinTV-HVR-1120 on Unbuntu 10.04

2010-10-19 Thread Albin Kauffmann
On Monday 11 October 2010 11:57:14 fabio tirapelle wrote:
 Hi
 
 After upgrading from Ubuntu 9.10 to Ubuntu 10.04 my Hauppauge
 WinTV-HVR-1120 (sometimes) doesn't work correctly.
 I get random the following errors:
 
 [   53.216153] DVB: registering new adapter (saa7133[0])
 [   53.216156] DVB: registering adapter 2 frontend 0 (NXP TDA10048HN
 DVB-T)... [   53.840013] tda10048_firmware_upload: waiting for firmware
 upload (dvb-fe-tda10048-1.0.fw)...
 [   53.840019] saa7134 :01:06.0: firmware: requesting
 dvb-fe-tda10048-1.0.fw [   53.880505] tda10048_firmware_upload: firmware
 read 24878 bytes. [   53.880509] tda10048_firmware_upload: firmware
 uploading
 [   58.280136] tda10048_firmware_upload: firmware uploaded
 [   59.024537] tda18271_write_regs: ERROR: idx = 0x5, len = 1, i2c_transfer
 returned: -5
 [   59.024541] tda18271c2_rf_tracking_filters_correction: error -5 on line
 264 [   59.420153] tda18271_write_regs: ERROR: idx = 0x5, len = 1,
 i2c_transfer returned: -5
 [   59.420157] tda18271_toggle_output: error -5 on line 47
 [   91.004019] Clocksource tsc unstable (delta = -295012684 ns)
 [  256.293639] eth0: link up.
 [  256.294750] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
 [  263.523498] eth0: link down.
 [  265.258740] eth0: link up.
 [  266.460026] eth0: no IPv6 routers present
 [ 9869.636167] tda18271_write_regs: ERROR: idx = 0x5, len = 1, i2c_transfer
 returned: -5
 [ 9869.636178] tda18271_init: error -5 on line 826
 [ 9872.636220] tda18271_write_regs: ERROR: idx = 0x5, len = 1, i2c_transfer
 returned: -5
 [ 9872.636232] tda18271_toggle_output: error -5 on line 47
 [ 9998.240167] tda18271_write_regs: ERROR: idx = 0x5, len = 1, i2c_transfer
 returned: -5
 [ 9998.240178] tda18271_init: error -5 on line 826
 [10001.240179] tda18271_write_regs: ERROR: idx = 0x5, len = 1, i2c_transfer
 returned: -5
 [10001.240190] tda18271_toggle_output: error -5 on line 47

Hi,

I have the same HVR-1120 TV card and I get the same kind of errors happening 
on my ArchLinux installation (kernel 2.6.35). However, these errors are not 
occuring after all boots. Indeed, I can watch TV (DVB-T) with no problem after 
3/4 of my reboots. Is your problem happening at all time ?

I've started to recompile my own kernel with the v4l module from the hg 
repository. I'll tell you if it improves the behavior.

I don't use Ubuntu on my desktop computer but, as far as you are concerned, 
you could first try to update your installation to the last Ubuntu 10.10 or to 
compile the last Linux kernel. And tell us if it improves something ;)

Cheers,

-- 
Albin Kauffmann
Open Wide - Architecte Open Source
--
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