Lines Matching full:gpr
43 MODULE_PARM_DESC(high_res_gpr_volume, "GPR mixer controls use 31-bit range.");
356 snd_emu10k1_ptr_write(emu, emu->gpr_base + ctl->gpr[i], 0, val); in snd_emu10k1_gpr_ctl_put()
359 snd_emu10k1_ptr_write(emu, emu->gpr_base + ctl->gpr[i], 0, db_table[val]); in snd_emu10k1_gpr_ctl_put()
367 … snd_emu10k1_ptr_write(emu, emu->gpr_base + ctl->gpr[j * ctl->vcount + i], 0, bass_table[val][j]); in snd_emu10k1_gpr_ctl_put()
375 …snd_emu10k1_ptr_write(emu, emu->gpr_base + ctl->gpr[j * ctl->vcount + i], 0, treble_table[val][j]); in snd_emu10k1_gpr_ctl_put()
378 snd_emu10k1_ptr_write(emu, emu->gpr_base + ctl->gpr[i], 0, onoff_table[val]); in snd_emu10k1_gpr_ctl_put()
510 int gpr; in snd_emu10k1_gpr_poke() local
513 for (gpr = 0; gpr < (emu->audigy ? 0x200 : 0x100); gpr++) { in snd_emu10k1_gpr_poke()
514 if (!test_bit(gpr, icode->gpr_valid)) in snd_emu10k1_gpr_poke()
517 val = icode->gpr_map[gpr]; in snd_emu10k1_gpr_poke()
518 else if (get_user(val, (__user u32 *)&icode->gpr_map[gpr])) in snd_emu10k1_gpr_poke()
520 snd_emu10k1_ptr_write(emu, emu->gpr_base + gpr, 0, val); in snd_emu10k1_gpr_poke()
528 int gpr; in snd_emu10k1_gpr_peek() local
531 for (gpr = 0; gpr < (emu->audigy ? 0x200 : 0x100); gpr++) { in snd_emu10k1_gpr_peek()
532 set_bit(gpr, icode->gpr_valid); in snd_emu10k1_gpr_peek()
533 val = snd_emu10k1_ptr_read(emu, emu->gpr_base + gpr, 0); in snd_emu10k1_gpr_peek()
534 if (put_user(val, (__user u32 *)&icode->gpr_map[gpr])) in snd_emu10k1_gpr_peek()
859 nctl->gpr[j] = gctl->gpr[j]; in snd_emu10k1_add_controls()
953 gctl->gpr[j] = ctl->gpr[j]; in snd_emu10k1_list_controls()
1121 const char *name, int gpr, int defval) in snd_emu10k1_init_mono_control() argument
1126 ctl->gpr[0] = gpr + 0; ctl->value[0] = defval; in snd_emu10k1_init_mono_control()
1142 const char *name, int gpr, int defval) in snd_emu10k1_init_stereo_control() argument
1147 ctl->gpr[0] = gpr + 0; ctl->value[0] = defval; in snd_emu10k1_init_stereo_control()
1148 ctl->gpr[1] = gpr + 1; ctl->value[1] = defval; in snd_emu10k1_init_stereo_control()
1164 const char *name, int gpr, int defval) in snd_emu10k1_init_mono_onoff_control() argument
1169 ctl->gpr[0] = gpr + 0; ctl->value[0] = defval; in snd_emu10k1_init_mono_onoff_control()
1177 const char *name, int gpr, int defval) in snd_emu10k1_init_stereo_onoff_control() argument
1182 ctl->gpr[0] = gpr + 0; ctl->value[0] = defval; in snd_emu10k1_init_stereo_onoff_control()
1183 ctl->gpr[1] = gpr + 1; ctl->value[1] = defval; in snd_emu10k1_init_stereo_onoff_control()
1216 int err, i, z, gpr, nctl; in _snd_emu10k1_audigy_init_efx() local
1258 gpr = stereo_mix + 10; in _snd_emu10k1_audigy_init_efx()
1259 gpr_map[gpr++] = 0x00007fff; in _snd_emu10k1_audigy_init_efx()
1260 gpr_map[gpr++] = 0x00008000; in _snd_emu10k1_audigy_init_efx()
1261 gpr_map[gpr++] = 0x0000ffff; in _snd_emu10k1_audigy_init_efx()
1262 bit_shifter16 = gpr; in _snd_emu10k1_audigy_init_efx()
1269 * playback = 0 + ( gpr * FXBUS_PCM_LEFT_FRONT >> 31) in _snd_emu10k1_audigy_init_efx()
1270 * where gpr contains attenuation from corresponding mixer control in _snd_emu10k1_audigy_init_efx()
1273 A_OP(icode, &ptr, iMAC0, A_GPR(playback), A_C_00000000, A_GPR(gpr), A_FXBUS(FXBUS_PCM_LEFT_FRONT)); in _snd_emu10k1_audigy_init_efx()
1274 …A_OP(icode, &ptr, iMAC0, A_GPR(playback+1), A_C_00000000, A_GPR(gpr+1), A_FXBUS(FXBUS_PCM_RIGHT_FR… in _snd_emu10k1_audigy_init_efx()
1275 snd_emu10k1_init_stereo_control(&controls[nctl++], "PCM Front Playback Volume", gpr, 100); in _snd_emu10k1_audigy_init_efx()
1276 gpr += 2; in _snd_emu10k1_audigy_init_efx()
1279 …A_OP(icode, &ptr, iMAC0, A_GPR(playback+2), A_C_00000000, A_GPR(gpr), A_FXBUS(FXBUS_PCM_LEFT_REAR)… in _snd_emu10k1_audigy_init_efx()
1280 …A_OP(icode, &ptr, iMAC0, A_GPR(playback+3), A_C_00000000, A_GPR(gpr+1), A_FXBUS(FXBUS_PCM_RIGHT_RE… in _snd_emu10k1_audigy_init_efx()
1281 snd_emu10k1_init_stereo_control(&controls[nctl++], "PCM Surround Playback Volume", gpr, 100); in _snd_emu10k1_audigy_init_efx()
1282 gpr += 2; in _snd_emu10k1_audigy_init_efx()
1286 …A_OP(icode, &ptr, iMAC0, A_GPR(playback+6), A_C_00000000, A_GPR(gpr), A_FXBUS(FXBUS_PCM_LEFT_SIDE)… in _snd_emu10k1_audigy_init_efx()
1287 …A_OP(icode, &ptr, iMAC0, A_GPR(playback+7), A_C_00000000, A_GPR(gpr+1), A_FXBUS(FXBUS_PCM_RIGHT_SI… in _snd_emu10k1_audigy_init_efx()
1288 snd_emu10k1_init_stereo_control(&controls[nctl++], "PCM Side Playback Volume", gpr, 100); in _snd_emu10k1_audigy_init_efx()
1289 gpr += 2; in _snd_emu10k1_audigy_init_efx()
1293 A_OP(icode, &ptr, iMAC0, A_GPR(playback+4), A_C_00000000, A_GPR(gpr), A_FXBUS(FXBUS_PCM_CENTER)); in _snd_emu10k1_audigy_init_efx()
1294 snd_emu10k1_init_mono_control(&controls[nctl++], "PCM Center Playback Volume", gpr, 100); in _snd_emu10k1_audigy_init_efx()
1295 gpr++; in _snd_emu10k1_audigy_init_efx()
1298 A_OP(icode, &ptr, iMAC0, A_GPR(playback+5), A_C_00000000, A_GPR(gpr), A_FXBUS(FXBUS_PCM_LFE)); in _snd_emu10k1_audigy_init_efx()
1299 snd_emu10k1_init_mono_control(&controls[nctl++], "PCM LFE Playback Volume", gpr, 100); in _snd_emu10k1_audigy_init_efx()
1300 gpr++; in _snd_emu10k1_audigy_init_efx()
1306 A_OP(icode, &ptr, iMAC0, A_GPR(stereo_mix), A_C_00000000, A_GPR(gpr), A_FXBUS(FXBUS_PCM_LEFT)); in _snd_emu10k1_audigy_init_efx()
1307 …A_OP(icode, &ptr, iMAC0, A_GPR(stereo_mix+1), A_C_00000000, A_GPR(gpr+1), A_FXBUS(FXBUS_PCM_RIGHT)… in _snd_emu10k1_audigy_init_efx()
1308 snd_emu10k1_init_stereo_control(&controls[nctl++], "Wave Playback Volume", gpr, 100); in _snd_emu10k1_audigy_init_efx()
1309 gpr += 2; in _snd_emu10k1_audigy_init_efx()
1312 …A_OP(icode, &ptr, iMAC0, A_GPR(stereo_mix+0), A_GPR(stereo_mix+0), A_GPR(gpr), A_FXBUS(FXBUS_MIDI_… in _snd_emu10k1_audigy_init_efx()
1313 …A_OP(icode, &ptr, iMAC0, A_GPR(stereo_mix+1), A_GPR(stereo_mix+1), A_GPR(gpr+1), A_FXBUS(FXBUS_MID… in _snd_emu10k1_audigy_init_efx()
1314 snd_emu10k1_init_stereo_control(&controls[nctl++], "Synth Playback Volume", gpr, 100); in _snd_emu10k1_audigy_init_efx()
1315 gpr += 2; in _snd_emu10k1_audigy_init_efx()
1318 A_OP(icode, &ptr, iMAC0, A_GPR(capture+0), A_C_00000000, A_GPR(gpr), A_FXBUS(FXBUS_PCM_LEFT)); in _snd_emu10k1_audigy_init_efx()
1319 A_OP(icode, &ptr, iMAC0, A_GPR(capture+1), A_C_00000000, A_GPR(gpr+1), A_FXBUS(FXBUS_PCM_RIGHT)); in _snd_emu10k1_audigy_init_efx()
1320 snd_emu10k1_init_stereo_control(&controls[nctl++], "PCM Capture Volume", gpr, 0); in _snd_emu10k1_audigy_init_efx()
1321 gpr += 2; in _snd_emu10k1_audigy_init_efx()
1324 A_OP(icode, &ptr, iMAC0, A_GPR(capture+0), A_GPR(capture+0), A_GPR(gpr), A_FXBUS(FXBUS_MIDI_LEFT)); in _snd_emu10k1_audigy_init_efx()
1325 …A_OP(icode, &ptr, iMAC0, A_GPR(capture+1), A_GPR(capture+1), A_GPR(gpr+1), A_FXBUS(FXBUS_MIDI_RIGH… in _snd_emu10k1_audigy_init_efx()
1326 snd_emu10k1_init_stereo_control(&controls[nctl++], "Synth Capture Volume", gpr, 0); in _snd_emu10k1_audigy_init_efx()
1327 gpr += 2; in _snd_emu10k1_audigy_init_efx()
1340 A_OP(icode, &ptr, iMAC0, A_GPR(capture+0), A_GPR(capture+0), A_GPR(gpr), A_GPR(tmp)); in _snd_emu10k1_audigy_init_efx()
1342 A_OP(icode, &ptr, iMAC0, A_GPR(capture+1), A_GPR(capture+1), A_GPR(gpr), A_GPR(tmp)); in _snd_emu10k1_audigy_init_efx()
1344 A_OP(icode, &ptr, iMAC0, A_GPR(capture+0), A_GPR(capture+0), A_GPR(gpr), A_P16VIN(0x0)); in _snd_emu10k1_audigy_init_efx()
1345 A_OP(icode, &ptr, iMAC0, A_GPR(capture+1), A_GPR(capture+1), A_GPR(gpr+1), A_P16VIN(0x1)); in _snd_emu10k1_audigy_init_efx()
1347 snd_emu10k1_init_stereo_control(&controls[nctl++], "EMU Capture Volume", gpr, 0); in _snd_emu10k1_audigy_init_efx()
1348 gpr += 2; in _snd_emu10k1_audigy_init_efx()
1351 A_ADD_VOLUME_IN(stereo_mix, gpr, A_EXTIN_AC97_L); in _snd_emu10k1_audigy_init_efx()
1352 A_ADD_VOLUME_IN(stereo_mix+1, gpr+1, A_EXTIN_AC97_R); in _snd_emu10k1_audigy_init_efx()
1353 snd_emu10k1_init_stereo_control(&controls[nctl++], "AMic Playback Volume", gpr, 0); in _snd_emu10k1_audigy_init_efx()
1354 gpr += 2; in _snd_emu10k1_audigy_init_efx()
1356 A_ADD_VOLUME_IN(capture, gpr, A_EXTIN_AC97_L); in _snd_emu10k1_audigy_init_efx()
1357 A_ADD_VOLUME_IN(capture+1, gpr+1, A_EXTIN_AC97_R); in _snd_emu10k1_audigy_init_efx()
1358 snd_emu10k1_init_stereo_control(&controls[nctl++], "Mic Capture Volume", gpr, 0); in _snd_emu10k1_audigy_init_efx()
1359 gpr += 2; in _snd_emu10k1_audigy_init_efx()
1365 A_ADD_VOLUME_IN(stereo_mix, gpr, A_EXTIN_SPDIF_CD_L); in _snd_emu10k1_audigy_init_efx()
1366 A_ADD_VOLUME_IN(stereo_mix+1, gpr+1, A_EXTIN_SPDIF_CD_R); in _snd_emu10k1_audigy_init_efx()
1369 gpr, 0); in _snd_emu10k1_audigy_init_efx()
1370 gpr += 2; in _snd_emu10k1_audigy_init_efx()
1372 A_ADD_VOLUME_IN(capture, gpr, A_EXTIN_SPDIF_CD_L); in _snd_emu10k1_audigy_init_efx()
1373 A_ADD_VOLUME_IN(capture+1, gpr+1, A_EXTIN_SPDIF_CD_R); in _snd_emu10k1_audigy_init_efx()
1376 gpr, 0); in _snd_emu10k1_audigy_init_efx()
1377 gpr += 2; in _snd_emu10k1_audigy_init_efx()
1380 A_ADD_VOLUME_IN(stereo_mix, gpr, A_EXTIN_OPT_SPDIF_L); in _snd_emu10k1_audigy_init_efx()
1381 A_ADD_VOLUME_IN(stereo_mix+1, gpr+1, A_EXTIN_OPT_SPDIF_R); in _snd_emu10k1_audigy_init_efx()
1382 …_init_stereo_control(&controls[nctl++], SNDRV_CTL_NAME_IEC958("Optical ",PLAYBACK,VOLUME), gpr, 0); in _snd_emu10k1_audigy_init_efx()
1383 gpr += 2; in _snd_emu10k1_audigy_init_efx()
1385 A_ADD_VOLUME_IN(capture, gpr, A_EXTIN_OPT_SPDIF_L); in _snd_emu10k1_audigy_init_efx()
1386 A_ADD_VOLUME_IN(capture+1, gpr+1, A_EXTIN_OPT_SPDIF_R); in _snd_emu10k1_audigy_init_efx()
1387 …1_init_stereo_control(&controls[nctl++], SNDRV_CTL_NAME_IEC958("Optical ",CAPTURE,VOLUME), gpr, 0); in _snd_emu10k1_audigy_init_efx()
1388 gpr += 2; in _snd_emu10k1_audigy_init_efx()
1391 A_ADD_VOLUME_IN(stereo_mix, gpr, A_EXTIN_LINE2_L); in _snd_emu10k1_audigy_init_efx()
1392 A_ADD_VOLUME_IN(stereo_mix+1, gpr+1, A_EXTIN_LINE2_R); in _snd_emu10k1_audigy_init_efx()
1395 gpr, 0); in _snd_emu10k1_audigy_init_efx()
1396 gpr += 2; in _snd_emu10k1_audigy_init_efx()
1398 A_ADD_VOLUME_IN(capture, gpr, A_EXTIN_LINE2_L); in _snd_emu10k1_audigy_init_efx()
1399 A_ADD_VOLUME_IN(capture+1, gpr+1, A_EXTIN_LINE2_R); in _snd_emu10k1_audigy_init_efx()
1402 gpr, 0); in _snd_emu10k1_audigy_init_efx()
1403 gpr += 2; in _snd_emu10k1_audigy_init_efx()
1406 A_ADD_VOLUME_IN(stereo_mix, gpr, A_EXTIN_ADC_L); in _snd_emu10k1_audigy_init_efx()
1407 A_ADD_VOLUME_IN(stereo_mix+1, gpr+1, A_EXTIN_ADC_R); in _snd_emu10k1_audigy_init_efx()
1408 snd_emu10k1_init_stereo_control(&controls[nctl++], "Analog Mix Playback Volume", gpr, 0); in _snd_emu10k1_audigy_init_efx()
1409 gpr += 2; in _snd_emu10k1_audigy_init_efx()
1411 A_ADD_VOLUME_IN(capture, gpr, A_EXTIN_ADC_L); in _snd_emu10k1_audigy_init_efx()
1412 A_ADD_VOLUME_IN(capture+1, gpr+1, A_EXTIN_ADC_R); in _snd_emu10k1_audigy_init_efx()
1413 snd_emu10k1_init_stereo_control(&controls[nctl++], "Analog Mix Capture Volume", gpr, 0); in _snd_emu10k1_audigy_init_efx()
1414 gpr += 2; in _snd_emu10k1_audigy_init_efx()
1417 A_ADD_VOLUME_IN(stereo_mix, gpr, A_EXTIN_AUX2_L); in _snd_emu10k1_audigy_init_efx()
1418 A_ADD_VOLUME_IN(stereo_mix+1, gpr+1, A_EXTIN_AUX2_R); in _snd_emu10k1_audigy_init_efx()
1421 gpr, 0); in _snd_emu10k1_audigy_init_efx()
1422 gpr += 2; in _snd_emu10k1_audigy_init_efx()
1424 A_ADD_VOLUME_IN(capture, gpr, A_EXTIN_AUX2_L); in _snd_emu10k1_audigy_init_efx()
1425 A_ADD_VOLUME_IN(capture+1, gpr+1, A_EXTIN_AUX2_R); in _snd_emu10k1_audigy_init_efx()
1428 gpr, 0); in _snd_emu10k1_audigy_init_efx()
1429 gpr += 2; in _snd_emu10k1_audigy_init_efx()
1432 A_OP(icode, &ptr, iMAC0, A_GPR(playback), A_GPR(playback), A_GPR(gpr), A_GPR(stereo_mix)); in _snd_emu10k1_audigy_init_efx()
1433 A_OP(icode, &ptr, iMAC0, A_GPR(playback+1), A_GPR(playback+1), A_GPR(gpr+1), A_GPR(stereo_mix+1)); in _snd_emu10k1_audigy_init_efx()
1434 snd_emu10k1_init_stereo_control(&controls[nctl++], "Front Playback Volume", gpr, 100); in _snd_emu10k1_audigy_init_efx()
1435 gpr += 2; in _snd_emu10k1_audigy_init_efx()
1438 A_OP(icode, &ptr, iMAC0, A_GPR(playback+2), A_GPR(playback+2), A_GPR(gpr), A_GPR(stereo_mix)); in _snd_emu10k1_audigy_init_efx()
1439 A_OP(icode, &ptr, iMAC0, A_GPR(playback+3), A_GPR(playback+3), A_GPR(gpr+1), A_GPR(stereo_mix+1)); in _snd_emu10k1_audigy_init_efx()
1440 snd_emu10k1_init_stereo_control(&controls[nctl++], "Surround Playback Volume", gpr, 0); in _snd_emu10k1_audigy_init_efx()
1441 gpr += 2; in _snd_emu10k1_audigy_init_efx()
1446 A_OP(icode, &ptr, iMAC0, A_GPR(playback+4), A_GPR(playback+4), A_GPR(gpr), A_GPR(tmp)); in _snd_emu10k1_audigy_init_efx()
1447 snd_emu10k1_init_mono_control(&controls[nctl++], "Center Playback Volume", gpr, 0); in _snd_emu10k1_audigy_init_efx()
1448 gpr++; in _snd_emu10k1_audigy_init_efx()
1451 A_OP(icode, &ptr, iMAC0, A_GPR(playback+5), A_GPR(playback+5), A_GPR(gpr), A_GPR(tmp)); in _snd_emu10k1_audigy_init_efx()
1452 snd_emu10k1_init_mono_control(&controls[nctl++], "LFE Playback Volume", gpr, 0); in _snd_emu10k1_audigy_init_efx()
1453 gpr++; in _snd_emu10k1_audigy_init_efx()
1457 A_OP(icode, &ptr, iMAC0, A_GPR(playback+6), A_GPR(playback+6), A_GPR(gpr), A_GPR(stereo_mix)); in _snd_emu10k1_audigy_init_efx()
1458 A_OP(icode, &ptr, iMAC0, A_GPR(playback+7), A_GPR(playback+7), A_GPR(gpr+1), A_GPR(stereo_mix+1)); in _snd_emu10k1_audigy_init_efx()
1459 snd_emu10k1_init_stereo_control(&controls[nctl++], "Side Playback Volume", gpr, 0); in _snd_emu10k1_audigy_init_efx()
1460 gpr += 2; in _snd_emu10k1_audigy_init_efx()
1520 controls[nctl + 0].gpr[z * 2 + j] = BASS_GPR + z * 2 + j; in _snd_emu10k1_audigy_init_efx()
1521 controls[nctl + 1].gpr[z * 2 + j] = TREBLE_GPR + z * 2 + j; in _snd_emu10k1_audigy_init_efx()
1557 A_SWITCH(icode, &ptr, tmp + 0, playback + SND_EMU10K1_PLAYBACK_CHANNELS + z, gpr + 0); in _snd_emu10k1_audigy_init_efx()
1558 A_SWITCH_NEG(icode, &ptr, tmp + 1, gpr + 0); in _snd_emu10k1_audigy_init_efx()
1562 snd_emu10k1_init_stereo_onoff_control(controls + nctl++, "Tone Control - Switch", gpr, 0); in _snd_emu10k1_audigy_init_efx()
1563 gpr += 2; in _snd_emu10k1_audigy_init_efx()
1566 …A_OP(icode, &ptr, iMAC0, A_GPR(playback+0+SND_EMU10K1_PLAYBACK_CHANNELS), A_C_00000000, A_GPR(gpr)… in _snd_emu10k1_audigy_init_efx()
1567 …A_OP(icode, &ptr, iMAC0, A_GPR(playback+1+SND_EMU10K1_PLAYBACK_CHANNELS), A_C_00000000, A_GPR(gpr)… in _snd_emu10k1_audigy_init_efx()
1568 …A_OP(icode, &ptr, iMAC0, A_GPR(playback+2+SND_EMU10K1_PLAYBACK_CHANNELS), A_C_00000000, A_GPR(gpr)… in _snd_emu10k1_audigy_init_efx()
1569 …A_OP(icode, &ptr, iMAC0, A_GPR(playback+3+SND_EMU10K1_PLAYBACK_CHANNELS), A_C_00000000, A_GPR(gpr)… in _snd_emu10k1_audigy_init_efx()
1570 …A_OP(icode, &ptr, iMAC0, A_GPR(playback+4+SND_EMU10K1_PLAYBACK_CHANNELS), A_C_00000000, A_GPR(gpr)… in _snd_emu10k1_audigy_init_efx()
1571 …A_OP(icode, &ptr, iMAC0, A_GPR(playback+5+SND_EMU10K1_PLAYBACK_CHANNELS), A_C_00000000, A_GPR(gpr)… in _snd_emu10k1_audigy_init_efx()
1572 …A_OP(icode, &ptr, iMAC0, A_GPR(playback+6+SND_EMU10K1_PLAYBACK_CHANNELS), A_C_00000000, A_GPR(gpr)… in _snd_emu10k1_audigy_init_efx()
1573 …A_OP(icode, &ptr, iMAC0, A_GPR(playback+7+SND_EMU10K1_PLAYBACK_CHANNELS), A_C_00000000, A_GPR(gpr)… in _snd_emu10k1_audigy_init_efx()
1574 snd_emu10k1_init_mono_control(&controls[nctl++], "Wave Master Playback Volume", gpr, 0); in _snd_emu10k1_audigy_init_efx()
1575 gpr += 2; in _snd_emu10k1_audigy_init_efx()
1603 gpr_map[gpr++] = 0; in _snd_emu10k1_audigy_init_efx()
1604 gpr_map[gpr++] = 0x1008; in _snd_emu10k1_audigy_init_efx()
1605 gpr_map[gpr++] = 0xffff0000; in _snd_emu10k1_audigy_init_efx()
1608 A_OP(icode, &ptr, iSKIP, A_GPR_COND, A_GPR_COND, A_GPR(gpr - 2), A_C_00000001); in _snd_emu10k1_audigy_init_efx()
1610 A_OP(icode, &ptr, iANDXOR, A_GPR(tmp + 2), A_GPR(tmp + 2), A_GPR(gpr - 1), A_C_00000000); in _snd_emu10k1_audigy_init_efx()
1611 A_SWITCH(icode, &ptr, tmp + 0, tmp + 2, gpr + z); in _snd_emu10k1_audigy_init_efx()
1612 A_SWITCH_NEG(icode, &ptr, tmp + 1, gpr + z); in _snd_emu10k1_audigy_init_efx()
1619 …A_OP(icode, &ptr, iACC3, A_EXTOUT(A_EXTOUT_FRONT_L + z), A_GPR(gpr - 3), A_C_00000000, A_C_0000000… in _snd_emu10k1_audigy_init_efx()
1620 A_OP(icode, &ptr, iACC3, A_GPR(gpr - 3), A_GPR(tmp + 0), A_GPR(tmp + 1), A_C_00000000); in _snd_emu10k1_audigy_init_efx()
1625 …eo_onoff_control(controls + nctl++, SNDRV_CTL_NAME_IEC958("Optical Raw ",PLAYBACK,SWITCH), gpr, 0); in _snd_emu10k1_audigy_init_efx()
1626 gpr += 2; in _snd_emu10k1_audigy_init_efx()
1654 dev_dbg(emu->card->dev, "emufx.c: gpr=0x%x, tmp=0x%x\n", in _snd_emu10k1_audigy_init_efx()
1655 gpr, tmp); in _snd_emu10k1_audigy_init_efx()
1664 gpr_map[gpr++] = 0x00000000; in _snd_emu10k1_audigy_init_efx()
1670 …snd_emu10k1_audigy_dsp_convert_32_to_2x16( icode, &ptr, tmp, bit_shifter16, A_GPR(gpr - 1), A_FXBU… in _snd_emu10k1_audigy_init_efx()
1671 A_OP(icode, &ptr, iACC3, A_GPR(gpr - 1), A_P16VIN(0x1), A_C_00000000, A_C_00000000); in _snd_emu10k1_audigy_init_efx()
1672 gpr_map[gpr++] = 0x00000000; in _snd_emu10k1_audigy_init_efx()
1673 …snd_emu10k1_audigy_dsp_convert_32_to_2x16( icode, &ptr, tmp, bit_shifter16, A_GPR(gpr - 1), A_FXBU… in _snd_emu10k1_audigy_init_efx()
1674 A_OP(icode, &ptr, iACC3, A_GPR(gpr - 1), A_P16VIN(0x2), A_C_00000000, A_C_00000000); in _snd_emu10k1_audigy_init_efx()
1675 gpr_map[gpr++] = 0x00000000; in _snd_emu10k1_audigy_init_efx()
1676 …snd_emu10k1_audigy_dsp_convert_32_to_2x16( icode, &ptr, tmp, bit_shifter16, A_GPR(gpr - 1), A_FXBU… in _snd_emu10k1_audigy_init_efx()
1677 A_OP(icode, &ptr, iACC3, A_GPR(gpr - 1), A_P16VIN(0x3), A_C_00000000, A_C_00000000); in _snd_emu10k1_audigy_init_efx()
1680 gpr_map[gpr++] = 0x00000000; in _snd_emu10k1_audigy_init_efx()
1681 …snd_emu10k1_audigy_dsp_convert_32_to_2x16( icode, &ptr, tmp, bit_shifter16, A_GPR(gpr - 1), A_FXBU… in _snd_emu10k1_audigy_init_efx()
1682 A_OP(icode, &ptr, iACC3, A_GPR(gpr - 1), A_P16VIN(0x4), A_C_00000000, A_C_00000000); in _snd_emu10k1_audigy_init_efx()
1684 gpr_map[gpr++] = 0x00000000; in _snd_emu10k1_audigy_init_efx()
1685 …snd_emu10k1_audigy_dsp_convert_32_to_2x16( icode, &ptr, tmp, bit_shifter16, A_GPR(gpr - 1), A_FXBU… in _snd_emu10k1_audigy_init_efx()
1686 A_OP(icode, &ptr, iACC3, A_GPR(gpr - 1), A_P16VIN(0x5), A_C_00000000, A_C_00000000); in _snd_emu10k1_audigy_init_efx()
1687 gpr_map[gpr++] = 0x00000000; in _snd_emu10k1_audigy_init_efx()
1688 …snd_emu10k1_audigy_dsp_convert_32_to_2x16( icode, &ptr, tmp, bit_shifter16, A_GPR(gpr - 1), A_FXBU… in _snd_emu10k1_audigy_init_efx()
1689 A_OP(icode, &ptr, iACC3, A_GPR(gpr - 1), A_P16VIN(0x6), A_C_00000000, A_C_00000000); in _snd_emu10k1_audigy_init_efx()
1690 gpr_map[gpr++] = 0x00000000; in _snd_emu10k1_audigy_init_efx()
1691 …snd_emu10k1_audigy_dsp_convert_32_to_2x16( icode, &ptr, tmp, bit_shifter16, A_GPR(gpr - 1), A_FXBU… in _snd_emu10k1_audigy_init_efx()
1692 A_OP(icode, &ptr, iACC3, A_GPR(gpr - 1), A_P16VIN(0x7), A_C_00000000, A_C_00000000); in _snd_emu10k1_audigy_init_efx()
1697 gpr_map[gpr++] = 0x00000000; in _snd_emu10k1_audigy_init_efx()
1700 A_GPR(gpr - 1), in _snd_emu10k1_audigy_init_efx()
1702 A_OP(icode, &ptr, iACC3, A_GPR(gpr - 1), A_P16VIN(0x8), in _snd_emu10k1_audigy_init_efx()
1704 gpr_map[gpr++] = 0x00000000; in _snd_emu10k1_audigy_init_efx()
1707 A_GPR(gpr - 1), in _snd_emu10k1_audigy_init_efx()
1709 A_OP(icode, &ptr, iACC3, A_GPR(gpr - 1), A_P16VIN(0x9), in _snd_emu10k1_audigy_init_efx()
1711 gpr_map[gpr++] = 0x00000000; in _snd_emu10k1_audigy_init_efx()
1714 A_GPR(gpr - 1), in _snd_emu10k1_audigy_init_efx()
1716 A_OP(icode, &ptr, iACC3, A_GPR(gpr - 1), A_P16VIN(0xa), in _snd_emu10k1_audigy_init_efx()
1718 gpr_map[gpr++] = 0x00000000; in _snd_emu10k1_audigy_init_efx()
1721 A_GPR(gpr - 1), in _snd_emu10k1_audigy_init_efx()
1723 A_OP(icode, &ptr, iACC3, A_GPR(gpr - 1), A_P16VIN(0xb), in _snd_emu10k1_audigy_init_efx()
1725 gpr_map[gpr++] = 0x00000000; in _snd_emu10k1_audigy_init_efx()
1728 A_GPR(gpr - 1), in _snd_emu10k1_audigy_init_efx()
1730 A_OP(icode, &ptr, iACC3, A_GPR(gpr - 1), A_P16VIN(0xc), in _snd_emu10k1_audigy_init_efx()
1732 gpr_map[gpr++] = 0x00000000; in _snd_emu10k1_audigy_init_efx()
1735 A_GPR(gpr - 1), in _snd_emu10k1_audigy_init_efx()
1737 A_OP(icode, &ptr, iACC3, A_GPR(gpr - 1), A_P16VIN(0xd), in _snd_emu10k1_audigy_init_efx()
1739 gpr_map[gpr++] = 0x00000000; in _snd_emu10k1_audigy_init_efx()
1742 A_GPR(gpr - 1), in _snd_emu10k1_audigy_init_efx()
1744 A_OP(icode, &ptr, iACC3, A_GPR(gpr - 1), A_P16VIN(0xe), in _snd_emu10k1_audigy_init_efx()
1746 gpr_map[gpr++] = 0x00000000; in _snd_emu10k1_audigy_init_efx()
1749 A_GPR(gpr - 1), in _snd_emu10k1_audigy_init_efx()
1751 A_OP(icode, &ptr, iACC3, A_GPR(gpr - 1), A_P16VIN(0xf), in _snd_emu10k1_audigy_init_efx()
1776 if (gpr > tmp) { in _snd_emu10k1_audigy_init_efx()
1832 _volume(icode, ptr, GPR(dst), GPR(src), GPR(vol))
1834 _volume(icode, ptr, GPR(dst), EXTIN(src), GPR(vol))
1836 _volume_add(icode, ptr, GPR(dst), GPR(src), GPR(vol))
1838 _volume_add(icode, ptr, GPR(dst), EXTIN(src), GPR(vol))
1840 _volume_out(icode, ptr, EXTOUT(dst), GPR(src), GPR(vol))
1844 _SWITCH(icode, ptr, GPR(dst), GPR(src), GPR(sw))
1846 _SWITCH(icode, ptr, GPR(dst), EXTIN(src), GPR(sw))
1850 _SWITCH_NEG(icode, ptr, GPR(dst), GPR(src))
1855 int err, i, z, gpr, tmp, playback, capture; in _snd_emu10k1_init_efx() local
1902 gpr = capture + SND_EMU10K1_CAPTURE_CHANNELS; in _snd_emu10k1_init_efx()
1903 tmp = 0x88; /* we need 4 temporary GPR */ in _snd_emu10k1_init_efx()
1912 OP(icode, &ptr, iMACINT0, GPR(0), C_00000000, FXBUS(FXBUS_PCM_LEFT), C_00000004); in _snd_emu10k1_init_efx()
1913 OP(icode, &ptr, iMACINT0, GPR(1), C_00000000, FXBUS(FXBUS_PCM_RIGHT), C_00000004); in _snd_emu10k1_init_efx()
1914 OP(icode, &ptr, iMACINT0, GPR(2), C_00000000, FXBUS(FXBUS_MIDI_LEFT), C_00000004); in _snd_emu10k1_init_efx()
1915 OP(icode, &ptr, iMACINT0, GPR(3), C_00000000, FXBUS(FXBUS_MIDI_RIGHT), C_00000004); in _snd_emu10k1_init_efx()
1916 OP(icode, &ptr, iMACINT0, GPR(4), C_00000000, FXBUS(FXBUS_PCM_LEFT_REAR), C_00000004); in _snd_emu10k1_init_efx()
1917 OP(icode, &ptr, iMACINT0, GPR(5), C_00000000, FXBUS(FXBUS_PCM_RIGHT_REAR), C_00000004); in _snd_emu10k1_init_efx()
1918 OP(icode, &ptr, iMACINT0, GPR(6), C_00000000, FXBUS(FXBUS_PCM_CENTER), C_00000004); in _snd_emu10k1_init_efx()
1919 OP(icode, &ptr, iMACINT0, GPR(7), C_00000000, FXBUS(FXBUS_PCM_LFE), C_00000004); in _snd_emu10k1_init_efx()
1920 OP(icode, &ptr, iMACINT0, GPR(8), C_00000000, C_00000000, C_00000000); /* S/PDIF left */ in _snd_emu10k1_init_efx()
1921 OP(icode, &ptr, iMACINT0, GPR(9), C_00000000, C_00000000, C_00000000); /* S/PDIF right */ in _snd_emu10k1_init_efx()
1922 OP(icode, &ptr, iMACINT0, GPR(10), C_00000000, FXBUS(FXBUS_PCM_LEFT_FRONT), C_00000004); in _snd_emu10k1_init_efx()
1923 OP(icode, &ptr, iMACINT0, GPR(11), C_00000000, FXBUS(FXBUS_PCM_RIGHT_FRONT), C_00000004); in _snd_emu10k1_init_efx()
1930 ipcm->gpr_size = gpr++; in _snd_emu10k1_init_efx()
1931 ipcm->gpr_ptr = gpr++; in _snd_emu10k1_init_efx()
1932 ipcm->gpr_count = gpr++; in _snd_emu10k1_init_efx()
1933 ipcm->gpr_tmpcount = gpr++; in _snd_emu10k1_init_efx()
1934 ipcm->gpr_trigger = gpr++; in _snd_emu10k1_init_efx()
1935 ipcm->gpr_running = gpr++; in _snd_emu10k1_init_efx()
1939 gpr_map[gpr + 0] = 0xfffff000; in _snd_emu10k1_init_efx()
1940 gpr_map[gpr + 1] = 0xffff0000; in _snd_emu10k1_init_efx()
1941 gpr_map[gpr + 2] = 0x70000000; in _snd_emu10k1_init_efx()
1942 gpr_map[gpr + 3] = 0x00000007; in _snd_emu10k1_init_efx()
1943 gpr_map[gpr + 4] = 0x001f << 11; in _snd_emu10k1_init_efx()
1944 gpr_map[gpr + 5] = 0x001c << 11; in _snd_emu10k1_init_efx()
1945 gpr_map[gpr + 6] = (0x22 - 0x01) - 1; /* skip at 01 to 22 */ in _snd_emu10k1_init_efx()
1946 gpr_map[gpr + 7] = (0x22 - 0x06) - 1; /* skip at 06 to 22 */ in _snd_emu10k1_init_efx()
1947 gpr_map[gpr + 8] = 0x2000000 + (2<<11); in _snd_emu10k1_init_efx()
1948 gpr_map[gpr + 9] = 0x4000000 + (2<<11); in _snd_emu10k1_init_efx()
1949 gpr_map[gpr + 10] = 1<<11; in _snd_emu10k1_init_efx()
1950 gpr_map[gpr + 11] = (0x24 - 0x0a) - 1; /* skip at 0a to 24 */ in _snd_emu10k1_init_efx()
1951 gpr_map[gpr + 12] = 0; in _snd_emu10k1_init_efx()
1954 /* 00: */ OP(icode, &ptr, iMAC0, C_00000000, GPR(ipcm->gpr_trigger), C_00000000, C_00000000); in _snd_emu10k1_init_efx()
1955 /* 01: */ OP(icode, &ptr, iSKIP, GPR_COND, GPR_COND, CC_REG_ZERO, GPR(gpr + 6)); in _snd_emu10k1_init_efx()
1957 /* 02: */ OP(icode, &ptr, iMAC0, C_00000000, GPR(ipcm->gpr_running), C_00000000, C_00000000); in _snd_emu10k1_init_efx()
1960 /* 04: */ OP(icode, &ptr, iANDXOR, GPR(tmp + 0), GPR_DBAC, GPR(gpr + 4), C_00000000); in _snd_emu10k1_init_efx()
1961 /* 05: */ OP(icode, &ptr, iMACINT0, C_00000000, GPR(tmp + 0), C_ffffffff, GPR(gpr + 5)); in _snd_emu10k1_init_efx()
1962 /* 06: */ OP(icode, &ptr, iSKIP, GPR_COND, GPR_COND, CC_REG_NONZERO, GPR(gpr + 7)); in _snd_emu10k1_init_efx()
1963 /* 07: */ OP(icode, &ptr, iACC3, GPR(gpr + 12), C_00000010, C_00000001, C_00000000); in _snd_emu10k1_init_efx()
1965 …/* 08: */ OP(icode, &ptr, iANDXOR, GPR(ipcm->gpr_running), GPR(ipcm->gpr_running), C_00000000, C_0… in _snd_emu10k1_init_efx()
1966 /* 09: */ OP(icode, &ptr, iACC3, GPR(gpr + 12), GPR(gpr + 12), C_ffffffff, C_00000000); in _snd_emu10k1_init_efx()
1967 /* 0a: */ OP(icode, &ptr, iSKIP, GPR_COND, GPR_COND, CC_REG_NONZERO, GPR(gpr + 11)); in _snd_emu10k1_init_efx()
1968 /* 0b: */ OP(icode, &ptr, iACC3, GPR(gpr + 12), C_00000001, C_00000000, C_00000000); in _snd_emu10k1_init_efx()
1970 …/* 0c: */ OP(icode, &ptr, iANDXOR, GPR(tmp + 0), ETRAM_DATA(ipcm->etram[0]), GPR(gpr + 0), C_00000… in _snd_emu10k1_init_efx()
1971 /* 0d: */ OP(icode, &ptr, iLOG, GPR(tmp + 0), GPR(tmp + 0), GPR(gpr + 3), C_00000000); in _snd_emu10k1_init_efx()
1972 /* 0e: */ OP(icode, &ptr, iANDXOR, GPR(8), GPR(tmp + 0), GPR(gpr + 1), GPR(gpr + 2)); in _snd_emu10k1_init_efx()
1974 /* 10: */ OP(icode, &ptr, iANDXOR, GPR(8), GPR(8), GPR(gpr + 1), GPR(gpr + 2)); in _snd_emu10k1_init_efx()
1976 …/* 11: */ OP(icode, &ptr, iANDXOR, GPR(tmp + 0), ETRAM_DATA(ipcm->etram[1]), GPR(gpr + 0), C_00000… in _snd_emu10k1_init_efx()
1977 /* 12: */ OP(icode, &ptr, iLOG, GPR(tmp + 0), GPR(tmp + 0), GPR(gpr + 3), C_00000000); in _snd_emu10k1_init_efx()
1978 /* 13: */ OP(icode, &ptr, iANDXOR, GPR(9), GPR(tmp + 0), GPR(gpr + 1), GPR(gpr + 2)); in _snd_emu10k1_init_efx()
1980 /* 15: */ OP(icode, &ptr, iANDXOR, GPR(9), GPR(9), GPR(gpr + 1), GPR(gpr + 2)); in _snd_emu10k1_init_efx()
1982 /* 16: */ OP(icode, &ptr, iACC3, GPR(tmp + 0), GPR(ipcm->gpr_ptr), C_00000001, C_00000000); in _snd_emu10k1_init_efx()
1983 /* 17: */ OP(icode, &ptr, iMACINT0, C_00000000, GPR(tmp + 0), C_ffffffff, GPR(ipcm->gpr_size)); in _snd_emu10k1_init_efx()
1985 /* 19: */ OP(icode, &ptr, iACC3, GPR(tmp + 0), C_00000000, C_00000000, C_00000000); in _snd_emu10k1_init_efx()
1986 /* 1a: */ OP(icode, &ptr, iACC3, GPR(ipcm->gpr_ptr), GPR(tmp + 0), C_00000000, C_00000000); in _snd_emu10k1_init_efx()
1988 …/* 1b: */ OP(icode, &ptr, iACC3, GPR(ipcm->gpr_tmpcount), GPR(ipcm->gpr_tmpcount), C_ffffffff, C_0… in _snd_emu10k1_init_efx()
1990 …/* 1d: */ OP(icode, &ptr, iACC3, GPR(ipcm->gpr_tmpcount), GPR(ipcm->gpr_count), C_00000000, C_0000… in _snd_emu10k1_init_efx()
1992 …/* 1f: */ OP(icode, &ptr, iANDXOR, GPR(ipcm->gpr_running), GPR(ipcm->gpr_running), C_00000001, C_0… in _snd_emu10k1_init_efx()
1994 …/* 20: */ OP(icode, &ptr, iANDXOR, GPR(ipcm->gpr_running), GPR(ipcm->gpr_running), C_00010000, C_0… in _snd_emu10k1_init_efx()
1997 …/* 22: */ OP(icode, &ptr, iMACINT1, ETRAM_ADDR(ipcm->etram[0]), GPR(gpr + 8), GPR_DBAC, C_ffffffff… in _snd_emu10k1_init_efx()
1998 …/* 23: */ OP(icode, &ptr, iMACINT1, ETRAM_ADDR(ipcm->etram[1]), GPR(gpr + 9), GPR_DBAC, C_ffffffff… in _snd_emu10k1_init_efx()
2001 gpr += 13; in _snd_emu10k1_init_efx()
2005 VOLUME(icode, &ptr, playback + z, z, gpr + z); in _snd_emu10k1_init_efx()
2006 snd_emu10k1_init_stereo_control(controls + i++, "Wave Playback Volume", gpr, 100); in _snd_emu10k1_init_efx()
2007 gpr += 2; in _snd_emu10k1_init_efx()
2011 VOLUME(icode, &ptr, playback + 2 + z, z, gpr + z); in _snd_emu10k1_init_efx()
2012 snd_emu10k1_init_stereo_control(controls + i++, "Wave Surround Playback Volume", gpr, 0); in _snd_emu10k1_init_efx()
2013 gpr += 2; in _snd_emu10k1_init_efx()
2016 OP(icode, &ptr, iACC3, GPR(tmp + 0), FXBUS(FXBUS_PCM_LEFT), FXBUS(FXBUS_PCM_RIGHT), C_00000000); in _snd_emu10k1_init_efx()
2017 OP(icode, &ptr, iMACINT0, GPR(tmp + 0), C_00000000, GPR(tmp + 0), C_00000002); in _snd_emu10k1_init_efx()
2018 VOLUME(icode, &ptr, playback + 4, tmp + 0, gpr); in _snd_emu10k1_init_efx()
2019 snd_emu10k1_init_mono_control(controls + i++, "Wave Center Playback Volume", gpr++, 0); in _snd_emu10k1_init_efx()
2020 VOLUME(icode, &ptr, playback + 5, tmp + 0, gpr); in _snd_emu10k1_init_efx()
2021 snd_emu10k1_init_mono_control(controls + i++, "Wave LFE Playback Volume", gpr++, 0); in _snd_emu10k1_init_efx()
2025 SWITCH(icode, &ptr, tmp + 0, z, gpr + 2 + z); in _snd_emu10k1_init_efx()
2026 VOLUME(icode, &ptr, capture + z, tmp + 0, gpr + z); in _snd_emu10k1_init_efx()
2028 snd_emu10k1_init_stereo_control(controls + i++, "Wave Capture Volume", gpr, 0); in _snd_emu10k1_init_efx()
2029 snd_emu10k1_init_stereo_onoff_control(controls + i++, "Wave Capture Switch", gpr + 2, 0); in _snd_emu10k1_init_efx()
2030 gpr += 4; in _snd_emu10k1_init_efx()
2034 VOLUME_ADD(icode, &ptr, playback + z, 2 + z, gpr + z); in _snd_emu10k1_init_efx()
2035 snd_emu10k1_init_stereo_control(controls + i++, "Synth Playback Volume", gpr, 100); in _snd_emu10k1_init_efx()
2036 gpr += 2; in _snd_emu10k1_init_efx()
2040 SWITCH(icode, &ptr, tmp + 0, 2 + z, gpr + 2 + z); in _snd_emu10k1_init_efx()
2041 VOLUME_ADD(icode, &ptr, capture + z, tmp + 0, gpr + z); in _snd_emu10k1_init_efx()
2043 snd_emu10k1_init_stereo_control(controls + i++, "Synth Capture Volume", gpr, 0); in _snd_emu10k1_init_efx()
2044 snd_emu10k1_init_stereo_onoff_control(controls + i++, "Synth Capture Switch", gpr + 2, 0); in _snd_emu10k1_init_efx()
2045 gpr += 4; in _snd_emu10k1_init_efx()
2049 VOLUME_ADD(icode, &ptr, playback + 2 + z, 4 + z, gpr + z); in _snd_emu10k1_init_efx()
2050 snd_emu10k1_init_stereo_control(controls + i++, "Surround Digital Playback Volume", gpr, 100); in _snd_emu10k1_init_efx()
2051 gpr += 2; in _snd_emu10k1_init_efx()
2055 SWITCH(icode, &ptr, tmp + 0, 4 + z, gpr + 2 + z); in _snd_emu10k1_init_efx()
2056 VOLUME_ADD(icode, &ptr, capture + z, tmp + 0, gpr + z); in _snd_emu10k1_init_efx()
2058 snd_emu10k1_init_stereo_control(controls + i++, "Surround Capture Volume", gpr, 0); in _snd_emu10k1_init_efx()
2059 snd_emu10k1_init_stereo_onoff_control(controls + i++, "Surround Capture Switch", gpr + 2, 0); in _snd_emu10k1_init_efx()
2060 gpr += 4; in _snd_emu10k1_init_efx()
2063 VOLUME_ADD(icode, &ptr, playback + 4, 6, gpr); in _snd_emu10k1_init_efx()
2064 snd_emu10k1_init_mono_control(controls + i++, "Center Digital Playback Volume", gpr++, 100); in _snd_emu10k1_init_efx()
2067 VOLUME_ADD(icode, &ptr, playback + 5, 7, gpr); in _snd_emu10k1_init_efx()
2068 snd_emu10k1_init_mono_control(controls + i++, "LFE Digital Playback Volume", gpr++, 100); in _snd_emu10k1_init_efx()
2072 VOLUME_ADD(icode, &ptr, playback + z, 10 + z, gpr + z); in _snd_emu10k1_init_efx()
2073 snd_emu10k1_init_stereo_control(controls + i++, "Front Playback Volume", gpr, 100); in _snd_emu10k1_init_efx()
2074 gpr += 2; in _snd_emu10k1_init_efx()
2078 SWITCH(icode, &ptr, tmp + 0, 10 + z, gpr + 2); in _snd_emu10k1_init_efx()
2079 VOLUME_ADD(icode, &ptr, capture + z, tmp + 0, gpr + z); in _snd_emu10k1_init_efx()
2081 snd_emu10k1_init_stereo_control(controls + i++, "Front Capture Volume", gpr, 0); in _snd_emu10k1_init_efx()
2082 snd_emu10k1_init_mono_onoff_control(controls + i++, "Front Capture Switch", gpr + 2, 0); in _snd_emu10k1_init_efx()
2083 gpr += 3; in _snd_emu10k1_init_efx()
2091 VOLUME_ADDIN(icode, &ptr, playback + 0, EXTIN_AC97_L, gpr); gpr++; in _snd_emu10k1_init_efx()
2092 VOLUME_ADDIN(icode, &ptr, playback + 1, EXTIN_AC97_R, gpr); gpr++; in _snd_emu10k1_init_efx()
2093 snd_emu10k1_init_stereo_control(controls + i++, "AC97 Playback Volume", gpr-2, 0); in _snd_emu10k1_init_efx()
2095 VOLUME_ADDIN(icode, &ptr, capture + 0, EXTIN_AC97_L, gpr); gpr++; in _snd_emu10k1_init_efx()
2096 VOLUME_ADDIN(icode, &ptr, capture + 1, EXTIN_AC97_R, gpr); gpr++; in _snd_emu10k1_init_efx()
2097 snd_emu10k1_init_stereo_control(controls + i++, "AC97 Capture Volume", gpr-2, 100); in _snd_emu10k1_init_efx()
2103 VOLUME_ADDIN(icode, &ptr, playback + z, EXTIN_SPDIF_CD_L + z, gpr + z); in _snd_emu10k1_init_efx()
2104 …emu10k1_init_stereo_control(controls + i++, SNDRV_CTL_NAME_IEC958("TTL ",PLAYBACK,VOLUME), gpr, 0); in _snd_emu10k1_init_efx()
2105 gpr += 2; in _snd_emu10k1_init_efx()
2109 SWITCH_IN(icode, &ptr, tmp + 0, EXTIN_SPDIF_CD_L + z, gpr + 2 + z); in _snd_emu10k1_init_efx()
2110 VOLUME_ADD(icode, &ptr, capture + z, tmp + 0, gpr + z); in _snd_emu10k1_init_efx()
2112 …snd_emu10k1_init_stereo_control(controls + i++, SNDRV_CTL_NAME_IEC958("TTL ",CAPTURE,VOLUME), gpr,… in _snd_emu10k1_init_efx()
2113 …nit_stereo_onoff_control(controls + i++, SNDRV_CTL_NAME_IEC958("TTL ",CAPTURE,SWITCH), gpr + 2, 0); in _snd_emu10k1_init_efx()
2114 gpr += 4; in _snd_emu10k1_init_efx()
2120 VOLUME_ADDIN(icode, &ptr, playback + z, EXTIN_ZOOM_L + z, gpr + z); in _snd_emu10k1_init_efx()
2121 snd_emu10k1_init_stereo_control(controls + i++, "Zoom Video Playback Volume", gpr, 0); in _snd_emu10k1_init_efx()
2122 gpr += 2; in _snd_emu10k1_init_efx()
2126 SWITCH_IN(icode, &ptr, tmp + 0, EXTIN_ZOOM_L + z, gpr + 2 + z); in _snd_emu10k1_init_efx()
2127 VOLUME_ADD(icode, &ptr, capture + z, tmp + 0, gpr + z); in _snd_emu10k1_init_efx()
2129 snd_emu10k1_init_stereo_control(controls + i++, "Zoom Video Capture Volume", gpr, 0); in _snd_emu10k1_init_efx()
2130 snd_emu10k1_init_stereo_onoff_control(controls + i++, "Zoom Video Capture Switch", gpr + 2, 0); in _snd_emu10k1_init_efx()
2131 gpr += 4; in _snd_emu10k1_init_efx()
2137 VOLUME_ADDIN(icode, &ptr, playback + z, EXTIN_TOSLINK_L + z, gpr + z); in _snd_emu10k1_init_efx()
2138 …1_init_stereo_control(controls + i++, SNDRV_CTL_NAME_IEC958("LiveDrive ",PLAYBACK,VOLUME), gpr, 0); in _snd_emu10k1_init_efx()
2139 gpr += 2; in _snd_emu10k1_init_efx()
2143 SWITCH_IN(icode, &ptr, tmp + 0, EXTIN_TOSLINK_L + z, gpr + 2 + z); in _snd_emu10k1_init_efx()
2144 VOLUME_ADD(icode, &ptr, capture + z, tmp + 0, gpr + z); in _snd_emu10k1_init_efx()
2146 …k1_init_stereo_control(controls + i++, SNDRV_CTL_NAME_IEC958("LiveDrive ",CAPTURE,VOLUME), gpr, 0); in _snd_emu10k1_init_efx()
2147 …ereo_onoff_control(controls + i++, SNDRV_CTL_NAME_IEC958("LiveDrive ",CAPTURE,SWITCH), gpr + 2, 0); in _snd_emu10k1_init_efx()
2148 gpr += 4; in _snd_emu10k1_init_efx()
2154 VOLUME_ADDIN(icode, &ptr, playback + z, EXTIN_LINE1_L + z, gpr + z); in _snd_emu10k1_init_efx()
2155 snd_emu10k1_init_stereo_control(controls + i++, "Line LiveDrive Playback Volume", gpr, 0); in _snd_emu10k1_init_efx()
2156 gpr += 2; in _snd_emu10k1_init_efx()
2160 SWITCH_IN(icode, &ptr, tmp + 0, EXTIN_LINE1_L + z, gpr + 2 + z); in _snd_emu10k1_init_efx()
2161 VOLUME_ADD(icode, &ptr, capture + z, tmp + 0, gpr + z); in _snd_emu10k1_init_efx()
2163 snd_emu10k1_init_stereo_control(controls + i++, "Line LiveDrive Capture Volume", gpr, 0); in _snd_emu10k1_init_efx()
2164 …snd_emu10k1_init_stereo_onoff_control(controls + i++, "Line LiveDrive Capture Switch", gpr + 2, 0); in _snd_emu10k1_init_efx()
2165 gpr += 4; in _snd_emu10k1_init_efx()
2171 VOLUME_ADDIN(icode, &ptr, playback + z, EXTIN_COAX_SPDIF_L + z, gpr + z); in _snd_emu10k1_init_efx()
2172 …0k1_init_stereo_control(controls + i++, SNDRV_CTL_NAME_IEC958("Coaxial ",PLAYBACK,VOLUME), gpr, 0); in _snd_emu10k1_init_efx()
2173 gpr += 2; in _snd_emu10k1_init_efx()
2177 SWITCH_IN(icode, &ptr, tmp + 0, EXTIN_COAX_SPDIF_L + z, gpr + 2 + z); in _snd_emu10k1_init_efx()
2178 VOLUME_ADD(icode, &ptr, capture + z, tmp + 0, gpr + z); in _snd_emu10k1_init_efx()
2180 …10k1_init_stereo_control(controls + i++, SNDRV_CTL_NAME_IEC958("Coaxial ",CAPTURE,VOLUME), gpr, 0); in _snd_emu10k1_init_efx()
2181 …stereo_onoff_control(controls + i++, SNDRV_CTL_NAME_IEC958("Coaxial ",CAPTURE,SWITCH), gpr + 2, 0); in _snd_emu10k1_init_efx()
2182 gpr += 4; in _snd_emu10k1_init_efx()
2188 VOLUME_ADDIN(icode, &ptr, playback + z, EXTIN_LINE2_L + z, gpr + z); in _snd_emu10k1_init_efx()
2189 snd_emu10k1_init_stereo_control(controls + i++, "Line2 LiveDrive Playback Volume", gpr, 0); in _snd_emu10k1_init_efx()
2191 gpr += 2; in _snd_emu10k1_init_efx()
2195 SWITCH_IN(icode, &ptr, tmp + 0, EXTIN_LINE2_L + z, gpr + 2 + z); in _snd_emu10k1_init_efx()
2196 VOLUME_ADD(icode, &ptr, capture + z, tmp + 0, gpr + z); in _snd_emu10k1_init_efx()
2198 snd_emu10k1_init_stereo_control(controls + i++, "Line2 LiveDrive Capture Volume", gpr, 0); in _snd_emu10k1_init_efx()
2200 …snd_emu10k1_init_stereo_onoff_control(controls + i++, "Line2 LiveDrive Capture Switch", gpr + 2, 0… in _snd_emu10k1_init_efx()
2202 gpr += 4; in _snd_emu10k1_init_efx()
2208 …OP(icode, &ptr, iACC3, GPR(playback + SND_EMU10K1_PLAYBACK_CHANNELS + 0), GPR(playback + 0), C_000… in _snd_emu10k1_init_efx()
2209 …OP(icode, &ptr, iACC3, GPR(playback + SND_EMU10K1_PLAYBACK_CHANNELS + 1), GPR(playback + 1), C_000… in _snd_emu10k1_init_efx()
2210 …OP(icode, &ptr, iACC3, GPR(playback + SND_EMU10K1_PLAYBACK_CHANNELS + 2), GPR(playback + 2), C_000… in _snd_emu10k1_init_efx()
2211 …OP(icode, &ptr, iACC3, GPR(playback + SND_EMU10K1_PLAYBACK_CHANNELS + 3), GPR(playback + 3), C_000… in _snd_emu10k1_init_efx()
2212 …OP(icode, &ptr, iACC3, GPR(playback + SND_EMU10K1_PLAYBACK_CHANNELS + 4), GPR(playback + 4), C_000… in _snd_emu10k1_init_efx()
2213 …OP(icode, &ptr, iACC3, GPR(playback + SND_EMU10K1_PLAYBACK_CHANNELS + 5), GPR(playback + 5), C_000… in _snd_emu10k1_init_efx()
2242 controls[i + 0].gpr[z * 2 + j] = BASS_GPR + z * 2 + j; in _snd_emu10k1_init_efx()
2243 controls[i + 1].gpr[z * 2 + j] = TREBLE_GPR + z * 2 + j; in _snd_emu10k1_init_efx()
2253 OP(icode, &ptr, iMAC0, C_00000000, C_00000000, GPR(d), GPR(BASS_GPR + 0 + j)); in _snd_emu10k1_init_efx()
2254 OP(icode, &ptr, iMACMV, GPR(k+1), GPR(k), GPR(k+1), GPR(BASS_GPR + 4 + j)); in _snd_emu10k1_init_efx()
2255 OP(icode, &ptr, iMACMV, GPR(k), GPR(d), GPR(k), GPR(BASS_GPR + 2 + j)); in _snd_emu10k1_init_efx()
2256 OP(icode, &ptr, iMACMV, GPR(k+3), GPR(k+2), GPR(k+3), GPR(BASS_GPR + 8 + j)); in _snd_emu10k1_init_efx()
2257 OP(icode, &ptr, iMAC0, GPR(k+2), GPR_ACCU, GPR(k+2), GPR(BASS_GPR + 6 + j)); in _snd_emu10k1_init_efx()
2258 OP(icode, &ptr, iACC3, GPR(k+2), GPR(k+2), GPR(k+2), C_00000000); in _snd_emu10k1_init_efx()
2260 OP(icode, &ptr, iMAC0, C_00000000, C_00000000, GPR(k+2), GPR(TREBLE_GPR + 0 + j)); in _snd_emu10k1_init_efx()
2261 OP(icode, &ptr, iMACMV, GPR(l+1), GPR(l), GPR(l+1), GPR(TREBLE_GPR + 4 + j)); in _snd_emu10k1_init_efx()
2262 OP(icode, &ptr, iMACMV, GPR(l), GPR(k+2), GPR(l), GPR(TREBLE_GPR + 2 + j)); in _snd_emu10k1_init_efx()
2263 OP(icode, &ptr, iMACMV, GPR(l+3), GPR(l+2), GPR(l+3), GPR(TREBLE_GPR + 8 + j)); in _snd_emu10k1_init_efx()
2264 OP(icode, &ptr, iMAC0, GPR(l+2), GPR_ACCU, GPR(l+2), GPR(TREBLE_GPR + 6 + j)); in _snd_emu10k1_init_efx()
2265 OP(icode, &ptr, iMACINT0, GPR(l+2), C_00000000, GPR(l+2), C_00000010); in _snd_emu10k1_init_efx()
2267 OP(icode, &ptr, iACC3, GPR(d), GPR(l+2), C_00000000, C_00000000); in _snd_emu10k1_init_efx()
2279 SWITCH(icode, &ptr, tmp + 0, playback + SND_EMU10K1_PLAYBACK_CHANNELS + z, gpr + 0); in _snd_emu10k1_init_efx()
2280 SWITCH_NEG(icode, &ptr, tmp + 1, gpr + 0); in _snd_emu10k1_init_efx()
2282 …OP(icode, &ptr, iACC3, GPR(playback + SND_EMU10K1_PLAYBACK_CHANNELS + z), GPR(tmp + 0), GPR(tmp + … in _snd_emu10k1_init_efx()
2284 snd_emu10k1_init_stereo_onoff_control(controls + i++, "Tone Control - Switch", gpr, 0); in _snd_emu10k1_init_efx()
2285 gpr += 2; in _snd_emu10k1_init_efx()
2294 …OP(icode, &ptr, iACC3, EXTOUT(EXTOUT_AC97_L + z), GPR(playback + SND_EMU10K1_PLAYBACK_CHANNELS + z… in _snd_emu10k1_init_efx()
2301 SWITCH(icode, &ptr, tmp + 0, 8 + z, gpr + z); in _snd_emu10k1_init_efx()
2302 SWITCH_NEG(icode, &ptr, tmp + 1, gpr + z); in _snd_emu10k1_init_efx()
2304 OP(icode, &ptr, iACC3, EXTOUT(EXTOUT_TOSLINK_L + z), GPR(tmp + 0), GPR(tmp + 1), C_00000000); in _snd_emu10k1_init_efx()
2306 OP(icode, &ptr, iACC3, EXTOUT(EXTOUT_ADC_CAP_L + z), GPR(tmp + 0), GPR(tmp + 1), C_00000000); in _snd_emu10k1_init_efx()
2310 …tereo_onoff_control(controls + i++, SNDRV_CTL_NAME_IEC958("Optical Raw ",PLAYBACK,SWITCH), gpr, 0); in _snd_emu10k1_init_efx()
2311 gpr += 2; in _snd_emu10k1_init_efx()
2318 SWITCH(icode, &ptr, tmp + 0, playback + SND_EMU10K1_PLAYBACK_CHANNELS + 4 + z, gpr + 2 + z); in _snd_emu10k1_init_efx()
2319 SWITCH_NEG(icode, &ptr, tmp + 1, gpr + 2 + z); in _snd_emu10k1_init_efx()
2321 OP(icode, &ptr, iACC3, GPR(tmp + 0), GPR(tmp + 0), GPR(tmp + 1), C_00000000); in _snd_emu10k1_init_efx()
2322 VOLUME_OUT(icode, &ptr, EXTOUT_HEADPHONE_L + z, tmp + 0, gpr + z); in _snd_emu10k1_init_efx()
2325 snd_emu10k1_init_stereo_control(controls + i++, "Headphone Playback Volume", gpr + 0, 0); in _snd_emu10k1_init_efx()
2327 …snd_emu10k1_init_mono_onoff_control(controls + i++, "Headphone Center Playback Switch", gpr + 2, 0… in _snd_emu10k1_init_efx()
2329 snd_emu10k1_init_mono_onoff_control(controls + i++, "Headphone LFE Playback Switch", gpr + 3, 0); in _snd_emu10k1_init_efx()
2332 gpr += 4; in _snd_emu10k1_init_efx()
2337 …OP(icode, &ptr, iACC3, EXTOUT(EXTOUT_REAR_L + z), GPR(playback + SND_EMU10K1_PLAYBACK_CHANNELS + 2… in _snd_emu10k1_init_efx()
2341 …OP(icode, &ptr, iACC3, EXTOUT(EXTOUT_AC97_REAR_L + z), GPR(playback + SND_EMU10K1_PLAYBACK_CHANNEL… in _snd_emu10k1_init_efx()
2345 …OP(icode, &ptr, iACC3, EXTOUT(EXTOUT_AC97_CENTER), GPR(playback + SND_EMU10K1_PLAYBACK_CHANNELS + … in _snd_emu10k1_init_efx()
2346 …OP(icode, &ptr, iACC3, EXTOUT(EXTOUT_ACENTER), GPR(playback + SND_EMU10K1_PLAYBACK_CHANNELS + 4), … in _snd_emu10k1_init_efx()
2348 …OP(icode, &ptr, iACC3, EXTOUT(EXTOUT_AC97_CENTER), GPR(playback + SND_EMU10K1_PLAYBACK_CHANNELS + … in _snd_emu10k1_init_efx()
2349 …OP(icode, &ptr, iACC3, EXTOUT(EXTOUT_ACENTER), GPR(playback + SND_EMU10K1_PLAYBACK_CHANNELS + 0), … in _snd_emu10k1_init_efx()
2355 …OP(icode, &ptr, iACC3, EXTOUT(EXTOUT_AC97_LFE), GPR(playback + SND_EMU10K1_PLAYBACK_CHANNELS + 5),… in _snd_emu10k1_init_efx()
2356 …OP(icode, &ptr, iACC3, EXTOUT(EXTOUT_ALFE), GPR(playback + SND_EMU10K1_PLAYBACK_CHANNELS + 5), C_0… in _snd_emu10k1_init_efx()
2358 …OP(icode, &ptr, iACC3, EXTOUT(EXTOUT_AC97_LFE), GPR(playback + SND_EMU10K1_PLAYBACK_CHANNELS + 1),… in _snd_emu10k1_init_efx()
2359 …OP(icode, &ptr, iACC3, EXTOUT(EXTOUT_ALFE), GPR(playback + SND_EMU10K1_PLAYBACK_CHANNELS + 1), C_0… in _snd_emu10k1_init_efx()
2365 OP(icode, &ptr, iACC3, EXTOUT(EXTOUT_ADC_CAP_L + z), GPR(capture + z), C_00000000, C_00000000); in _snd_emu10k1_init_efx()
2369 OP(icode, &ptr, iACC3, EXTOUT(EXTOUT_MIC_CAP), GPR(capture + 2), C_00000000, C_00000000); in _snd_emu10k1_init_efx()
2394 if (gpr > tmp) { in _snd_emu10k1_init_efx()
2730 * save/restore GPR, TRAM and codes