diff options
author | Eric Anholt <anholt@freebsd.org> | 2004-06-16 09:24:09 +0000 |
---|---|---|
committer | Eric Anholt <anholt@freebsd.org> | 2004-06-16 09:24:09 +0000 |
commit | b299863dd21226e2ea47f7983f31e1920ac70cd9 (patch) | |
tree | 8a604723825a990be96a94bf9ee8c4b50cdcfbbb /src/v4l.c | |
parent | 1f8ceb0991d6154eb5993cf2eb8b2d9a68a8eaf9 (diff) |
DRI XFree86-4_3_99_12-merge importDRI-trunk-20040721DRI-trunk-20040613DRI-XFree86-4_3_99_12-merge
Diffstat (limited to 'src/v4l.c')
-rw-r--r-- | src/v4l.c | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -2,7 +2,7 @@ * video4linux Xv Driver * based on Michael Schimek's permedia 2 driver. */ -/* $XFree86: 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.31 2003/07/16 01:38:47 dawes Exp $ */ #include "videodev.h" #include "xf86.h" @@ -50,7 +50,7 @@ static XF86ModuleVersionInfo v4lVersRec = MODULEVENDORSTRING, MODINFOSTRING1, MODINFOSTRING2, - XORG_VERSION_CURRENT, + XF86_VERSION_CURRENT, 0, 0, 1, ABI_CLASS_VIDEODRV, ABI_VIDEODRV_VERSION, @@ -220,7 +220,7 @@ static int V4lOpenDevice(PortPrivPtr pPPriv, ScrnInfoPtr pScrn) if (first) { first = 0; xf86DrvMsgVerb(pScrn->scrnIndex, X_INFO, 2, - "v4l: memPhysBase=0x%lx\n", pScrn->memPhysBase); + "v4l: memPhysBase=%p\n", pScrn->memPhysBase); } switch (pScrn->bitsPerPixel) { @@ -718,11 +718,11 @@ static void V4LBuildEncodings(PortPrivPtr p, int fd, int channels) { static struct video_channel channel; - int i,entries,have_bttv,bttv_ver; + int i,entries,have_bttv; #define BTTV_VERSION _IOR('v' , BASE_VIDIOCPRIVATE+6, int) have_bttv = 0; - if (-1 != ioctl(fd,BTTV_VERSION,&bttv_ver)) + if (-1 != ioctl(fd,BTTV_VERSION,NULL)) have_bttv = 1; entries = (have_bttv ? 7 : 3) * channels; @@ -747,17 +747,17 @@ V4LBuildEncodings(PortPrivPtr p, int fd, int channels) continue; } - v4l_add_enc(p->enc, p->nenc,"PAL", channel.name, 768,576, 1,50); + v4l_add_enc(p->enc, p->nenc,"pal", channel.name, 768,576, 1,50); p->norm[p->nenc] = VIDEO_MODE_PAL; p->input[p->nenc] = i; p->nenc++; - v4l_add_enc(p->enc,p->nenc,"NTSC", channel.name, 640,480, 1001,60000); + v4l_add_enc(p->enc,p->nenc,"ntsc", channel.name, 640,480, 1001,60000); p->norm[p->nenc] = VIDEO_MODE_NTSC; p->input[p->nenc] = i; p->nenc++; - v4l_add_enc(p->enc,p->nenc,"SECAM",channel.name, 768,576, 1,50); + v4l_add_enc(p->enc,p->nenc,"secam",channel.name, 768,576, 1,50); p->norm[p->nenc] = VIDEO_MODE_SECAM; p->input[p->nenc] = i; p->nenc++; @@ -767,28 +767,28 @@ V4LBuildEncodings(PortPrivPtr p, int fd, int channels) ntsc and secam. But there are a few more norms (pal versions with a different timings used in south america for example). The bttv driver can handle these too. */ - if (0 != v4l_add_enc(p->enc,p->nenc,"PAL-Nc",channel.name, + if (0 != v4l_add_enc(p->enc,p->nenc,"palnc",channel.name, 640, 576, 1,50)) goto fail; p->norm[p->nenc] = 3; p->input[p->nenc] = i; p->nenc++; - if (0 != v4l_add_enc(p->enc,p->nenc,"PAL-M",channel.name, + if (0 != v4l_add_enc(p->enc,p->nenc,"palm",channel.name, 640, 576, 1,50)) goto fail; p->norm[p->nenc] = 4; p->input[p->nenc] = i; p->nenc++; - if (0 != v4l_add_enc(p->enc, p->nenc,"PAL-N", channel.name, + if (0 != v4l_add_enc(p->enc, p->nenc,"paln", channel.name, 768,576, 1,50)) goto fail; p->norm[p->nenc] = 5; p->input[p->nenc] = i; p->nenc++; - if (0 != v4l_add_enc(p->enc,p->nenc,"NTSC-JP", channel.name, + if (0 != v4l_add_enc(p->enc,p->nenc,"ntscjp", channel.name, 640,480, 1001,60000)) goto fail; p->norm[p->nenc] = 6; |