[Bug 499734] [NEW] v4l-conf returns bogus values using DGA

Michael Hunold michael at mihu.de
Wed Dec 23 08:28:53 UTC 2009


Public bug reported:

Binary package hint: xawtv

I'm using Ubuntu 9.10, v4l-conf is 3.95.dfsg.1-8.1ubuntu1.

v4l-conf: using X11 display :0.0
dga: version 2.0
mode: 1280x1024, depth=24, bpp=32, bpl=28, base=unknown
can't open /dev/video0: No such file or directory

The output of bpl (= bytes per line) is totally bogus, it should be 5120 instead. 
This confuses my Video4Linux2 driver and makes overlay video non-working.

I recompiled the package from source and could trace the problem down to 
displayinfo_dga() in console/v4l-conf.c.

static void
displayinfo_dga(Display *dpy, struct DISPLAYINFO *d)
{
#ifdef HAVE_LIBXXF86DGA
[...]
    XF86DGAGetVideoLL(dpy,XDefaultScreen(dpy),(void*)&base,&width,&foo,&bar);
[...]
    d->bpl  = width * d->bpp/8;
[...]

"width" is returned to be 7 and d->bpp is 32, so d->bpl will be
calculated as 28.

If I just put #if 0 around this function, v4l-conf will behave correctly, because displayinfo_x11()
function correctly identifies bpl as 5120, but unfortunately will be outvoted by displayinfo_dga().

So I guess there is a problem with DGA support for my graphics card. It's an on-board
"AMD 780G Gigabyte GA-MA78GM UDH2" mainboard.

01:05.0 VGA compatible controller: ATI Technologies Inc Radeon HD 3200 Graphics
	Subsystem: Giga-byte Technology Device d000
	Flags: bus master, fast devsel, latency 0, IRQ 18
	Memory at d0000000 (32-bit, prefetchable) [size=256M]
	I/O ports at ee00 [size=256]
	Memory at fdfe0000 (32-bit, non-prefetchable) [size=64K]
	Memory at fde00000 (32-bit, non-prefetchable) [size=1M]
	Capabilities: <access denied>
	Kernel modules: radeon

** Affects: xawtv (Ubuntu)
     Importance: Undecided
         Status: New

-- 
v4l-conf returns bogus values using DGA
https://bugs.launchpad.net/bugs/499734
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list