blob: 9e824a7d5cc4de8f76aa08ec52a67c2f6b1fdcaf [file] [log] [blame]
Mauro Carvalho Chehab4286c6f2006-04-08 16:06:16 -03001/*
2 * Guillemot Maxi Radio FM 2000 PCI radio card driver for Linux
Linus Torvalds1da177e2005-04-16 15:20:36 -07003 * (C) 2001 Dimitromanolakis Apostolos <apdim@grecian.net>
4 *
5 * Based in the radio Maestro PCI driver. Actually it uses the same chip
6 * for radio but different pci controller.
7 *
8 * I didn't have any specs I reversed engineered the protocol from
Mauro Carvalho Chehab4286c6f2006-04-08 16:06:16 -03009 * the windows driver (radio.dll).
Linus Torvalds1da177e2005-04-16 15:20:36 -070010 *
11 * The card uses the TEA5757 chip that includes a search function but it
Mauro Carvalho Chehab4286c6f2006-04-08 16:06:16 -030012 * is useless as I haven't found any way to read back the frequency. If
Linus Torvalds1da177e2005-04-16 15:20:36 -070013 * anybody does please mail me.
14 *
15 * For the pdf file see:
16 * http://www.semiconductors.philips.com/pip/TEA5757H/V1
17 *
18 *
19 * CHANGES:
20 * 0.75b
21 * - better pci interface thanks to Francois Romieu <romieu@cogenit.fr>
22 *
Mauro Carvalho Chehabe84fef62006-08-08 09:10:05 -030023 * 0.75 Sun Feb 4 22:51:27 EET 2001
Linus Torvalds1da177e2005-04-16 15:20:36 -070024 * - tiding up
25 * - removed support for multiple devices as it didn't work anyway
26 *
Mauro Carvalho Chehab4286c6f2006-04-08 16:06:16 -030027 * BUGS:
Linus Torvalds1da177e2005-04-16 15:20:36 -070028 * - card unmutes if you change frequency
29 *
Mauro Carvalho Chehab06470ed2007-01-25 09:04:34 -030030 * (c) 2006, 2007 by Mauro Carvalho Chehab <mchehab@infradead.org>:
31 * - Conversion to V4L2 API
32 * - Uses video_ioctl2 for parsing and to add debug support
Linus Torvalds1da177e2005-04-16 15:20:36 -070033 */
34
35
36#include <linux/module.h>
37#include <linux/init.h>
38#include <linux/ioport.h>
39#include <linux/delay.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070040#include <asm/io.h>
41#include <asm/uaccess.h>
Ingo Molnar3593cab2006-02-07 06:49:14 -020042#include <linux/mutex.h>
43
Linus Torvalds1da177e2005-04-16 15:20:36 -070044#include <linux/pci.h>
Mauro Carvalho Chehabe84fef62006-08-08 09:10:05 -030045#include <linux/videodev2.h>
Mauro Carvalho Chehab5e87efa2006-06-05 10:26:32 -030046#include <media/v4l2-common.h>
Hans Verkuil35ea11f2008-07-20 08:12:02 -030047#include <media/v4l2-ioctl.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070048
Mauro Carvalho Chehabf1557ce2007-01-26 07:23:44 -030049#define DRIVER_VERSION "0.77"
Mauro Carvalho Chehabe84fef62006-08-08 09:10:05 -030050
51#include <linux/version.h> /* for KERNEL_VERSION MACRO */
Mauro Carvalho Chehabf1557ce2007-01-26 07:23:44 -030052#define RADIO_VERSION KERNEL_VERSION(0,7,7)
53
54static struct video_device maxiradio_radio;
55
56#define dprintk(num, fmt, arg...) \
57 do { \
58 if (maxiradio_radio.debug >= num) \
59 printk(KERN_DEBUG "%s: " fmt, \
60 maxiradio_radio.name, ## arg); } while (0)
Mauro Carvalho Chehabe84fef62006-08-08 09:10:05 -030061
62static struct v4l2_queryctrl radio_qctrl[] = {
63 {
64 .id = V4L2_CID_AUDIO_MUTE,
65 .name = "Mute",
66 .minimum = 0,
67 .maximum = 1,
68 .default_value = 1,
69 .type = V4L2_CTRL_TYPE_BOOLEAN,
70 }
71};
Linus Torvalds1da177e2005-04-16 15:20:36 -070072
73#ifndef PCI_VENDOR_ID_GUILLEMOT
74#define PCI_VENDOR_ID_GUILLEMOT 0x5046
75#endif
76
77#ifndef PCI_DEVICE_ID_GUILLEMOT
78#define PCI_DEVICE_ID_GUILLEMOT_MAXIRADIO 0x1001
79#endif
80
81
82/* TEA5757 pin mappings */
83static const int clk = 1, data = 2, wren = 4, mo_st = 8, power = 16 ;
84
85static int radio_nr = -1;
86module_param(radio_nr, int, 0);
87
88
89#define FREQ_LO 50*16000
90#define FREQ_HI 150*16000
91
92#define FREQ_IF 171200 /* 10.7*16000 */
93#define FREQ_STEP 200 /* 12.5*16 */
94
Mauro Carvalho Chehabf1557ce2007-01-26 07:23:44 -030095/* (x==fmhz*16*1000) -> bits */
96#define FREQ2BITS(x) ((( (unsigned int)(x)+FREQ_IF+(FREQ_STEP<<1)) \
97 /(FREQ_STEP<<2))<<2)
Linus Torvalds1da177e2005-04-16 15:20:36 -070098
99#define BITS2FREQ(x) ((x) * FREQ_STEP - FREQ_IF)
100
101
Arjan van de Venfa027c22007-02-12 00:55:33 -0800102static const struct file_operations maxiradio_fops = {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700103 .owner = THIS_MODULE,
104 .open = video_exclusive_open,
105 .release = video_exclusive_release,
Mauro Carvalho Chehab06470ed2007-01-25 09:04:34 -0300106 .ioctl = video_ioctl2,
Douglas Schilling Landgraf078ff792008-04-22 14:46:11 -0300107#ifdef CONFIG_COMPAT
Arnd Bergmann0d0fbf82006-01-09 15:24:57 -0200108 .compat_ioctl = v4l_compat_ioctl32,
Douglas Schilling Landgraf078ff792008-04-22 14:46:11 -0300109#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -0700110 .llseek = no_llseek,
111};
Linus Torvalds1da177e2005-04-16 15:20:36 -0700112
113static struct radio_device
114{
115 __u16 io, /* base of radio io */
116 muted, /* VIDEO_AUDIO_MUTE */
Mauro Carvalho Chehab4286c6f2006-04-08 16:06:16 -0300117 stereo, /* VIDEO_TUNER_STEREO_ON */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700118 tuned; /* signal strength (0 or 0xffff) */
Mauro Carvalho Chehab4286c6f2006-04-08 16:06:16 -0300119
Linus Torvalds1da177e2005-04-16 15:20:36 -0700120 unsigned long freq;
Mauro Carvalho Chehab4286c6f2006-04-08 16:06:16 -0300121
Ingo Molnar3593cab2006-02-07 06:49:14 -0200122 struct mutex lock;
Mauro Carvalho Chehab712642b2007-01-26 07:33:07 -0300123} radio_unit = {
124 .muted =1,
125 .freq = FREQ_LO,
126};
Linus Torvalds1da177e2005-04-16 15:20:36 -0700127
128static void outbit(unsigned long bit, __u16 io)
129{
Mauro Carvalho Chehabf1557ce2007-01-26 07:23:44 -0300130 if (bit != 0)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700131 {
132 outb( power|wren|data ,io); udelay(4);
133 outb( power|wren|data|clk ,io); udelay(4);
134 outb( power|wren|data ,io); udelay(4);
135 }
Mauro Carvalho Chehab4286c6f2006-04-08 16:06:16 -0300136 else
Linus Torvalds1da177e2005-04-16 15:20:36 -0700137 {
138 outb( power|wren ,io); udelay(4);
139 outb( power|wren|clk ,io); udelay(4);
140 outb( power|wren ,io); udelay(4);
141 }
142}
143
144static void turn_power(__u16 io, int p)
145{
Mauro Carvalho Chehabf1557ce2007-01-26 07:23:44 -0300146 if (p != 0) {
147 dprintk(1, "Radio powered on\n");
148 outb(power, io);
149 } else {
150 dprintk(1, "Radio powered off\n");
151 outb(0,io);
152 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700153}
154
Mauro Carvalho Chehabf1557ce2007-01-26 07:23:44 -0300155static void set_freq(__u16 io, __u32 freq)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700156{
157 unsigned long int si;
158 int bl;
Mauro Carvalho Chehabf1557ce2007-01-26 07:23:44 -0300159 int data = FREQ2BITS(freq);
Mauro Carvalho Chehab4286c6f2006-04-08 16:06:16 -0300160
Linus Torvalds1da177e2005-04-16 15:20:36 -0700161 /* TEA5757 shift register bits (see pdf) */
162
Mauro Carvalho Chehab4286c6f2006-04-08 16:06:16 -0300163 outbit(0,io); // 24 search
Linus Torvalds1da177e2005-04-16 15:20:36 -0700164 outbit(1,io); // 23 search up/down
Mauro Carvalho Chehab4286c6f2006-04-08 16:06:16 -0300165
Linus Torvalds1da177e2005-04-16 15:20:36 -0700166 outbit(0,io); // 22 stereo/mono
167
168 outbit(0,io); // 21 band
169 outbit(0,io); // 20 band (only 00=FM works I think)
170
171 outbit(0,io); // 19 port ?
172 outbit(0,io); // 18 port ?
Mauro Carvalho Chehab4286c6f2006-04-08 16:06:16 -0300173
Linus Torvalds1da177e2005-04-16 15:20:36 -0700174 outbit(0,io); // 17 search level
175 outbit(0,io); // 16 search level
Mauro Carvalho Chehab4286c6f2006-04-08 16:06:16 -0300176
Linus Torvalds1da177e2005-04-16 15:20:36 -0700177 si = 0x8000;
Mauro Carvalho Chehabf1557ce2007-01-26 07:23:44 -0300178 for (bl = 1; bl <= 16 ; bl++) {
179 outbit(data & si,io);
180 si >>=1;
181 }
Mauro Carvalho Chehab4286c6f2006-04-08 16:06:16 -0300182
Mauro Carvalho Chehabf1557ce2007-01-26 07:23:44 -0300183 dprintk(1, "Radio freq set to %d.%02d MHz\n",
184 freq / 16000,
185 freq % 16000 * 100 / 16000);
186
187 turn_power(io, 1);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700188}
189
190static int get_stereo(__u16 io)
Mauro Carvalho Chehab4286c6f2006-04-08 16:06:16 -0300191{
Mauro Carvalho Chehabf1557ce2007-01-26 07:23:44 -0300192 outb(power,io);
193 udelay(4);
194
Linus Torvalds1da177e2005-04-16 15:20:36 -0700195 return !(inb(io) & mo_st);
196}
197
198static int get_tune(__u16 io)
Mauro Carvalho Chehab4286c6f2006-04-08 16:06:16 -0300199{
Mauro Carvalho Chehabf1557ce2007-01-26 07:23:44 -0300200 outb(power+clk,io);
201 udelay(4);
202
Linus Torvalds1da177e2005-04-16 15:20:36 -0700203 return !(inb(io) & mo_st);
204}
205
206
Mauro Carvalho Chehab06470ed2007-01-25 09:04:34 -0300207static int vidioc_querycap (struct file *file, void *priv,
208 struct v4l2_capability *v)
209{
210 strlcpy(v->driver, "radio-maxiradio", sizeof (v->driver));
211 strlcpy(v->card, "Maxi Radio FM2000 radio", sizeof (v->card));
212 sprintf(v->bus_info,"ISA");
213 v->version = RADIO_VERSION;
214 v->capabilities = V4L2_CAP_TUNER;
215
216 return 0;
217}
218
219static int vidioc_g_tuner (struct file *file, void *priv,
220 struct v4l2_tuner *v)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700221{
222 struct video_device *dev = video_devdata(file);
223 struct radio_device *card=dev->priv;
224
Mauro Carvalho Chehab06470ed2007-01-25 09:04:34 -0300225 if (v->index > 0)
226 return -EINVAL;
Mauro Carvalho Chehabe84fef62006-08-08 09:10:05 -0300227
Mauro Carvalho Chehab06470ed2007-01-25 09:04:34 -0300228 memset(v,0,sizeof(*v));
229 strcpy(v->name, "FM");
230 v->type = V4L2_TUNER_RADIO;
231
232 v->rangelow=FREQ_LO;
233 v->rangehigh=FREQ_HI;
234 v->rxsubchans =V4L2_TUNER_SUB_MONO|V4L2_TUNER_SUB_STEREO;
235 v->capability=V4L2_TUNER_CAP_LOW;
236 if(get_stereo(card->io))
237 v->audmode = V4L2_TUNER_MODE_STEREO;
238 else
239 v->audmode = V4L2_TUNER_MODE_MONO;
240 v->signal=0xffff*get_tune(card->io);
241
242 return 0;
243}
244
245static int vidioc_s_tuner (struct file *file, void *priv,
246 struct v4l2_tuner *v)
247{
248 if (v->index > 0)
249 return -EINVAL;
250
251 return 0;
252}
253
Mauro Carvalho Chehab140dcc42007-01-25 15:00:45 -0300254static int vidioc_g_audio (struct file *file, void *priv,
255 struct v4l2_audio *a)
256{
257 if (a->index > 1)
258 return -EINVAL;
259
Mauro Carvalho Chehabb61f8d62007-01-26 07:07:12 -0300260 strcpy(a->name, "FM");
Mauro Carvalho Chehab140dcc42007-01-25 15:00:45 -0300261 a->capability = V4L2_AUDCAP_STEREO;
262 return 0;
263}
264
Mauro Carvalho Chehaba0c05ab2007-01-25 16:48:13 -0300265static int vidioc_g_input(struct file *filp, void *priv, unsigned int *i)
266{
267 *i = 0;
Mauro Carvalho Chehabf1557ce2007-01-26 07:23:44 -0300268
Mauro Carvalho Chehaba0c05ab2007-01-25 16:48:13 -0300269 return 0;
270}
271
272static int vidioc_s_input(struct file *filp, void *priv, unsigned int i)
273{
274 if (i != 0)
275 return -EINVAL;
Mauro Carvalho Chehabf1557ce2007-01-26 07:23:44 -0300276
Mauro Carvalho Chehaba0c05ab2007-01-25 16:48:13 -0300277 return 0;
278}
279
280
Mauro Carvalho Chehab140dcc42007-01-25 15:00:45 -0300281static int vidioc_s_audio (struct file *file, void *priv,
282 struct v4l2_audio *a)
283{
284 if (a->index != 0)
285 return -EINVAL;
286
287 return 0;
288}
289
Mauro Carvalho Chehab06470ed2007-01-25 09:04:34 -0300290static int vidioc_s_frequency (struct file *file, void *priv,
291 struct v4l2_frequency *f)
292{
293 struct video_device *dev = video_devdata(file);
294 struct radio_device *card=dev->priv;
295
Mauro Carvalho Chehabf1557ce2007-01-26 07:23:44 -0300296 if (f->frequency < FREQ_LO || f->frequency > FREQ_HI) {
297 dprintk(1, "radio freq (%d.%02d MHz) out of range (%d-%d)\n",
298 f->frequency / 16000,
299 f->frequency % 16000 * 100 / 16000,
300 FREQ_LO / 16000, FREQ_HI / 16000);
301
Mauro Carvalho Chehab06470ed2007-01-25 09:04:34 -0300302 return -EINVAL;
Mauro Carvalho Chehabf1557ce2007-01-26 07:23:44 -0300303 }
Mauro Carvalho Chehab06470ed2007-01-25 09:04:34 -0300304
305 card->freq = f->frequency;
Mauro Carvalho Chehabf1557ce2007-01-26 07:23:44 -0300306 set_freq(card->io, card->freq);
Mauro Carvalho Chehab06470ed2007-01-25 09:04:34 -0300307 msleep(125);
308
309 return 0;
310}
311
312static int vidioc_g_frequency (struct file *file, void *priv,
313 struct v4l2_frequency *f)
314{
315 struct video_device *dev = video_devdata(file);
316 struct radio_device *card=dev->priv;
317
318 f->type = V4L2_TUNER_RADIO;
319 f->frequency = card->freq;
320
Mauro Carvalho Chehabf1557ce2007-01-26 07:23:44 -0300321 dprintk(4, "radio freq is %d.%02d MHz",
322 f->frequency / 16000,
323 f->frequency % 16000 * 100 / 16000);
324
Mauro Carvalho Chehab06470ed2007-01-25 09:04:34 -0300325 return 0;
326}
327
328static int vidioc_queryctrl (struct file *file, void *priv,
329 struct v4l2_queryctrl *qc)
330{
331 int i;
332
333 for (i = 0; i < ARRAY_SIZE(radio_qctrl); i++) {
334 if (qc->id && qc->id == radio_qctrl[i].id) {
335 memcpy(qc, &(radio_qctrl[i]), sizeof(*qc));
336 return (0);
Mauro Carvalho Chehabe84fef62006-08-08 09:10:05 -0300337 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700338 }
Mauro Carvalho Chehabf1557ce2007-01-26 07:23:44 -0300339
Mauro Carvalho Chehab06470ed2007-01-25 09:04:34 -0300340 return -EINVAL;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700341}
342
Mauro Carvalho Chehab06470ed2007-01-25 09:04:34 -0300343static int vidioc_g_ctrl (struct file *file, void *priv,
344 struct v4l2_control *ctrl)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700345{
346 struct video_device *dev = video_devdata(file);
347 struct radio_device *card=dev->priv;
Mauro Carvalho Chehab4286c6f2006-04-08 16:06:16 -0300348
Mauro Carvalho Chehab06470ed2007-01-25 09:04:34 -0300349 switch (ctrl->id) {
350 case V4L2_CID_AUDIO_MUTE:
351 ctrl->value=card->muted;
352 return (0);
353 }
Mauro Carvalho Chehabf1557ce2007-01-26 07:23:44 -0300354
Mauro Carvalho Chehab06470ed2007-01-25 09:04:34 -0300355 return -EINVAL;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700356}
357
Mauro Carvalho Chehab06470ed2007-01-25 09:04:34 -0300358static int vidioc_s_ctrl (struct file *file, void *priv,
359 struct v4l2_control *ctrl)
360{
361 struct video_device *dev = video_devdata(file);
362 struct radio_device *card=dev->priv;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700363
Mauro Carvalho Chehab06470ed2007-01-25 09:04:34 -0300364 switch (ctrl->id) {
365 case V4L2_CID_AUDIO_MUTE:
366 card->muted = ctrl->value;
367 if(card->muted)
368 turn_power(card->io, 0);
369 else
Mauro Carvalho Chehabf1557ce2007-01-26 07:23:44 -0300370 set_freq(card->io, card->freq);
Mauro Carvalho Chehab06470ed2007-01-25 09:04:34 -0300371 return 0;
372 }
Mauro Carvalho Chehabf1557ce2007-01-26 07:23:44 -0300373
Mauro Carvalho Chehab06470ed2007-01-25 09:04:34 -0300374 return -EINVAL;
375}
376
377static struct video_device maxiradio_radio =
378{
379 .owner = THIS_MODULE,
380 .name = "Maxi Radio FM2000 radio",
381 .type = VID_TYPE_TUNER,
382 .fops = &maxiradio_fops,
383
384 .vidioc_querycap = vidioc_querycap,
385 .vidioc_g_tuner = vidioc_g_tuner,
386 .vidioc_s_tuner = vidioc_s_tuner,
Mauro Carvalho Chehab140dcc42007-01-25 15:00:45 -0300387 .vidioc_g_audio = vidioc_g_audio,
388 .vidioc_s_audio = vidioc_s_audio,
Mauro Carvalho Chehaba0c05ab2007-01-25 16:48:13 -0300389 .vidioc_g_input = vidioc_g_input,
390 .vidioc_s_input = vidioc_s_input,
Mauro Carvalho Chehab06470ed2007-01-25 09:04:34 -0300391 .vidioc_g_frequency = vidioc_g_frequency,
392 .vidioc_s_frequency = vidioc_s_frequency,
393 .vidioc_queryctrl = vidioc_queryctrl,
394 .vidioc_g_ctrl = vidioc_g_ctrl,
395 .vidioc_s_ctrl = vidioc_s_ctrl,
Mauro Carvalho Chehab06470ed2007-01-25 09:04:34 -0300396};
Linus Torvalds1da177e2005-04-16 15:20:36 -0700397
398static int __devinit maxiradio_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
399{
400 if(!request_region(pci_resource_start(pdev, 0),
Mauro Carvalho Chehab4286c6f2006-04-08 16:06:16 -0300401 pci_resource_len(pdev, 0), "Maxi Radio FM 2000")) {
402 printk(KERN_ERR "radio-maxiradio: can't reserve I/O ports\n");
403 goto err_out;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700404 }
405
406 if (pci_enable_device(pdev))
Mauro Carvalho Chehab4286c6f2006-04-08 16:06:16 -0300407 goto err_out_free_region;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700408
409 radio_unit.io = pci_resource_start(pdev, 0);
Ingo Molnar3593cab2006-02-07 06:49:14 -0200410 mutex_init(&radio_unit.lock);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700411 maxiradio_radio.priv = &radio_unit;
412
Mauro Carvalho Chehab712642b2007-01-26 07:33:07 -0300413 if (video_register_device(&maxiradio_radio, VFL_TYPE_RADIO, radio_nr)==-1) {
Mauro Carvalho Chehab4286c6f2006-04-08 16:06:16 -0300414 printk("radio-maxiradio: can't register device!");
415 goto err_out_free_region;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700416 }
417
418 printk(KERN_INFO "radio-maxiradio: version "
419 DRIVER_VERSION
420 " time "
421 __TIME__ " "
422 __DATE__
423 "\n");
424
425 printk(KERN_INFO "radio-maxiradio: found Guillemot MAXI Radio device (io = 0x%x)\n",
426 radio_unit.io);
427 return 0;
428
429err_out_free_region:
430 release_region(pci_resource_start(pdev, 0), pci_resource_len(pdev, 0));
431err_out:
432 return -ENODEV;
433}
434
435static void __devexit maxiradio_remove_one(struct pci_dev *pdev)
436{
437 video_unregister_device(&maxiradio_radio);
438 release_region(pci_resource_start(pdev, 0), pci_resource_len(pdev, 0));
439}
440
441static struct pci_device_id maxiradio_pci_tbl[] = {
442 { PCI_VENDOR_ID_GUILLEMOT, PCI_DEVICE_ID_GUILLEMOT_MAXIRADIO,
443 PCI_ANY_ID, PCI_ANY_ID, },
444 { 0,}
445};
446
447MODULE_DEVICE_TABLE(pci, maxiradio_pci_tbl);
448
449static struct pci_driver maxiradio_driver = {
450 .name = "radio-maxiradio",
451 .id_table = maxiradio_pci_tbl,
452 .probe = maxiradio_init_one,
453 .remove = __devexit_p(maxiradio_remove_one),
454};
455
456static int __init maxiradio_radio_init(void)
457{
Richard Knutsson9bfab8c2005-11-30 00:59:34 +0100458 return pci_register_driver(&maxiradio_driver);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700459}
460
461static void __exit maxiradio_radio_exit(void)
462{
463 pci_unregister_driver(&maxiradio_driver);
464}
465
466module_init(maxiradio_radio_init);
467module_exit(maxiradio_radio_exit);
Mauro Carvalho Chehab06470ed2007-01-25 09:04:34 -0300468
469MODULE_AUTHOR("Dimitromanolakis Apostolos, apdim@grecian.net");
470MODULE_DESCRIPTION("Radio driver for the Guillemot Maxi Radio FM2000 radio.");
471MODULE_LICENSE("GPL");
472
473module_param_named(debug,maxiradio_radio.debug, int, 0644);
474MODULE_PARM_DESC(debug,"activates debug info");