]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/media/radio/radio-zoltrix.c
V4L/DVB (3770): Kill drivers/media/common/saa7146_vv_ksyms.c
[linux-2.6-omap-h63xx.git] / drivers / media / radio / radio-zoltrix.c
index 7bf1a4264891deca514dd6a5465497b46e02919d..8aceea0839808397e6a366f002789b8b8a7647c4 100644 (file)
@@ -1,7 +1,7 @@
 /* zoltrix radio plus driver for Linux radio support
  * (c) 1998 C. van Schaik <carl@leg.uct.ac.za>
  *
- * BUGS  
+ * BUGS
  *  Due to the inconsistency in reading from the signal flags
  *  it is difficult to get an accurate tuned signal.
  *
@@ -14,7 +14,7 @@
  *
  * 1999-05-06 - (C. van Schaik)
  *           - Make signal strength and stereo scans
- *             kinder to cpu while in delay
+ *             kinder to cpu while in delay
  * 1999-01-05 - (C. van Schaik)
  *           - Changed tuning to 1/160Mhz accuracy
  *           - Added stereo support
@@ -105,7 +105,7 @@ static int zol_setfreq(struct zol_device *dev, unsigned long freq)
        i = 45;
 
        mutex_lock(&dev->lock);
-       
+
        outb(0, io);
        outb(0, io);
        inb(io + 3);            /* Zoltrix needs to be read to confirm */
@@ -139,8 +139,8 @@ static int zol_setfreq(struct zol_device *dev, unsigned long freq)
        udelay(1000);
        inb(io+2);
 
-        udelay(1000);
-        
+       udelay(1000);
+
        if (dev->muted)
        {
                outb(0, io);
@@ -148,12 +148,12 @@ static int zol_setfreq(struct zol_device *dev, unsigned long freq)
                inb(io + 3);
                udelay(1000);
        }
-       
+
        mutex_unlock(&dev->lock);
-       
+
        if(!dev->muted)
        {
-               zol_setvol(dev, dev->curvol);
+               zol_setvol(dev, dev->curvol);
        }
        return 0;
 }
@@ -174,14 +174,14 @@ static int zol_getsigstr(struct zol_device *dev)
        b = inb(io);
 
        mutex_unlock(&dev->lock);
-       
+
        if (a != b)
                return (0);
 
-        if ((a == 0xcf) || (a == 0xdf)  /* I found this out by playing */
+       if ((a == 0xcf) || (a == 0xdf)  /* I found this out by playing */
                || (a == 0xef))       /* with a binary scanner on the card io */
                return (1);
-       return (0);
+       return (0);
 }
 
 static int zol_is_stereo (struct zol_device *dev)
@@ -189,7 +189,7 @@ static int zol_is_stereo (struct zol_device *dev)
        int x1, x2;
 
        mutex_lock(&dev->lock);
-       
+
        outb(0x00, io);
        outb(dev->curvol, io);
        msleep(20);
@@ -199,7 +199,7 @@ static int zol_is_stereo (struct zol_device *dev)
        x2 = inb(io);
 
        mutex_unlock(&dev->lock);
-       
+
        if ((x1 == x2) && (x1 == 0xcf))
                return 1;
        return 0;
@@ -226,7 +226,7 @@ static int zol_do_ioctl(struct inode *inode, struct file *file,
        case VIDIOCGTUNER:
                {
                        struct video_tuner *v = arg;
-                       if (v->tuner)   
+                       if (v->tuner)
                                return -EINVAL;
                        strcpy(v->name, "FM");
                        v->rangelow = (int) (88.0 * 16000);
@@ -351,7 +351,7 @@ static int __init zoltrix_init(void)
        printk(KERN_INFO "Zoltrix Radio Plus card driver.\n");
 
        mutex_init(&zoltrix_unit.lock);
-       
+
        /* mute card - prevents noisy bootups */
 
        /* this ensures that the volume is all the way down  */