Opened 16 years ago

Closed 15 years ago

Last modified 15 years ago

#5608 closed defect (fixed)

bttv driver not initializing properly through V4L compatibility interface in recent kernels (2.6.25/2.6.26)

Reported by: david.madsen@… Owned by: Janne Grunau
Priority: major Milestone: 0.21.1
Component: mythtv Version: 0.21-fixes
Severity: high Keywords:
Cc: Ticket locked: no

Description

After upgrading to recent kernels that have removed V4L I had to switch my bttv card over to use V4L2. Without similar changes to those in the above patch my recordings from that tuner ended up just recording a green screen. It appears to be due to the card/tuner not being initialized fully through the V4L compatibility interface.

Attachments (1)

bttv-v4l2.patch (594 bytes) - added by david.madsen@… 16 years ago.
Use V4L2 for bttv

Download all attachments as: .zip

Change History (16)

Changed 16 years ago by david.madsen@…

Attachment: bttv-v4l2.patch added

Use V4L2 for bttv

comment:1 Changed 16 years ago by anonymous

Bug #1068 from long ago is referring to this issue as well, but I was unable to re-open it.

comment:2 Changed 16 years ago by PsychoI3oy

I had the same issue after upgrading and the patch fixed it

comment:3 Changed 16 years ago by amb@…

I had the same problem with V4L1 and kernel 2.6.25 and the patch removed that problem.

The patch did however add a new problem which was that individual interlaced fields would appear out of place several frames later than they should have been displayed. This caused frequent jumps in the picture (although they only showed up clearly on fast moving images).

I have no objections to applying the patch, but please don't remove the dead code that is left behind.

comment:4 Changed 16 years ago by stuartm

Milestone: unknown0.21.1
Priority: minormajor
Severity: mediumhigh
Version: unknown0.21-fixes

comment:5 Changed 16 years ago by laga@…

For those using Ubuntu Hardy:

I've uploaded a package which contains a possible fix to the mythbuntu-testing PPA. Version number is 0.21.0+fixes18337-0ubuntu1~ppa4

https://launchpad.net/~mythbuntu-testing/+archive

comment:6 Changed 16 years ago by anonymous

I'm using debian lenny. Which source package do I have to download in order to patch?

comment:7 Changed 16 years ago by stuartm

Owner: changed from Isaac Richards to janneg
Status: newassigned

comment:9 Changed 16 years ago by saintdev@…

I'm on Gentoo, and using the above patch does correctly give me video, however, it changes the volume on my card resulting in no audio. As if the "Do not adjust volume" box were unchecked in mythtv-setup.

comment:10 in reply to:  3 Changed 15 years ago by amb@…

Replying to amb@gedanken.demon.co.uk:

I had the same problem with V4L1 and kernel 2.6.25 and the patch removed that problem.

The patch did however add a new problem which was that individual interlaced fields would appear out of place several frames later than they should have been displayed. This caused frequent jumps in the picture (although they only showed up clearly on fast moving images).

With kernel version 2.6.27 this patch works fine for me and the problems I had with 2.6.25 are no longer present.

comment:11 Changed 15 years ago by scottadmi@…

I am having the same problem as saintdev under gentoo linux - the video now displays properly using my bttv card - however the card remains muted so no TV audio can be captured and I have been unable to find a way to unmute it via mythtv or the console. At present, I'm forced to downgrade back to the 2.6.24 kernel.

comment:12 Changed 15 years ago by Janne Grunau

(In [19248]) use always V4L2 API if the capture card/driver supports it.

V4L is due to removed from the kernel this month. V4L compat layer will stay around but the V4L2 drivers should been mature enough by now. Refs #5608

comment:13 Changed 15 years ago by Janne Grunau

Resolution: fixed
Status: assignedclosed

(In [19249]) backports [19248] from trunk. always use V4L2 if available. Fixes #5608

comment:14 Changed 15 years ago by Janne Grunau

(In [19250]) clean V4L/V4L2 distinction in Nuppelvideorecorder up. Refs #5608

comment:15 Changed 15 years ago by Janne Grunau

Owner: changed from janneg to Janne Grunau
Note: See TracTickets for help on using tickets.