Modify
Warning Please read the Ticket HowTo before creating or commenting on a ticket. Failure to do so may cause your ticket to be rejected or result in a slower response.

Opened 6 years ago

Closed 5 years ago

Last modified 5 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
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@… 6 years ago.
Use V4L2 for bttv

Download all attachments as: .zip

Change History (16)

Changed 6 years ago by david.madsen@…

Use V4L2 for bttv

comment:1 Changed 6 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 6 years ago by PsychoI3oy

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

comment:3 follow-up: Changed 6 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 6 years ago by stuartm

  • Milestone changed from unknown to 0.21.1
  • Priority changed from minor to major
  • Severity changed from medium to high
  • Version changed from unknown to 0.21-fixes

comment:5 Changed 6 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 6 years ago by anonymous

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

comment:7 Changed 6 years ago by stuartm

  • Owner changed from ijr to janneg
  • Status changed from new to assigned

comment:9 Changed 5 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 5 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 5 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 5 years ago by janne

(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 5 years ago by janne

  • Resolution set to fixed
  • Status changed from assigned to closed

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

comment:14 Changed 5 years ago by janne

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

comment:15 Changed 5 years ago by janne

  • Owner changed from janneg to janne

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'new'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.