13 #include <linux/module.h>
17 #include <linux/videodev2.h>
20 #include <linux/slab.h>
30 #ifndef CONFIG_RADIO_RTRACK2_PORT
31 #define CONFIG_RADIO_RTRACK2_PORT -1
68 freq = freq / 200 + 856;
74 for (i = 0; i < 10; i++)
77 for (i = 14; i >= 0; i--)
92 return (
inb(isa->
io) & 2) ? 0 : 0xffff;
102 .
alloc = rtrack2_alloc,
103 .s_mute_volume = rtrack2_s_mute_volume,
104 .s_frequency = rtrack2_s_frequency,
105 .g_signal = rtrack2_g_signal,
108 static const int rtrack2_ioports[] = { 0x20f, 0x30f };
116 .name =
"radio-rtrack2",
120 .radio_nr_params = radio_nr,
121 .io_ports = rtrack2_ioports,
122 .num_of_io_ports =
ARRAY_SIZE(rtrack2_ioports),
124 .card =
"AIMSlab RadioTrack II",
129 static int __init rtrack2_init(
void)
134 static void __exit rtrack2_exit(
void)