Lines Matching refs:mix
90 vortex_mix_muteinputgain(vortex_t * vortex, unsigned char mix,
93 hwwrite(vortex->mmio, VORTEX_MIX_INVOL_A + ((mix << 5) + channel),
95 hwwrite(vortex->mmio, VORTEX_MIX_INVOL_B + ((mix << 5) + channel),
99 static int vortex_mix_getvolume(vortex_t * vortex, unsigned char mix)
102 a = hwread(vortex->mmio, VORTEX_MIX_VOL_A + (mix << 2)) & 0xff;
108 vortex_mix_getinputvolume(vortex_t * vortex, unsigned char mix,
112 if (!(mchannels[mix] & (1 << channel)))
115 VORTEX_MIX_INVOL_A + (((mix << 5) + channel) << 2));
131 static void vortex_mix_rampvolume(vortex_t * vortex, int mix)
137 if (((1 << ch) & rampchs[mix]) == 0)
140 VORTEX_MIX_INVOL_B + (((mix << 5) + ch) << 2));
145 (((mix << 5) + ch) << 2), a);
148 (((mix << 5) + ch) << 2), a);
150 vortex_mix_killinput(vortex, mix, ch);
155 vortex_mix_getenablebit(vortex_t * vortex, unsigned char mix, int mixin)
162 addr = ((mix << 3) + (addr >> 2)) << 2;
168 vortex_mix_setvolumebyte(vortex_t * vortex, unsigned char mix, in vortex_mix_setvolumebyte() argument
172 hwwrite(vortex->mmio, VORTEX_MIX_VOL_A + (mix << 2), vol); in vortex_mix_setvolumebyte()
174 temp = hwread(vortex->mmio, VORTEX_MIX_VOL_B + (mix << 2)); in vortex_mix_setvolumebyte()
178 hwwrite(vortex->mmio, VORTEX_MIX_VOL_B + (mix << 2), vol); in vortex_mix_setvolumebyte()
182 vortex_mix_setinputvolumebyte(vortex_t * vortex, unsigned char mix, in vortex_mix_setinputvolumebyte() argument
188 VORTEX_MIX_INVOL_A + (((mix << 5) + mixin) << 2), vol); in vortex_mix_setinputvolumebyte()
192 VORTEX_MIX_INVOL_B + (((mix << 5) + mixin) << 2)); in vortex_mix_setinputvolumebyte()
197 VORTEX_MIX_INVOL_B + (((mix << 5) + mixin) << 2), vol); in vortex_mix_setinputvolumebyte()
201 vortex_mix_setenablebit(vortex_t * vortex, unsigned char mix, int mixin, int en) in vortex_mix_setenablebit() argument
209 addr = ((mix << 3) + (addr >> 2)) << 2; in vortex_mix_setenablebit()
217 VORTEX_MIX_INVOL_B + (((mix << 5) + mixin) << 2), 0x80); in vortex_mix_setenablebit()
226 vortex_mix_killinput(vortex_t * vortex, unsigned char mix, int mixin) in vortex_mix_killinput() argument
228 rampchs[mix] &= ~(1 << mixin); in vortex_mix_killinput()
229 vortex_mix_setinputvolumebyte(vortex, mix, mixin, 0x80); in vortex_mix_killinput()
230 mchannels[mix] &= ~(1 << mixin); in vortex_mix_killinput()
231 vortex_mix_setenablebit(vortex, mix, mixin, 0); in vortex_mix_killinput()
235 vortex_mix_enableinput(vortex_t * vortex, unsigned char mix, int mixin) in vortex_mix_enableinput() argument
237 vortex_mix_killinput(vortex, mix, mixin); in vortex_mix_enableinput()
238 if ((mchannels[mix] & (1 << mixin)) == 0) { in vortex_mix_enableinput()
239 vortex_mix_setinputvolumebyte(vortex, mix, mixin, 0x80); /*0x80 : mute */ in vortex_mix_enableinput()
240 mchannels[mix] |= (1 << mixin); in vortex_mix_enableinput()
242 vortex_mix_setenablebit(vortex, mix, mixin, 1); in vortex_mix_enableinput()
246 vortex_mix_disableinput(vortex_t * vortex, unsigned char mix, int channel, in vortex_mix_disableinput() argument
250 rampchs[mix] |= (1 << channel); in vortex_mix_disableinput()
253 vortex_mix_killinput(vortex, mix, channel); in vortex_mix_disableinput()
255 vortex_mix_killinput(vortex, mix, channel); in vortex_mix_disableinput()
259 vortex_mixer_addWTD(vortex_t * vortex, unsigned char mix, unsigned char ch) in vortex_mixer_addWTD() argument
265 hwwrite(vortex->mmio, VORTEX_MIXER_CHNBASE + (ch << 2), mix); in vortex_mixer_addWTD()
281 hwwrite(vortex->mmio, VORTEX_MIXER_RTBASE + ((temp & 0xf) << 2), mix); in vortex_mixer_addWTD()
287 vortex_mixer_delWTD(vortex_t * vortex, unsigned char mix, unsigned char ch) in vortex_mixer_delWTD() argument
301 if (mix == ebx) { in vortex_mixer_delWTD()
302 ebx = VORTEX_MIXER_RTBASE + (mix << 2); in vortex_mixer_delWTD()
313 while ((edx & 0xf) != mix) { in vortex_mixer_delWTD()
1848 unsigned char mix, int a) in vortex_connection_mixin_mix()
1851 vortex_mix_enableinput(vortex, mix, mixin); in vortex_connection_mixin_mix()
1852 vortex_mix_setinputvolumebyte(vortex, mix, mixin, MIX_DEFIGAIN); // added to original code. in vortex_connection_mixin_mix()
1854 vortex_mix_disableinput(vortex, mix, mixin, a); in vortex_connection_mixin_mix()
1886 unsigned char mix, unsigned char dest) in vortex_connection_mix_adb() argument
1888 vortex_route(vortex, en, ch, ADB_MIXOUT(mix), dest); in vortex_connection_mix_adb()
1889 vortex_mix_setvolumebyte(vortex, mix, MIX_DEFOGAIN); // added to original code. in vortex_connection_mix_adb()
1895 unsigned char mix, unsigned char src) in vortex_connection_mix_src() argument
1897 vortex_route(vortex, en, ch, ADB_MIXOUT(mix), ADB_SRCIN(src)); in vortex_connection_mix_src()
1898 vortex_mix_setvolumebyte(vortex, mix, MIX_DEFOGAIN); // added to original code. in vortex_connection_mix_src()
2136 int src[4], mix[4], ch_top; in vortex_adb_allocroute() local
2152 mix[i] = vortex_adb_checkinout(vortex, in vortex_adb_allocroute()
2156 if (mix[i] < 0) { in vortex_adb_allocroute()
2200 mix[i]); in vortex_adb_allocroute()
2202 mix[i], in vortex_adb_allocroute()
2206 mix[i], in vortex_adb_allocroute()
2210 mix[i], in vortex_adb_allocroute()
2235 mix[i % nr_ch], in vortex_adb_allocroute()
2239 mix[i % nr_ch], in vortex_adb_allocroute()
2244 mix[i % nr_ch], in vortex_adb_allocroute()
2252 p->mixin[i] = mix[i]; in vortex_adb_allocroute()
2276 int src[2], mix[2]; in vortex_adb_allocroute() local
2283 mix[i] = vortex_adb_checkinout(vortex, in vortex_adb_allocroute()
2286 if (mix[i] < 0) { in vortex_adb_allocroute()
2302 vortex_connection_mixin_mix(vortex, en, MIX_CAPT(0), mix[0], 0); in vortex_adb_allocroute()
2303 vortex_connection_mix_src(vortex, en, 0x11, mix[0], src[0]); in vortex_adb_allocroute()
2306 MIX_CAPT(1), mix[0], 0); in vortex_adb_allocroute()
2312 MIX_CAPT(1), mix[1], 0); in vortex_adb_allocroute()
2313 vortex_connection_mix_src(vortex, en, 0x11, mix[1], in vortex_adb_allocroute()