Update of /cvsroot/alsa/alsa-driver/i2c/other
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20878

Modified Files:
        tea575x-tuner.patch 
Log Message:
- fixed the compilation with older 2.2/2.4 kernels
  (missing video_get/set_drvdata()).



Index: tea575x-tuner.patch
===================================================================
RCS file: /cvsroot/alsa/alsa-driver/i2c/other/tea575x-tuner.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- tea575x-tuner.patch 29 Jan 2004 12:48:24 -0000      1.1
+++ tea575x-tuner.patch 31 Jan 2004 12:15:14 -0000      1.2
@@ -1,6 +1,26 @@
---- tea575x-tuner.c.old        2004-01-29 13:36:27.000000000 +0100
-+++ tea575x-tuner.c    2004-01-29 13:35:29.000000000 +0100
-@@ -85,10 +85,27 @@
+--- tea575x-tuner.c.old        2004-01-30 12:25:34.000000000 +0100
++++ tea575x-tuner.c    2004-01-30 23:23:05.000000000 +0100
+@@ -54,6 +54,19 @@
+ #define TEA575X_BIT_DUMMY     (1<<15)         /* buffer */
+ #define TEA575X_BIT_FREQ_MASK 0x7fff
+ 
++#ifndef CONFIG_HAVE_VIDEO_GET_DRVDATA
++/* helper functions to access driver private data. */
++static inline void *video_get_drvdata(struct video_device *dev)
++{
++      return dev->priv;
++}
++
++static inline void video_set_drvdata(struct video_device *dev, void *data)
++{
++      dev->priv = data;
++}
++#endif
++
+ /*
+  * lowlevel part
+  */
+@@ -85,10 +98,27 @@
   * Linux Video interface
   */
  
@@ -28,7 +48,7 @@
        tea575x_t *tea = video_get_drvdata(dev);
        
        switch(cmd) {
-@@ -167,11 +184,13 @@
+@@ -167,11 +197,13 @@
        }
  }
  
@@ -42,7 +62,7 @@
  
  /*
   * initialize all the tea575x chips
-@@ -192,11 +211,17 @@
+@@ -192,11 +224,17 @@
        tea->vd.type = VID_TYPE_TUNER;
        tea->vd.hardware = VID_HARDWARE_RTRACK; /* FIXME: assign new number */
        video_set_drvdata(&tea->vd, tea);



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Alsa-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-cvslog

Reply via email to