[linux-dvb] stv0299 demod with new pll ix2476

Pedro Aguilar paguilar at junkerhq.net
Fri Oct 5 10:52:40 CEST 2007


Hi,

I have a Sharp F7VZ0194A tuner/demod metal can that contains the stv0299
demod and an ix2476 PLL that I want to make it work in an SH4 based
embedded target.

Some weeks ago, after an important help from Manu, I realize that there
wasn't any driver for the PLL that supported it right away, so I needed to
add support for it.

I started adding this support modifying the file stv0299.c. I know this is
not right place for doing it, but at the moment I wanted to make things
easier since I'm quite new to DVB.

After some modifications, I tried to make a scan but it fails. This is the
output of the scan util:

# ./scan -v dvb-s/Hotbird-13.0E
scanning /home/dvb/dvb-s/Hotbird-13.0E
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
initial transponder 12539000 H 27500000 3
>>> tune to: 12539:h:0:27500
DiSEqC: switch pos 0, 18V, hiband (index 3)
>>> tuning status == 0x03
>>> tuning status == 0x03
...
>>> tuning status == 0x03
WARNING: >>> tuning failed!!!
>>> tune to: 12539:h:0:27500 (tuning failed)
DiSEqC: switch pos 0, 18V, hiband (index 3)
>>> tuning status == 0x03
>>> tuning status == 0x03
...
>>> tuning status == 0x03
WARNING: >>> tuning failed!!!
ERROR: initial tuning failed
dumping lists (0 services)
Done.

I modprobe the module with debug=1 and the kernel is compiled with printk
support, so the output when scanning (with some additional printk that I
added) is:

dvb_device_open(): Opening device...
dvb_frontend_open
dvb_generic_open(): Opening generic...
dvb_frontend_start
dvb_frontend_ioctl
dvb_frontend_thread
DVB: initialising frontend 0 (ST STV0299 DVB-S)...
stv0299: init chip
dvb_frontend_ioctl
stv0299: stv0299_set_tone()
dvb_frontend_ioctl
stv0299: stv0299_set_voltage: SEC_VOLTAGE_18
dvb_frontend_ioctl
stv0299: stv0299_send_diseqc_msg
dvb_frontend_ioctl
stv0299: stv0299_send_diseqc_burst
dvb_frontend_ioctl
stv0299: stv0299_set_tone()
dvb_frontend_ioctl
stv0299: stv0299_get_tune_settings()
dvb_frontend_add_event
dvb_frontend_swzigzag_autotune: drift:0 inversion:0 auto_step:0
auto_sub_step:0 started_auto_step:0
stv0299_set_frontend : FE_SET_FRONTEND
stv0299: stv0299_enable_plli2c()
stv0299: stv0299_set_FEC(): FEC = 3
stv0299: stv0299_set_symbolrate()
stv0299_set_symbolrate(): Symbol rate = 5242880
stv0299: stv0299_read_status : FE_READ_STATUS : VSTATUS: 0x81, signal: 0xc0
dvb_frontend_add_event
...


The whole output is in the attchmnt as well as the modified stv0299.c

Doing some debug it turns out that stv0299_read_status() returns a value
to the scan util of 0x03, instead of the FE_HAS_LOCK that would be the
right value and this throws the "tuning failed!!!" msg.

Any help would be really appreciated.

Thanks!

Regards,
--
Pedro Aguilar
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: stv0299_output_041007.txt
Url: http://www.linuxtv.org/pipermail/linux-dvb/attachments/20071005/0b8429ec/attachment-0001.txt 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stv0299.c
Type: application/octet-stream
Size: 26560 bytes
Desc: not available
Url : http://www.linuxtv.org/pipermail/linux-dvb/attachments/20071005/0b8429ec/attachment-0001.obj 


More information about the linux-dvb mailing list