All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-dvb] build.sh fails on kernel 2.6.38
@ 2011-05-23 10:09 Giwrgos Panou
  2011-05-24 11:55 ` Stu Fleming
  0 siblings, 1 reply; 4+ messages in thread
From: Giwrgos Panou @ 2011-05-23 10:09 UTC (permalink / raw)
  To: linux-dvb

Hello,
I tried to build the v4l-dvb on an ubuntu machine with kernel 2.6.38.8 generic
and I get make error:
=========================================
/home/z/media_build/v4l/kinect.c:38:19: error: ‘D_ERR’ undeclared here (not in a function)
/home/z/media_build/v4l/kinect.c:38:27: error: ‘D_PROBE’ undeclared here (not in a function)
/home/z/media_build/v4l/kinect.c:38:37: error: ‘D_CONF’ undeclared here (not in a function)
/home/z/media_build/v4l/kinect.c:38:46: error: ‘D_STREAM’ undeclared here (not in a function)
/home/z/media_build/v4l/kinect.c:38:57: error: ‘D_FRAM’ undeclared here (not in a function)
/home/z/media_build/v4l/kinect.c:38:66: error: ‘D_PACK’ undeclared here (not in a function)
/home/z/media_build/v4l/kinect.c:39:2: error: ‘D_USBI’ undeclared here (not in a function)
/home//media_build/v4l/kinect.c:39:11: error: ‘D_USBO’ undeclared here (not in a function)
/home//media_build/v4l/kinect.c:39:20: error: ‘D_V4L2′ undeclared here (not in a function)
make[3]: *** [/home//media_build/v4l/kinect.o] Error 1
make[2]: *** [_module_/home//media_build/v4l] Error 2
=================================================================


_______________________________________________
linux-dvb users mailing list
For V4L/DVB development, please use instead linux-media@vger.kernel.org
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-dvb] build.sh fails on kernel 2.6.38
  2011-05-23 10:09 [linux-dvb] build.sh fails on kernel 2.6.38 Giwrgos Panou
@ 2011-05-24 11:55 ` Stu Fleming
  2011-05-24 12:57   ` Devin Heitmueller
  2011-05-25  2:47   ` Nicholas Leahy
  0 siblings, 2 replies; 4+ messages in thread
From: Stu Fleming @ 2011-05-24 11:55 UTC (permalink / raw)
  To: linux-dvb

On 23/05/11 22:09, Giwrgos Panou wrote:
> Hello,
> I tried to build the v4l-dvb on an ubuntu machine with kernel 2.6.38.8 generic
> and I get make error:
> =========================================
> /home/z/media_build/v4l/kinect.c:38:19: error: ‘D_ERR’ undeclared here (not in a function)
> /home/z/media_build/v4l/kinect.c:38:27: error: ‘D_PROBE’ undeclared here (not in a function)
> /home/z/media_build/v4l/kinect.c:38:37: error: ‘D_CONF’ undeclared here (not in a function)
> /home/z/media_build/v4l/kinect.c:38:46: error: ‘D_STREAM’ undeclared here (not in a function)
> /home/z/media_build/v4l/kinect.c:38:57: error: ‘D_FRAM’ undeclared here (not in a function)
> /home/z/media_build/v4l/kinect.c:38:66: error: ‘D_PACK’ undeclared here (not in a function)
> /home/z/media_build/v4l/kinect.c:39:2: error: ‘D_USBI’ undeclared here (not in a function)
> /home//media_build/v4l/kinect.c:39:11: error: ‘D_USBO’ undeclared here (not in a function)
> /home//media_build/v4l/kinect.c:39:20: error: ‘D_V4L2′ undeclared here (not in a function)
> make[3]: *** [/home//media_build/v4l/kinect.o] Error 1
> make[2]: *** [_module_/home//media_build/v4l] Error 2
> =================================================================
I also see, compiling against 2.6.38:
   CC [M]  /usr/src/v4l-dvb/v4l/flexcop-i2c.o
/usr/src/v4l-dvb/v4l/flexcop-i2c.c: In function 'flexcop_i2c_init':
/usr/src/v4l-dvb/v4l/flexcop-i2c.c:253:39: error: 'I2C_CLASS_TV_DIGITAL' 
undeclared (first use in this function)
https://patchwork.kernel.org/patch/250451/ refers

   CC [M]  /usr/src/v4l-dvb/v4l/bttv-i2c.o
/usr/src/v4l-dvb/v4l/bttv-i2c.c: In function 'init_bttv_i2c_ir':
/usr/src/v4l-dvb/v4l/bttv-i2c.c:437:3: error: too few arguments to 
function 'i2c_new_probed_device'
http://www.gossamer-threads.com/lists/linux/kernel/1282040 refers

and finally
   CC [M]  /usr/src/v4l-dvb/v4l/dmxdev.o
/usr/src/v4l-dvb/v4l/dmxdev.c: In function 'dvb_dmxdev_start_feed':
/usr/src/v4l-dvb/v4l/dmxdev.c:583:13: warning: comparison between 'enum 
dmx_ts_pes' and 'enum <anonymous>'
/usr/src/v4l-dvb/v4l/dmxdev.c: At top level:
/usr/src/v4l-dvb/v4l/dmxdev.c:1142:2: error: unknown field 'ioctl' 
specified in initializer
/usr/src/v4l-dvb/v4l/dmxdev.c:1142:2: warning: initialization from 
incompatible pointer type
/usr/src/v4l-dvb/v4l/dmxdev.c:1211:2: error: unknown field 'ioctl' 
specified in initializer
/usr/src/v4l-dvb/v4l/dmxdev.c:1211:2: warning: initialization from 
incompatible pointer type
which I cannot yet fix.

I note that the cx88 bug that affects HVR3000 and HVR4000 is still in 
this build
https://lists.launchpad.net/mythbuntu-bugs/msg03390.html

I would hugely appreciate the latter bug being fixed!!
Regards,
Stu



_______________________________________________
linux-dvb users mailing list
For V4L/DVB development, please use instead linux-media@vger.kernel.org
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-dvb] build.sh fails on kernel 2.6.38
  2011-05-24 11:55 ` Stu Fleming
@ 2011-05-24 12:57   ` Devin Heitmueller
  2011-05-25  2:47   ` Nicholas Leahy
  1 sibling, 0 replies; 4+ messages in thread
From: Devin Heitmueller @ 2011-05-24 12:57 UTC (permalink / raw)
  To: linux-media

On Tue, May 24, 2011 at 7:55 AM, Stu Fleming <stewart@wic.co.nz> wrote:
> I note that the cx88 bug that affects HVR3000 and HVR4000 is still in this
> build
> https://lists.launchpad.net/mythbuntu-bugs/msg03390.html
>
> I would hugely appreciate the latter bug being fixed!!

Hmm, I just looked at this now.  I appreciate why they patch in the
ticket *appears* to fix the problem, but nonetheless it's not the
correct fix.

This is basically a race condition related to teardown of the DVB
frontend thread.  The function used to take over the DVB bus strobes
the reset pin on the demodulator, but there is no guarantee that the
demod's init function will subsequently get called.  In particular if
you rapid close then reopen the DVB device, the demod will get reset
but the init will not get called (since the thread wasn't torn down in
time and the init() call is only made on thread creation), resulting
in subsequent tuning requests failing.

Unfortunately, failing to strobe the reset (which is what the patch
does) will result in the chip potentially being in an unknown state,
which would intermittent result in tuning failure.  And you are also
very likely to have problems switching between DVB-T and DVB-S/S2.

This does explain though why an HVR-4000 user who came to me about a
year ago complaining of the DVB-T channel scanner not working in
MythTV, and the problem went away when I suggested he jam a sleep(1)
between the close() and open() calls to the DVB frontend.  Adding the
sleep ensured that the dvb frontend went away, which ensured that the
init call on the demod was always getting called when it got reopened.

In short, the patch is wrong but the problem is much more complicated
than simply removing the routine that strobes the reset.  Likely the
way bus acquire in the cx88 driver would have to be reworked to fix it
properly.  There may also need to be a fix to dvb_frontend.c as well.

This is one of those cases where a rather insidious problem has been
found with the framework, and the fix is both going to be complicated
and run a very real risk of causing breakage in other boards relying
on implicit behavior.

I wonder if we can just get the MythTV developers to stick a 0.1
second sleep in between closing and opening the frontend.  That would
be *much* safer at least in the short term.

Devin

-- 
Devin J. Heitmueller - Kernel Labs
http://www.kernellabs.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-dvb] build.sh fails on kernel 2.6.38
  2011-05-24 11:55 ` Stu Fleming
  2011-05-24 12:57   ` Devin Heitmueller
@ 2011-05-25  2:47   ` Nicholas Leahy
  1 sibling, 0 replies; 4+ messages in thread
From: Nicholas Leahy @ 2011-05-25  2:47 UTC (permalink / raw)
  To: linux-media, linux-dvb


[-- Attachment #1.1: Type: text/plain, Size: 3410 bytes --]


I had the same problems as well on ubuntu with kernel 2.6.38.8
> Date: Tue, 24 May 2011 23:55:18 +1200
> From: stewart@wic.co.nz
> To: linux-dvb@linuxtv.org
> Subject: Re: [linux-dvb] build.sh fails on kernel 2.6.38
> 
> On 23/05/11 22:09, Giwrgos Panou wrote:
> > Hello,
> > I tried to build the v4l-dvb on an ubuntu machine with kernel 2.6.38.8 generic
> > and I get make error:
> > =========================================
> > /home/z/media_build/v4l/kinect.c:38:19: error: ‘D_ERR’ undeclared here (not in a function)
> > /home/z/media_build/v4l/kinect.c:38:27: error: ‘D_PROBE’ undeclared here (not in a function)
> > /home/z/media_build/v4l/kinect.c:38:37: error: ‘D_CONF’ undeclared here (not in a function)
> > /home/z/media_build/v4l/kinect.c:38:46: error: ‘D_STREAM’ undeclared here (not in a function)
> > /home/z/media_build/v4l/kinect.c:38:57: error: ‘D_FRAM’ undeclared here (not in a function)
> > /home/z/media_build/v4l/kinect.c:38:66: error: ‘D_PACK’ undeclared here (not in a function)
> > /home/z/media_build/v4l/kinect.c:39:2: error: ‘D_USBI’ undeclared here (not in a function)
> > /home//media_build/v4l/kinect.c:39:11: error: ‘D_USBO’ undeclared here (not in a function)
> > /home//media_build/v4l/kinect.c:39:20: error: ‘D_V4L2′ undeclared here (not in a function)
> > make[3]: *** [/home//media_build/v4l/kinect.o] Error 1
> > make[2]: *** [_module_/home//media_build/v4l] Error 2
> > =================================================================
> I also see, compiling against 2.6.38:
>    CC [M]  /usr/src/v4l-dvb/v4l/flexcop-i2c.o
> /usr/src/v4l-dvb/v4l/flexcop-i2c.c: In function 'flexcop_i2c_init':
> /usr/src/v4l-dvb/v4l/flexcop-i2c.c:253:39: error: 'I2C_CLASS_TV_DIGITAL' 
> undeclared (first use in this function)
> https://patchwork.kernel.org/patch/250451/ refers
> 
>    CC [M]  /usr/src/v4l-dvb/v4l/bttv-i2c.o
> /usr/src/v4l-dvb/v4l/bttv-i2c.c: In function 'init_bttv_i2c_ir':
> /usr/src/v4l-dvb/v4l/bttv-i2c.c:437:3: error: too few arguments to 
> function 'i2c_new_probed_device'
> http://www.gossamer-threads.com/lists/linux/kernel/1282040 refers
> 
> and finally
>    CC [M]  /usr/src/v4l-dvb/v4l/dmxdev.o
> /usr/src/v4l-dvb/v4l/dmxdev.c: In function 'dvb_dmxdev_start_feed':
> /usr/src/v4l-dvb/v4l/dmxdev.c:583:13: warning: comparison between 'enum 
> dmx_ts_pes' and 'enum <anonymous>'
> /usr/src/v4l-dvb/v4l/dmxdev.c: At top level:
> /usr/src/v4l-dvb/v4l/dmxdev.c:1142:2: error: unknown field 'ioctl' 
> specified in initializer
> /usr/src/v4l-dvb/v4l/dmxdev.c:1142:2: warning: initialization from 
> incompatible pointer type
> /usr/src/v4l-dvb/v4l/dmxdev.c:1211:2: error: unknown field 'ioctl' 
> specified in initializer
> /usr/src/v4l-dvb/v4l/dmxdev.c:1211:2: warning: initialization from 
> incompatible pointer type
> which I cannot yet fix.
> 
> I note that the cx88 bug that affects HVR3000 and HVR4000 is still in 
> this build
> https://lists.launchpad.net/mythbuntu-bugs/msg03390.html
> 
> I would hugely appreciate the latter bug being fixed!!
> Regards,
> Stu
> 
> 
> 
> _______________________________________________
> linux-dvb users mailing list
> For V4L/DVB development, please use instead linux-media@vger.kernel.org
> linux-dvb@linuxtv.org
> http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
 		 	   		  

[-- Attachment #1.2: Type: text/html, Size: 4060 bytes --]

[-- Attachment #2: Type: text/plain, Size: 228 bytes --]

_______________________________________________
linux-dvb users mailing list
For V4L/DVB development, please use instead linux-media@vger.kernel.org
linux-dvb@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-05-25  2:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-23 10:09 [linux-dvb] build.sh fails on kernel 2.6.38 Giwrgos Panou
2011-05-24 11:55 ` Stu Fleming
2011-05-24 12:57   ` Devin Heitmueller
2011-05-25  2:47   ` Nicholas Leahy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.