1
diff -ru -x *.o driver-orig/bttv.c driver/bttv.c
2
--- driver-orig/bttv.c Mon May 3 01:01:05 1999
3
+++ driver/bttv.c Wed Jun 2 00:39:18 1999
8
+#if LINUX_VERSION_CODE < 0x02017f
9
+static void schedule_timeout(int j)
11
+ current->state = TASK_INTERRUPTIBLE;
12
+ current->timeout = jiffies + j;
19
#include "videodev2.h"
24
+static void reset_vbi_seq(struct bttv *btv)
27
+ (*(u32 *)(btv->vbibuf + VBIBUF_SIZE - 4)) = 0;
30
+static void increment_vbi_seq(struct bttv *btv)
33
+ (*(u32 *)(btv->vbibuf + VBIBUF_SIZE - 4))++;
37
/* If Bt848a or Bt849, use PLL for PAL/SECAM and crystal for NTSC*/
39
/* Frequency = (F_input / PLL_X) * PLL_I.PLL_F/PLL_C
41
AUDIO_EXTERN : AUDIO_TUNER);
42
btaor(tvcards[btv->type].muxsel[input]>>4,
43
~tvcards[btv->type].gpiomask2, BT848_GPIO_DATA);
49
*(pe++)=FIX_BE(virt_to_bus(btv->risc_jmp+10));
50
DEBUG(printk(KERN_DEBUG "po: 0x%08x\n",(int)po));
51
DEBUG(printk(KERN_DEBUG "pe: 0x%08x\n",(int)pe));
58
i2c_control_device(&(btv->i2c), I2C_DRIVERID_TUNER,
59
TUNER_SET_RADIOFREQ,&fixme);
62
i2c_control_device(&(btv->i2c), I2C_DRIVERID_TUNER,
63
TUNER_SET_TVFREQ,&fixme);
66
btv->vbip=VBIBUF_SIZE;
68
bt848_set_risc_jmps(btv);
73
@@ -2746,6 +2773,13 @@
75
static int vbi_ioctl(struct video_device *dev, unsigned int cmd, void *arg)
80
+ return BTTV_VERSION_CODE;
89
bttv_ioctl((struct video_device *)btv,cmd,arg);
92
+ return BTTV_VERSION_CODE;
100
- /* inc vbi frame count for detecting drops */
101
- (*(u32 *)&(btv->vbibuf[VBIBUF_SIZE - 4]))++;
102
+ increment_vbi_seq(btv);
103
wake_up_interruptible(&btv->vbiq);
106
@@ -3961,6 +3996,7 @@
108
if (astat&BT848_INT_HLOCK)
110
+ reset_vbi_seq(btv);
111
if ((dstat&BT848_DSTATUS_HLOC) || (btv->radio))
112
audio(btv, AUDIO_ON);
114
@@ -4142,7 +4178,9 @@
116
unsigned char bus, devfn;
118
+#if defined(__powerpc__)
124
diff -ru -x *.o driver-orig/bttv.h driver/bttv.h
125
--- driver-orig/bttv.h Mon May 3 00:32:49 1999
126
+++ driver/bttv.h Tue Jun 1 22:20:48 1999
128
#define BTTV_BURST_OFF _IOR('v' , BASE_VIDIOCPRIVATE+5, int)
129
#define BTTV_VERSION _IOR('v' , BASE_VIDIOCPRIVATE+6, int)
130
#define BTTV_PICNR _IOR('v' , BASE_VIDIOCPRIVATE+7, int)
131
+#define BTTV_VBISIZE _IOR('v' , BASE_VIDIOCPRIVATE+8, int)
134
#define BTTV_UNKNOWN 0x00
135
diff -ru -x *.o driver-orig/msp3400.c driver/msp3400.c
136
--- driver-orig/msp3400.c Fri Apr 16 08:25:45 1999
137
+++ driver/msp3400.c Tue Jun 1 22:36:24 1999
141
#if LINUX_VERSION_CODE < 0x02017f
142
-void schedule_timeout(int j)
143
+static void schedule_timeout(int j)
145
current->timeout = jiffies + j;
147
diff -ru -x *.o driver-orig/tuner.c driver/tuner.c
148
--- driver-orig/tuner.c Sat May 1 01:29:08 1999
149
+++ driver/tuner.c Tue Jun 1 22:36:49 1999
153
#if LINUX_VERSION_CODE < 0x02017f
154
-void schedule_timeout(int j)
155
+static void schedule_timeout(int j)
157
current->state = TASK_INTERRUPTIBLE;
158
current->timeout = jiffies + j;
162
+#ifndef EXPORT_NO_SYMBOLS
163
+#define EXPORT_NO_SYMBOLS