18 #include <linux/module.h>
22 #include <linux/videodev2.h>
24 #include <linux/slab.h>
30 MODULE_AUTHOR(
"Russell Kroll, Quay Lu, Donald Song, Jason Lewis, Scott McGrath, William McGrath");
36 #ifndef CONFIG_RADIO_AZTECH_PORT
37 #define CONFIG_RADIO_AZTECH_PORT -1
45 static const int radio_wait_time = 1000;
57 static void send_0_byte(
struct aztech *az)
64 static void send_1_byte(
struct aztech *az)
88 for (i = 0; i < 13; i++)
124 if (
inb(isa->
io) & 1)
129 static int aztech_s_stereo(
struct radio_isa_card *isa,
bool stereo)
131 return aztech_s_frequency(isa, isa->
freq);
140 az->
curvol = (vol & 1) + ((vol & 2) << 1);
146 .alloc = aztech_alloc,
147 .s_mute_volume = aztech_s_mute_volume,
148 .s_frequency = aztech_s_frequency,
149 .s_stereo = aztech_s_stereo,
150 .g_rxsubchans = aztech_g_rxsubchans,
153 static const int aztech_ioports[] = { 0x350, 0x358 };
161 .name =
"radio-aztech",
165 .radio_nr_params = radio_nr,
166 .io_ports = aztech_ioports,
167 .num_of_io_ports =
ARRAY_SIZE(aztech_ioports),
169 .card =
"Aztech Radio",
175 static int __init aztech_init(
void)
180 static void __exit aztech_exit(
void)