mirror of
https://github.com/X11Libre/xf86-video-v4l.git
synced 2026-04-14 11:14:32 +00:00
Compare commits
2 Commits
XORG-6_8_9
...
XEVIE-BASE
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
be350fa186 | ||
|
|
f6186e5b91 |
11
src/v4l.c
11
src/v4l.c
@@ -2,7 +2,8 @@
|
||||
* video4linux Xv Driver
|
||||
* based on Michael Schimek's permedia 2 driver.
|
||||
*/
|
||||
/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/v4l/v4l.c,v 1.30 2002/05/14 20:19:53 alanh Exp $ */
|
||||
/* $XdotOrg: xc/programs/Xserver/hw/xfree86/drivers/v4l/v4l.c,v 1.33 2003/12/05 03:55:32 dawes Exp $ */
|
||||
/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/v4l/v4l.c,v 1.33 2003/12/05 03:55:32 dawes Exp $ */
|
||||
|
||||
#include "videodev.h"
|
||||
#include "xf86.h"
|
||||
@@ -13,7 +14,7 @@
|
||||
#include "xf86fbman.h"
|
||||
#include "xf86xv.h"
|
||||
#include "Xv.h"
|
||||
#include "miscstruct.h"
|
||||
#include "regionstr.h"
|
||||
#include "dgaproc.h"
|
||||
#include "xf86str.h"
|
||||
|
||||
@@ -220,7 +221,7 @@ static int V4lOpenDevice(PortPrivPtr pPPriv, ScrnInfoPtr pScrn)
|
||||
if (first) {
|
||||
first = 0;
|
||||
xf86DrvMsgVerb(pScrn->scrnIndex, X_INFO, 2,
|
||||
"v4l: memPhysBase=%p\n", pScrn->memPhysBase);
|
||||
"v4l: memPhysBase=0x%lx\n", pScrn->memPhysBase);
|
||||
}
|
||||
|
||||
switch (pScrn->bitsPerPixel) {
|
||||
@@ -718,11 +719,11 @@ static void
|
||||
V4LBuildEncodings(PortPrivPtr p, int fd, int channels)
|
||||
{
|
||||
static struct video_channel channel;
|
||||
int i,entries,have_bttv;
|
||||
int i,entries,have_bttv,bttv_ver;
|
||||
|
||||
#define BTTV_VERSION _IOR('v' , BASE_VIDIOCPRIVATE+6, int)
|
||||
have_bttv = 0;
|
||||
if (-1 != ioctl(fd,BTTV_VERSION,NULL))
|
||||
if (-1 != ioctl(fd,BTTV_VERSION,&bttv_ver))
|
||||
have_bttv = 1;
|
||||
|
||||
entries = (have_bttv ? 7 : 3) * channels;
|
||||
|
||||
Reference in New Issue
Block a user