Skip to contentSkip to conversation

Linux driver for Hauppauge WinTV-HVR 950Q

linux-dvb Steven Toth 2 participants 4 messages Mar 20, 2009 – Mar 23, 2009 3 messages not in the archive Media (V4L/DVB)

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 64 lines · ZhanMa

Hi Steven,

I am working on porting the Hauppauge WinTV-Hvr 950Q tuner driver to a TI DaVinci platform which uses linux kernel 2.6.18 (MontaVista). After I pluged in the tuner into the board's usb port, I got the following message. It looks that the registration procedure finished but I saw the message that xc5000 firmware not load yet (I already put the firmware, dvb-fe-xc5000-1.1.fw, under /lib/firmware).

So I believe it should load the firmware, otherwise the tuner would not work, right? But why it didn't load?

Please advise me how I can fix this problem, thank you so much!!

Jason Ma

[email protected]:~#
usb 1-1.1: new high speed USB device using musb_hdrc and address 4 usb 1-1.1: Product: WinTV HVR-950
usb 1-1.1: Manufacturer: Hauppauge
usb 1-1.1: SerialNumber: 4031281567
usb 1-1.1: configuration #1 chosen from 1 choice au0828_init() Debugging is enabled
au0828_init() USB Debugging is enabled
au0828 driver loaded
au0828_usb_probe() vendor id 0x2040
au0828_usb_probe() device id 0x7200
au0828_gpio_setup()
au0828_i2c_register()
davinci_i2c_probe_adapter: 0xc06fe858
davinci_evm_expander1 i2c attach [addr=0x3a,client=davinci_evm_expander1]
board_i2c_expander_setup=0xc001ae8c, 0xc001ae8c
aic3x I2C Codec i2c attach [addr=0x1b,client=AIC3X]
asoc: aic3x <-> davinci-i2s mapping ok
au0828: i2c bus registered
[au0828_usb_probe], au0828_card_setup
i2c_readbytes()
[hauppauge_eeprom]
tveeprom 1-0050: Hauppauge model 72001, rev B3F0, serial# 4749727 tveeprom 1-0050: MAC address is 00-0D-FE-48-79-9F
tveeprom 1-0050: tuner model is Xceive XC5000 (idx 150, type 4) tveeprom 1-0050: TV standards NTSC(M) ATSC/DVB Digital (eeprom 0x88) tveeprom 1-0050: audio processor is AU8522 (idx 44)
tveeprom 1-0050: decoder processor is AU8522 (idx 42) tveeprom 1-0050: has no radio, has IR receiver, has no IR transmitter
hauppauge_eeprom: hauppauge eeprom: model=72001 xc5000_attach()
xc5000 1-0061: creating new instance
xc5000_attach() new tuner instance
xc5000: Successfully identified at address 0x61
xc5000: Firmware has not been loaded previously
DVB: registering new adapter (au0828)
DVB: registering adapter 0 frontend -8388625 (Auvitek AU8522 QAM/8VSB Frontend)...
Registered device AU0828 [Hauppauge HVR950Q]
Registered device AU0828 [Hauppauge HVR950Q]
usbcore: registered new driver au0828
[au0828_init], usb_register success, ret=0

Quoted 8 lines
[email protected]:~# lsusb
Bus 001 Device 004: ID 2040:7200 
Bus 001 Device 003: ID 0596:0001 MicroTouch Systems, Inc. Touchscreen
Bus 001 Device 002: ID 04b4:6560 Cypress Semiconductor Corp. CY7C65640 
USB-2.0 "TetraHub"
Bus 001 Device 001: ID 0000:0000 

Hi,

What makes you think the firmware has not loaded?

- Steve

_______________________________________________
linux-dvb users mailing list
For V4L/DVB development, please use instead [email protected] [email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

#2 lore raw
Quoted 79 lines · Steven Toth
Quoted 64 lines · ZhanMa

Hi Steven,

I am working on porting the Hauppauge WinTV-Hvr 950Q tuner driver to a TI DaVinci platform which uses linux kernel 2.6.18 (MontaVista). After I pluged in the tuner into the board's usb port, I got the following message. It looks that the registration procedure finished but I saw the message that xc5000 firmware not load yet (I already put the firmware, dvb-fe-xc5000-1.1.fw, under /lib/firmware).

So I believe it should load the firmware, otherwise the tuner would not work, right? But why it didn't load?

Please advise me how I can fix this problem, thank you so much!!

Jason Ma

[email protected]:~#
usb 1-1.1: new high speed USB device using musb_hdrc and address 4 usb 1-1.1: Product: WinTV HVR-950
usb 1-1.1: Manufacturer: Hauppauge
usb 1-1.1: SerialNumber: 4031281567
usb 1-1.1: configuration #1 chosen from 1 choice au0828_init() Debugging is enabled
au0828_init() USB Debugging is enabled
au0828 driver loaded
au0828_usb_probe() vendor id 0x2040
au0828_usb_probe() device id 0x7200
au0828_gpio_setup()
au0828_i2c_register()
davinci_i2c_probe_adapter: 0xc06fe858
davinci_evm_expander1 i2c attach [addr=0x3a,client=davinci_evm_expander1] board_i2c_expander_setup=0xc001ae8c, 0xc001ae8c
aic3x I2C Codec i2c attach [addr=0x1b,client=AIC3X]
asoc: aic3x <-> davinci-i2s mapping ok
au0828: i2c bus registered
 [au0828_usb_probe], au0828_card_setup
i2c_readbytes()
 [hauppauge_eeprom]
tveeprom 1-0050: Hauppauge model 72001, rev B3F0, serial# 4749727 tveeprom 1-0050: MAC address is 00-0D-FE-48-79-9F
tveeprom 1-0050: tuner model is Xceive XC5000 (idx 150, type 4) tveeprom 1-0050: TV standards NTSC(M) ATSC/DVB Digital (eeprom 0x88) tveeprom 1-0050: audio processor is AU8522 (idx 44)
tveeprom 1-0050: decoder processor is AU8522 (idx 42) tveeprom 1-0050: has no radio, has IR receiver, has no IR transmitter
hauppauge_eeprom: hauppauge eeprom: model=72001 xc5000_attach()
xc5000 1-0061: creating new instance
xc5000_attach() new tuner instance
xc5000: Successfully identified at address 0x61
xc5000: Firmware has not been loaded previously
DVB: registering new adapter (au0828)
DVB: registering adapter 0 frontend -8388625 (Auvitek AU8522 QAM/8VSB Frontend)...
Registered device AU0828 [Hauppauge HVR950Q]
 Registered device AU0828 [Hauppauge HVR950Q]
usbcore: registered new driver au0828
 [au0828_init], usb_register success, ret=0

Quoted 8 lines
[email protected]:~# lsusb
Bus 001 Device 004: ID 2040:7200
Bus 001 Device 003: ID 0596:0001 MicroTouch Systems, Inc. Touchscreen
Bus 001 Device 002: ID 04b4:6560 Cypress Semiconductor Corp. CY7C65640
USB-2.0 "TetraHub"
Bus 001 Device 001: ID 0000:0000

Hi,

What makes you think the firmware has not loaded?

Quoted 9 lines

- Steve

_______________________________________________
linux-dvb users mailing list
For V4L/DVB development, please use instead [email protected] [email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

Hello Steven,

Perhaps he got confused by the "has not been loaded previously". It might also be good to find out what version of the code he is running, since it looks like the analog support isn't being loaded.

Quoted 1 line

DVB: registering adapter 0 frontend -8388625

Also, looks like perhaps a kalloc() was done instead of a kzalloc() [I have seen this with s5h1411 as well].

Devin

Signature · 3 lines
Devin J. Heitmueller
http://www.devinheitmueller.com
AIM: devinheitmueller

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw
Quoted 48 lines · ZhanMa

Hi Steven and Devin,

Please ignore the last email, I just used 'dvbscan', and found it can load the xc5000 firmware, so I think that it will load the firmware at certain conditions.

While, when run 'dvbscan', I got "Unable to query frontend status":

#./dvbscan /usr/share/dvb/atsc/us-ATSC-center-frequencies-8VSB
xc5000: xc5000_init()
 xc5000_init() , call xc_load_fw_and_init_tuner() [xc_load_fw_and_init_tuner]
xc5000: xc5000_is_firmware_loaded() returns False id = 0x2000 [xc_load_fw_and_init_tuner] call xc5000_fwupload
xc5000: waiting for firmware upload (dvb-fe-xc5000-1.1.fw)...
xc5000: firmware read 12332 bytes.
xc5000: firmware upload
xc5000: xc5000_TunerReset()
au0828_tuner_callback()
 [xc_load_fw_and_init_tuner] call xc_initialize
xc5000: xc_initialize()
xc5000: *** ADC envelope (0-1023) = 49183
xc5000: *** Frequency error = 896234 Hz
xc5000: *** Lock status (0-Wait, 1-Locked, 2-No-signal) = 32831
xc5000: *** HW: V0e.01, FW: V02.0f
xc5000: *** Horizontal sync frequency = 16106 Hz
xc5000: *** Frame lines = 49215
xc5000: *** Quality (0:<8dB, 7:>56dB) = 32831
xc5000: xc5000_set_params() frequency=177028615 (Hz)
xc5000: xc5000_set_params() VSB modulation
xc5000: xc5000_set_params() frequency=175278615 (compensated)
xc5000: xc_SetSignalSource(0) Source = ANTENNA
xc5000: xc_SetTVStandard(0x8002,0x00c0)
xc5000: xc_SetTVStandard() Standard = DTV6
xc5000: xc_set_IF_frequency(freq_khz = 6000) freq_code = 0x1800
xc5000: xc_tune_channel(175278615)
xc5000: xc_set_RF_frequency(175278615)
xc5000: *** ADC envelope (0-1023) = 49279
xc5000: *** Frequency error = 896234 Hz
xc5000: *** Lock status (0-Wait, 1-Locked, 2-No-signal) = 32831
xc5000: *** HW: V0f.01, FW: V02.0f
xc5000: *** Horizontal sync frequency = 15862 Hz
xc5000: *** Frame lines = 49279
xc5000: *** Quality (0:<8dB, 7:>56dB) = 32831
Unable to query frontend status
xc5000: xc5000_sleep()

Quoted 5 lines

Actually, before, I tried the dvbscan on my laptop with Fedora Core 8, linux kernel 2.6.25, and v4l-dvb is dated about March 18, but I got the same problem.

Jason

Hello Jason,

Step 1: Please update to the latest version of the v4l-dvb code. I don't want to be in a situation where I am debugging old code, and this will make it easier to send you patches to get more debugging info.

Step 2: Please use pastebin to include the full dmesg output. Users often send what they believe is relevant, and this often does not include critical information. This also allows me to get some context as to what else is going on in the system.

Step 3: Please try using the "scan" tool as opposed to the "dvbscan" tool. I know that scan works as expected and want to rule out some sort of application issue. Also be sure to provide the exact command line that you ran.

Are you trying to scan for digital channels over the air, or are you trying to scan for digital cable? And do you know that you can actually receive channels in your location (have you tried it with the same antenna in the same location under Windows?)

In older versions of the code, the firmware gets loaded on the first use, as opposed to when the driver gets started up (this behavior changed on Mar 18th). Also bear in mind that it takes ten to twelve seconds to load the firmware (this is a known issue with the i2c bus that I am actively debugging).

Devin

Signature · 9 lines
Devin J. Heitmueller
http://www.devinheitmueller.com
AIM: devinheitmueller

_______________________________________________
linux-dvb users mailing list
For V4L/DVB development, please use instead [email protected]
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

A message that is not in the archive (sent off-list or not yet received): [email protected]

#6 lore raw
Quoted 97 lines · ZhanMa

Hi Steven,

Thanks for taking time to reply my question.

I referenced the wiki page:
http://www.linuxtv.org/wiki/index.php/Hauppauge_WinTV-HVR-950Q#Firmware,
the dmesg mentions xc5000 firmware upload. But my dmesg didn't show such message, that's why I wondered the firmware not loaded.

So when should the firmware be loaded? Right after the tuner pluged in? or the first time one application starts to use the device? I did the similar experiment on my linux pc (Fedora Core 8, linux kernel 2.6.25), after I pluged in the tuner, it started to register and load the firmware before I run a 'scan' program. This 'scan' is one utility program from LinuxTV.org, but it found 0 service on my linux pc and the ARM board.

Regards,
Jason

------------------------------------------------------------------------
*From:* Steven Toth <[email protected]>
*To:* ZhanMa <[email protected]>; linux-dvb <[email protected]> *Sent:* Friday, March 20, 2009 7:19:16 AM
*Subject:* Re: Linux driver for Hauppauge WinTV-HVR 950Q

Quoted 3 lines · ZhanMa

Hi Steven,

I am working on porting the Hauppauge WinTV-Hvr 950Q tuner driver to

a TI DaVinci platform which uses linux kernel 2.6.18 (MontaVista). After I pluged in the tuner into the board's usb port, I got the following message. It looks that the registration procedure finished but I saw the message that xc5000 firmware not load yet (I already put the firmware, dvb-fe-xc5000-1.1.fw, under /lib/firmware).

Quoted 2 lines

So I believe it should load the firmware, otherwise the tuner would

not work, right? But why it didn't load?

Quoted 37 lines

Please advise me how I can fix this problem, thank you so much!!

Jason Ma

[email protected]:~#
usb 1-1.1: new high speed USB device using musb_hdrc and address 4 usb 1-1.1: Product: WinTV HVR-950
usb 1-1.1: Manufacturer: Hauppauge
usb 1-1.1: SerialNumber: 4031281567
usb 1-1.1: configuration #1 chosen from 1 choice au0828_init() Debugging is enabled
au0828_init() USB Debugging is enabled
au0828 driver loaded
au0828_usb_probe() vendor id 0x2040
au0828_usb_probe() device id 0x7200
au0828_gpio_setup()
au0828_i2c_register()
davinci_i2c_probe_adapter: 0xc06fe858
davinci_evm_expander1 i2c attach [addr=0x3a,client=davinci_evm_expander1]
board_i2c_expander_setup=0xc001ae8c, 0xc001ae8c
aic3x I2C Codec i2c attach [addr=0x1b,client=AIC3X]
asoc: aic3x <-> davinci-i2s mapping ok
au0828: i2c bus registered
[au0828_usb_probe], au0828_card_setup
i2c_readbytes()
[hauppauge_eeprom]
tveeprom 1-0050: Hauppauge model 72001, rev B3F0, serial# 4749727 tveeprom 1-0050: MAC address is 00-0D-FE-48-79-9F
tveeprom 1-0050: tuner model is Xceive XC5000 (idx 150, type 4) tveeprom 1-0050: TV standards NTSC(M) ATSC/DVB Digital (eeprom 0x88) tveeprom 1-0050: audio processor is AU8522 (idx 44)
tveeprom 1-0050: decoder processor is AU8522 (idx 42) tveeprom 1-0050: has no radio, has IR receiver, has no IR transmitter

Quoted 8 lines

hauppauge_eeprom: hauppauge eeprom: model=72001 xc5000_attach()
xc5000 1-0061: creating new instance
xc5000_attach() new tuner instance
xc5000: Successfully identified at address 0x61
xc5000: Firmware has not been loaded previously
DVB: registering new adapter (au0828)
DVB: registering adapter 0 frontend -8388625 (Auvitek AU8522 QAM/8VSB

Frontend)...

Quoted 9 lines

Registered device AU0828 [Hauppauge HVR950Q]
Registered device AU0828 [Hauppauge HVR950Q]
usbcore: registered new driver au0828
[au0828_init], usb_register success, ret=0

[email protected]:~# lsusb
Bus 001 Device 004: ID 2040:7200 Bus 001 Device 003: ID 0596:0001 

MicroTouch Systems, Inc. Touchscreen

Quoted 1 line

Bus 001 Device 002: ID 04b4:6560 Cypress Semiconductor Corp.

CY7C65640 USB-2.0 "TetraHub"

Quoted 9 lines
Quoted 2 lines

Bus 001 Device 001: ID 0000:0000

Hi,

What makes you think the firmware has not loaded?

- Steve

_______________________________________________
linux-dvb users mailing list
For V4L/DVB development, please use instead [email protected] [email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb