Gentoo Archives: gentoo-commits

From: "Harald van Dijk (truedfx)" <truedfx@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-tv/ivtv-utils/files: ivtv-utils-1.3.0-2.6.27.patch
Date: Wed, 28 Jan 2009 20:52:00
Message-Id: E1LSHO9-00082a-7h@stork.gentoo.org
1 truedfx 09/01/28 20:51:57
2
3 Added: ivtv-utils-1.3.0-2.6.27.patch
4 Log:
5 Don't install files already provided by linux-headers-2.6.27 (#244584)
6 (Portage version: 2.2_rc23/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 media-tv/ivtv-utils/files/ivtv-utils-1.3.0-2.6.27.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/ivtv-utils/files/ivtv-utils-1.3.0-2.6.27.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-tv/ivtv-utils/files/ivtv-utils-1.3.0-2.6.27.patch?rev=1.1&content-type=text/plain
13
14 Index: ivtv-utils-1.3.0-2.6.27.patch
15 ===================================================================
16 --- ivtv-utils-1.3.0/test/Makefile
17 +++ ivtv-utils-1.3.0/test/Makefile
18 @@ -1,5 +1,4 @@
19 INSTALLDIR = /usr/local/bin
20 -HEADERDIR = /usr/include/linux
21
22 EXES = vbi wss vbi-passthrough vbi-detect ivtv-pcm-tester \
23 mpeg-read-test mpeg-freq-test mpeg-read-sleep-test \
24 --- ivtv-utils-1.3.0/utils/linux/ivtvfb.h
25 +++ /dev/null
26 @@ -1,37 +0,0 @@
27 -/*
28 - On Screen Display cx23415 Framebuffer driver
29 -
30 - Copyright (C) 2006, 2007 Ian Armstrong <ian@×××××××××××××××.uk>
31 -
32 - This program is free software; you can redistribute it and/or modify
33 - it under the terms of the GNU General Public License as published by
34 - the Free Software Foundation; either version 2 of the License, or
35 - (at your option) any later version.
36 -
37 - This program is distributed in the hope that it will be useful,
38 - but WITHOUT ANY WARRANTY; without even the implied warranty of
39 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
40 - GNU General Public License for more details.
41 -
42 - You should have received a copy of the GNU General Public License
43 - along with this program; if not, write to the Free Software
44 - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
45 - */
46 -
47 -#ifndef __LINUX_IVTVFB_H__
48 -#define __LINUX_IVTVFB_H__
49 -
50 -#include <linux/types.h>
51 -
52 -/* Framebuffer external API */
53 -
54 -struct ivtvfb_dma_frame {
55 - void __user *source;
56 - unsigned long dest_offset;
57 - int count;
58 -};
59 -
60 -#define IVTVFB_IOC_DMA_FRAME _IOW('V', BASE_VIDIOC_PRIVATE+0, struct ivtvfb_dma_frame)
61 -#define FBIO_WAITFORVSYNC _IOW('F', 0x20, u_int32_t)
62 -
63 -#endif
64 --- ivtv-utils-1.3.0/utils/linux/ivtv.h
65 +++ /dev/null
66 @@ -1,67 +0,0 @@
67 -/*
68 - Public ivtv API header
69 - Copyright (C) 2003-2004 Kevin Thayer <nufan_wfk at yahoo.com>
70 - Copyright (C) 2004-2007 Hans Verkuil <hverkuil@××××××.nl>
71 -
72 - This program is free software; you can redistribute it and/or modify
73 - it under the terms of the GNU General Public License as published by
74 - the Free Software Foundation; either version 2 of the License, or
75 - (at your option) any later version.
76 -
77 - This program is distributed in the hope that it will be useful,
78 - but WITHOUT ANY WARRANTY; without even the implied warranty of
79 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
80 - GNU General Public License for more details.
81 -
82 - You should have received a copy of the GNU General Public License
83 - along with this program; if not, write to the Free Software
84 - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
85 - */
86 -
87 -#ifndef _LINUX_IVTV_H
88 -#define _LINUX_IVTV_H
89 -
90 -#include <linux/types.h>
91 -
92 -/* ivtv knows several distinct output modes: MPEG streaming,
93 - YUV streaming, YUV updates through user DMA and the passthrough
94 - mode.
95 -
96 - In order to clearly tell the driver that we are in user DMA
97 - YUV mode you need to call IVTV_IOC_DMA_FRAME with y_source == NULL
98 - first (althrough if you don't then the first time
99 - DMA_FRAME is called the mode switch is done automatically).
100 -
101 - When you close the file handle the user DMA mode is exited again.
102 -
103 - While in one mode, you cannot use another mode (EBUSY is returned).
104 -
105 - All this means that if you want to change the YUV interlacing
106 - for the user DMA YUV mode you first need to do call IVTV_IOC_DMA_FRAME
107 - with y_source == NULL before you can set the correct format using
108 - VIDIOC_S_FMT.
109 -
110 - Eventually all this should be replaced with a proper V4L2 API,
111 - but for now we have to do it this way. */
112 -
113 -struct ivtv_dma_frame {
114 - enum v4l2_buf_type type; /* V4L2_BUF_TYPE_VIDEO_OUTPUT */
115 - __u32 pixelformat; /* 0 == same as destination */
116 - void *y_source; /* if NULL and type == V4L2_BUF_TYPE_VIDEO_OUTPUT,
117 - then just switch to user DMA YUV output mode */
118 - void *uv_source; /* Unused for RGB pixelformats */
119 - struct v4l2_rect src;
120 - struct v4l2_rect dst;
121 - __u32 src_width;
122 - __u32 src_height;
123 -};
124 -
125 -#define IVTV_IOC_DMA_FRAME _IOW ('V', BASE_VIDIOC_PRIVATE+0, struct ivtv_dma_frame)
126 -
127 -/* These are the VBI types as they appear in the embedded VBI private packets. */
128 -#define IVTV_SLICED_TYPE_TELETEXT_B (1)
129 -#define IVTV_SLICED_TYPE_CAPTION_525 (4)
130 -#define IVTV_SLICED_TYPE_WSS_625 (5)
131 -#define IVTV_SLICED_TYPE_VPS (7)
132 -
133 -#endif /* _LINUX_IVTV_H */
134 --- ivtv-utils-1.3.0/utils/Makefile
135 +++ ivtv-utils-1.3.0/utils/Makefile
136 @@ -1,6 +1,5 @@
137 PREFIX = /usr/local
138 BINDIR = $(PREFIX)/bin
139 -HDRDIR = /usr/include/linux
140
141 X86 := $(shell if echo - | $(CC) -E -dM - | egrep -e '__i386__|__x86_64__' >/dev/null; \
142 then echo y; else echo n; fi)
143 @@ -14,8 +13,6 @@
144 BIN := $(EXES) ivtv-tune/ivtv-tune cx25840ctl/cx25840ctl
145
146
147 -HEADERS := linux/ivtv.h linux/ivtvfb.h
148 -
149 CFLAGS = -D_GNU_SOURCE -O2 -Wall -g -I.
150 CXXFLAGS = $(CFLAGS)
151
152 @@ -42,8 +39,6 @@
153 $(CC) -lpthread -o $@ $^
154
155 install: all
156 - install -d $(DESTDIR)/$(HDRDIR)
157 - install -m 0644 $(HEADERS) $(DESTDIR)/$(HDRDIR)
158 install -d $(DESTDIR)/$(BINDIR)
159 install -m 0755 $(BIN) $(DESTDIR)/$(BINDIR)