Lines Matching full:isa
33 * Converted to the radio-isa framework by Hans Verkuil <hans.verkuil@cisco.com>
52 #include "radio-isa.h"
75 struct radio_isa_card isa; member
84 return zol ? &zol->isa : NULL; in zoltrix_alloc()
87 static int zoltrix_s_mute_volume(struct radio_isa_card *isa, bool mute, int vol) in zoltrix_s_mute_volume() argument
89 struct zoltrix *zol = container_of(isa, struct zoltrix, isa); in zoltrix_s_mute_volume()
94 outb(0, isa->io); in zoltrix_s_mute_volume()
95 outb(0, isa->io); in zoltrix_s_mute_volume()
96 inb(isa->io + 3); /* Zoltrix needs to be read to confirm */ in zoltrix_s_mute_volume()
100 outb(vol - 1, isa->io); in zoltrix_s_mute_volume()
102 inb(isa->io + 2); in zoltrix_s_mute_volume()
107 static int zoltrix_s_frequency(struct radio_isa_card *isa, u32 freq) in zoltrix_s_frequency() argument
109 struct zoltrix *zol = container_of(isa, struct zoltrix, isa); in zoltrix_s_frequency()
110 struct v4l2_device *v4l2_dev = &isa->v4l2_dev; in zoltrix_s_frequency()
112 bool stereo = isa->stereo; in zoltrix_s_frequency()
126 outb(0, isa->io); in zoltrix_s_frequency()
127 outb(0, isa->io); in zoltrix_s_frequency()
128 inb(isa->io + 3); /* Zoltrix needs to be read to confirm */ in zoltrix_s_frequency()
130 outb(0x40, isa->io); in zoltrix_s_frequency()
131 outb(0xc0, isa->io); in zoltrix_s_frequency()
136 outb(0x80, isa->io); in zoltrix_s_frequency()
138 outb(0x00, isa->io); in zoltrix_s_frequency()
140 outb(0x80, isa->io); in zoltrix_s_frequency()
143 outb(0xc0, isa->io); in zoltrix_s_frequency()
145 outb(0x40, isa->io); in zoltrix_s_frequency()
147 outb(0xc0, isa->io); in zoltrix_s_frequency()
153 outb(0x80, isa->io); in zoltrix_s_frequency()
154 outb(0xc0, isa->io); in zoltrix_s_frequency()
155 outb(0x40, isa->io); in zoltrix_s_frequency()
157 inb(isa->io + 2); in zoltrix_s_frequency()
160 return zoltrix_s_mute_volume(isa, zol->muted, zol->curvol); in zoltrix_s_frequency()
164 static u32 zoltrix_g_rxsubchans(struct radio_isa_card *isa) in zoltrix_g_rxsubchans() argument
166 struct zoltrix *zol = container_of(isa, struct zoltrix, isa); in zoltrix_g_rxsubchans()
169 outb(0x00, isa->io); /* This stuff I found to do nothing */ in zoltrix_g_rxsubchans()
170 outb(zol->curvol, isa->io); in zoltrix_g_rxsubchans()
173 a = inb(isa->io); in zoltrix_g_rxsubchans()
175 b = inb(isa->io); in zoltrix_g_rxsubchans()
181 static u32 zoltrix_g_signal(struct radio_isa_card *isa) in zoltrix_g_signal() argument
183 struct zoltrix *zol = container_of(isa, struct zoltrix, isa); in zoltrix_g_signal()
186 outb(0x00, isa->io); /* This stuff I found to do nothing */ in zoltrix_g_signal()
187 outb(zol->curvol, isa->io); in zoltrix_g_signal()
190 a = inb(isa->io); in zoltrix_g_signal()
192 b = inb(isa->io); in zoltrix_g_signal()
201 static int zoltrix_s_stereo(struct radio_isa_card *isa, bool stereo) in zoltrix_s_stereo() argument
203 return zoltrix_s_frequency(isa, isa->freq); in zoltrix_s_stereo()