diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-04-08 15:06:16 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-06-25 00:57:53 -0400 |
commit | 4286c6f65ec01efa8f5108cadea402ecf3b12279 (patch) | |
tree | 080fc6a8f55f0ed1c9b06b5ee8421225ebe21b5b /drivers/media/radio/radio-zoltrix.c | |
parent | dcdda65fd5e70a698dd3d7e65762e178290284b7 (diff) |
V4L/DVB (3753): Whitespace cleanups at media/radio
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/radio/radio-zoltrix.c')
-rw-r--r-- | drivers/media/radio/radio-zoltrix.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/drivers/media/radio/radio-zoltrix.c b/drivers/media/radio/radio-zoltrix.c index 7bf1a4264891..8aceea083980 100644 --- a/drivers/media/radio/radio-zoltrix.c +++ b/drivers/media/radio/radio-zoltrix.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* zoltrix radio plus driver for Linux radio support | 1 | /* zoltrix radio plus driver for Linux radio support |
2 | * (c) 1998 C. van Schaik <carl@leg.uct.ac.za> | 2 | * (c) 1998 C. van Schaik <carl@leg.uct.ac.za> |
3 | * | 3 | * |
4 | * BUGS | 4 | * BUGS |
5 | * Due to the inconsistency in reading from the signal flags | 5 | * Due to the inconsistency in reading from the signal flags |
6 | * it is difficult to get an accurate tuned signal. | 6 | * it is difficult to get an accurate tuned signal. |
7 | * | 7 | * |
@@ -14,7 +14,7 @@ | |||
14 | * | 14 | * |
15 | * 1999-05-06 - (C. van Schaik) | 15 | * 1999-05-06 - (C. van Schaik) |
16 | * - Make signal strength and stereo scans | 16 | * - Make signal strength and stereo scans |
17 | * kinder to cpu while in delay | 17 | * kinder to cpu while in delay |
18 | * 1999-01-05 - (C. van Schaik) | 18 | * 1999-01-05 - (C. van Schaik) |
19 | * - Changed tuning to 1/160Mhz accuracy | 19 | * - Changed tuning to 1/160Mhz accuracy |
20 | * - Added stereo support | 20 | * - Added stereo support |
@@ -105,7 +105,7 @@ static int zol_setfreq(struct zol_device *dev, unsigned long freq) | |||
105 | i = 45; | 105 | i = 45; |
106 | 106 | ||
107 | mutex_lock(&dev->lock); | 107 | mutex_lock(&dev->lock); |
108 | 108 | ||
109 | outb(0, io); | 109 | outb(0, io); |
110 | outb(0, io); | 110 | outb(0, io); |
111 | inb(io + 3); /* Zoltrix needs to be read to confirm */ | 111 | 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) | |||
139 | udelay(1000); | 139 | udelay(1000); |
140 | inb(io+2); | 140 | inb(io+2); |
141 | 141 | ||
142 | udelay(1000); | 142 | udelay(1000); |
143 | 143 | ||
144 | if (dev->muted) | 144 | if (dev->muted) |
145 | { | 145 | { |
146 | outb(0, io); | 146 | outb(0, io); |
@@ -148,12 +148,12 @@ static int zol_setfreq(struct zol_device *dev, unsigned long freq) | |||
148 | inb(io + 3); | 148 | inb(io + 3); |
149 | udelay(1000); | 149 | udelay(1000); |
150 | } | 150 | } |
151 | 151 | ||
152 | mutex_unlock(&dev->lock); | 152 | mutex_unlock(&dev->lock); |
153 | 153 | ||
154 | if(!dev->muted) | 154 | if(!dev->muted) |
155 | { | 155 | { |
156 | zol_setvol(dev, dev->curvol); | 156 | zol_setvol(dev, dev->curvol); |
157 | } | 157 | } |
158 | return 0; | 158 | return 0; |
159 | } | 159 | } |
@@ -174,14 +174,14 @@ static int zol_getsigstr(struct zol_device *dev) | |||
174 | b = inb(io); | 174 | b = inb(io); |
175 | 175 | ||
176 | mutex_unlock(&dev->lock); | 176 | mutex_unlock(&dev->lock); |
177 | 177 | ||
178 | if (a != b) | 178 | if (a != b) |
179 | return (0); | 179 | return (0); |
180 | 180 | ||
181 | if ((a == 0xcf) || (a == 0xdf) /* I found this out by playing */ | 181 | if ((a == 0xcf) || (a == 0xdf) /* I found this out by playing */ |
182 | || (a == 0xef)) /* with a binary scanner on the card io */ | 182 | || (a == 0xef)) /* with a binary scanner on the card io */ |
183 | return (1); | 183 | return (1); |
184 | return (0); | 184 | return (0); |
185 | } | 185 | } |
186 | 186 | ||
187 | static int zol_is_stereo (struct zol_device *dev) | 187 | static int zol_is_stereo (struct zol_device *dev) |
@@ -189,7 +189,7 @@ static int zol_is_stereo (struct zol_device *dev) | |||
189 | int x1, x2; | 189 | int x1, x2; |
190 | 190 | ||
191 | mutex_lock(&dev->lock); | 191 | mutex_lock(&dev->lock); |
192 | 192 | ||
193 | outb(0x00, io); | 193 | outb(0x00, io); |
194 | outb(dev->curvol, io); | 194 | outb(dev->curvol, io); |
195 | msleep(20); | 195 | msleep(20); |
@@ -199,7 +199,7 @@ static int zol_is_stereo (struct zol_device *dev) | |||
199 | x2 = inb(io); | 199 | x2 = inb(io); |
200 | 200 | ||
201 | mutex_unlock(&dev->lock); | 201 | mutex_unlock(&dev->lock); |
202 | 202 | ||
203 | if ((x1 == x2) && (x1 == 0xcf)) | 203 | if ((x1 == x2) && (x1 == 0xcf)) |
204 | return 1; | 204 | return 1; |
205 | return 0; | 205 | return 0; |
@@ -226,7 +226,7 @@ static int zol_do_ioctl(struct inode *inode, struct file *file, | |||
226 | case VIDIOCGTUNER: | 226 | case VIDIOCGTUNER: |
227 | { | 227 | { |
228 | struct video_tuner *v = arg; | 228 | struct video_tuner *v = arg; |
229 | if (v->tuner) | 229 | if (v->tuner) |
230 | return -EINVAL; | 230 | return -EINVAL; |
231 | strcpy(v->name, "FM"); | 231 | strcpy(v->name, "FM"); |
232 | v->rangelow = (int) (88.0 * 16000); | 232 | v->rangelow = (int) (88.0 * 16000); |
@@ -351,7 +351,7 @@ static int __init zoltrix_init(void) | |||
351 | printk(KERN_INFO "Zoltrix Radio Plus card driver.\n"); | 351 | printk(KERN_INFO "Zoltrix Radio Plus card driver.\n"); |
352 | 352 | ||
353 | mutex_init(&zoltrix_unit.lock); | 353 | mutex_init(&zoltrix_unit.lock); |
354 | 354 | ||
355 | /* mute card - prevents noisy bootups */ | 355 | /* mute card - prevents noisy bootups */ |
356 | 356 | ||
357 | /* this ensures that the volume is all the way down */ | 357 | /* this ensures that the volume is all the way down */ |