[linux-dvb] tm6000/tm6010 progress?
Mauro Carvalho Chehab
mchehab at infradead.org
Tue Oct 28 12:29:49 CET 2008
On Tue, 28 Oct 2008 12:05:33 +0100
Eddi De Pieri <eddi at depieri.net> wrote:
> I report you some problem:
> With DVB support active build fail on tm6000-dvb.o
> CC [M] /data/devel/tm6010/v4l/tm6000-dvb.o
> /data/devel/tm6010/v4l/tm6000-dvb.c: In function 'tm6000_dvb_register':
> /data/devel/tm6010/v4l/tm6000-dvb.c:240: error: unknown field
> 'video_dev' specified in initializer
> /data/devel/tm6010/v4l/tm6000-dvb.c:240: warning: initialization makes
> integer from pointer without a cast
> I've tried changing the line..
> - .video_dev = dev,
> + .i2c_addr = 0x61,
> Now it build but the decoder is not detected.
Hmm.. Ok, I'll check this.
The DVB part deserves some work. I'm currently trying to fix the streaming
routine to use the same model for DVB as we did on em28xx-dvb.
> insmod tm6000-alsa.ko
> insmod: error inserting 'tm6000-alsa.ko': -1 Unknown symbol in module
> # dmesg
> [ 1785.667726] tm6000_alsa: Unknown symbol tm6000_get_reg
> [ 1785.667930] tm6000_alsa: Unknown symbol tm6000_set_reg
tm6000-alsa is just a cleaned copy of the dummy alsa prototype. It never
worked. I need first to have the streaming routines working fine for making the
binding between stream reception and audio.
> Without dvb it build but mplayer show green screen and no image.
One of the hardest part of tm6000 is the streaming decoding. If you take a look
at the history, most of the latest patches were meant to fix streaming reception.
On analog mode, tm6000 produces frames with 180 bytes wide. The 3rd byte is the
header identifier (why they didn't use the first byte?). since the frames are
broken into several URB's, and even can be broken into different URB sets, a
complex logic is required to avoid double-buffering and to recover the original
image. That part of the code is currently broken. It used to work in the past,
but, on some cases, I was losing some URB's, causing very bad effects at the
image. We need this fixed in order to have the driver properly working.
More information about the linux-dvb