Lines Matching refs:gpr

379 			snd_emu10k1_ptr_write(emu, emu->gpr_base + ctl->gpr[i], 0, val);  in snd_emu10k1_gpr_ctl_put()
382 snd_emu10k1_ptr_write(emu, emu->gpr_base + ctl->gpr[i], 0, ~val); in snd_emu10k1_gpr_ctl_put()
385 snd_emu10k1_ptr_write(emu, emu->gpr_base + ctl->gpr[i], 0, db_table[val]); in snd_emu10k1_gpr_ctl_put()
388 snd_emu10k1_ptr_write(emu, emu->gpr_base + ctl->gpr[i], 0, in snd_emu10k1_gpr_ctl_put()
397 … 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()
405 …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()
408 snd_emu10k1_ptr_write(emu, emu->gpr_base + ctl->gpr[i], 0, onoff_table[val]); in snd_emu10k1_gpr_ctl_put()
539 int gpr; in snd_emu10k1_gpr_poke() local
542 for (gpr = 0; gpr < (emu->audigy ? 0x200 : 0x100); gpr++) { in snd_emu10k1_gpr_poke()
543 if (!test_bit(gpr, icode->gpr_valid)) in snd_emu10k1_gpr_poke()
546 val = icode->gpr_map[gpr]; in snd_emu10k1_gpr_poke()
547 else if (get_user(val, (__user u32 *)&icode->gpr_map[gpr])) in snd_emu10k1_gpr_poke()
549 snd_emu10k1_ptr_write(emu, emu->gpr_base + gpr, 0, val); in snd_emu10k1_gpr_poke()
557 int gpr; in snd_emu10k1_gpr_peek() local
560 for (gpr = 0; gpr < (emu->audigy ? 0x200 : 0x100); gpr++) { in snd_emu10k1_gpr_peek()
561 set_bit(gpr, icode->gpr_valid); in snd_emu10k1_gpr_peek()
562 val = snd_emu10k1_ptr_read(emu, emu->gpr_base + gpr, 0); in snd_emu10k1_gpr_peek()
563 if (put_user(val, (__user u32 *)&icode->gpr_map[gpr])) in snd_emu10k1_gpr_peek()
913 nctl->gpr[j] = gctl->gpr[j]; in snd_emu10k1_add_controls()
1005 gctl->gpr[j] = ctl->gpr[j]; in snd_emu10k1_list_controls()
1175 const char *name, int gpr, int defval, int defval_hr) in snd_emu10k1_init_mono_control2() argument
1192 ctl->gpr[0] = gpr + 0; ctl->value[0] = defval; in snd_emu10k1_init_mono_control2()
1194 #define snd_emu10k1_init_mono_control(ctl, name, gpr, defval) \ argument
1195 snd_emu10k1_init_mono_control2(ctl, name, gpr, defval, HR_VAL(defval))
1199 const char *name, int gpr, int defval, int defval_hr) in snd_emu10k1_init_stereo_control2() argument
1216 ctl->gpr[0] = gpr + 0; ctl->value[0] = defval; in snd_emu10k1_init_stereo_control2()
1217 ctl->gpr[1] = gpr + 1; ctl->value[1] = defval; in snd_emu10k1_init_stereo_control2()
1219 #define snd_emu10k1_init_stereo_control(ctl, name, gpr, defval) \ argument
1220 snd_emu10k1_init_stereo_control2(ctl, name, gpr, defval, HR_VAL(defval))
1224 const char *name, int gpr, int defval) in snd_emu10k1_init_mono_onoff_control() argument
1229 ctl->gpr[0] = gpr + 0; ctl->value[0] = defval; in snd_emu10k1_init_mono_onoff_control()
1237 const char *name, int gpr, int defval) in snd_emu10k1_init_stereo_onoff_control() argument
1242 ctl->gpr[0] = gpr + 0; ctl->value[0] = defval; in snd_emu10k1_init_stereo_onoff_control()
1243 ctl->gpr[1] = gpr + 1; ctl->value[1] = defval; in snd_emu10k1_init_stereo_onoff_control()
1296 int gpr = num_static_gprs; in _snd_emu10k1_audigy_init_efx() local
1339 A_OP(icode, &ptr, iMAC1, A_GPR(playback), A_C_00000000, A_GPR(gpr), A_FXBUS(FXBUS_PCM_LEFT_FRONT)); in _snd_emu10k1_audigy_init_efx()
1340 …A_OP(icode, &ptr, iMAC1, A_GPR(playback+1), A_C_00000000, A_GPR(gpr+1), A_FXBUS(FXBUS_PCM_RIGHT_FR… in _snd_emu10k1_audigy_init_efx()
1341 snd_emu10k1_init_stereo_control(&controls[nctl++], "PCM Front Playback Volume", gpr, 100); in _snd_emu10k1_audigy_init_efx()
1342 gpr += 2; in _snd_emu10k1_audigy_init_efx()
1345 …A_OP(icode, &ptr, iMAC1, A_GPR(playback+2), A_C_00000000, A_GPR(gpr), A_FXBUS(FXBUS_PCM_LEFT_REAR)… in _snd_emu10k1_audigy_init_efx()
1346 …A_OP(icode, &ptr, iMAC1, A_GPR(playback+3), A_C_00000000, A_GPR(gpr+1), A_FXBUS(FXBUS_PCM_RIGHT_RE… in _snd_emu10k1_audigy_init_efx()
1347 snd_emu10k1_init_stereo_control(&controls[nctl++], "PCM Surround Playback Volume", gpr, 100); in _snd_emu10k1_audigy_init_efx()
1348 gpr += 2; in _snd_emu10k1_audigy_init_efx()
1352 …A_OP(icode, &ptr, iMAC1, A_GPR(playback+6), A_C_00000000, A_GPR(gpr), A_FXBUS(FXBUS_PCM_LEFT_SIDE)… in _snd_emu10k1_audigy_init_efx()
1353 …A_OP(icode, &ptr, iMAC1, A_GPR(playback+7), A_C_00000000, A_GPR(gpr+1), A_FXBUS(FXBUS_PCM_RIGHT_SI… in _snd_emu10k1_audigy_init_efx()
1354 snd_emu10k1_init_stereo_control(&controls[nctl++], "PCM Side Playback Volume", gpr, 100); in _snd_emu10k1_audigy_init_efx()
1355 gpr += 2; in _snd_emu10k1_audigy_init_efx()
1359 A_OP(icode, &ptr, iMAC1, A_GPR(playback+4), A_C_00000000, A_GPR(gpr), A_FXBUS(FXBUS_PCM_CENTER)); in _snd_emu10k1_audigy_init_efx()
1360 snd_emu10k1_init_mono_control(&controls[nctl++], "PCM Center Playback Volume", gpr, 100); in _snd_emu10k1_audigy_init_efx()
1361 gpr++; in _snd_emu10k1_audigy_init_efx()
1364 A_OP(icode, &ptr, iMAC1, A_GPR(playback+5), A_C_00000000, A_GPR(gpr), A_FXBUS(FXBUS_PCM_LFE)); in _snd_emu10k1_audigy_init_efx()
1365 snd_emu10k1_init_mono_control(&controls[nctl++], "PCM LFE Playback Volume", gpr, 100); in _snd_emu10k1_audigy_init_efx()
1366 gpr++; in _snd_emu10k1_audigy_init_efx()
1372 A_OP(icode, &ptr, iMAC1, A_GPR(stereo_mix), A_C_00000000, A_GPR(gpr), A_FXBUS(FXBUS_PCM_LEFT)); in _snd_emu10k1_audigy_init_efx()
1373 …A_OP(icode, &ptr, iMAC1, A_GPR(stereo_mix+1), A_C_00000000, A_GPR(gpr+1), A_FXBUS(FXBUS_PCM_RIGHT)… in _snd_emu10k1_audigy_init_efx()
1374 snd_emu10k1_init_stereo_control(&controls[nctl++], "Wave Playback Volume", gpr, 100); in _snd_emu10k1_audigy_init_efx()
1375 gpr += 2; in _snd_emu10k1_audigy_init_efx()
1378 …A_OP(icode, &ptr, iMAC1, A_GPR(stereo_mix+0), A_GPR(stereo_mix+0), A_GPR(gpr), A_FXBUS(FXBUS_MIDI_… in _snd_emu10k1_audigy_init_efx()
1379 …A_OP(icode, &ptr, iMAC1, A_GPR(stereo_mix+1), A_GPR(stereo_mix+1), A_GPR(gpr+1), A_FXBUS(FXBUS_MID… in _snd_emu10k1_audigy_init_efx()
1380 snd_emu10k1_init_stereo_control(&controls[nctl++], "Synth Playback Volume", gpr, 100); in _snd_emu10k1_audigy_init_efx()
1381 gpr += 2; in _snd_emu10k1_audigy_init_efx()
1384 A_OP(icode, &ptr, iMAC1, A_GPR(capture+0), A_C_00000000, A_GPR(gpr), A_FXBUS(FXBUS_PCM_LEFT)); in _snd_emu10k1_audigy_init_efx()
1385 A_OP(icode, &ptr, iMAC1, A_GPR(capture+1), A_C_00000000, A_GPR(gpr+1), A_FXBUS(FXBUS_PCM_RIGHT)); in _snd_emu10k1_audigy_init_efx()
1386 snd_emu10k1_init_stereo_control(&controls[nctl++], "PCM Capture Volume", gpr, 0); in _snd_emu10k1_audigy_init_efx()
1387 gpr += 2; in _snd_emu10k1_audigy_init_efx()
1390 A_OP(icode, &ptr, iMAC1, A_GPR(capture+0), A_GPR(capture+0), A_GPR(gpr), A_FXBUS(FXBUS_MIDI_LEFT)); in _snd_emu10k1_audigy_init_efx()
1391 …A_OP(icode, &ptr, iMAC1, A_GPR(capture+1), A_GPR(capture+1), A_GPR(gpr+1), A_FXBUS(FXBUS_MIDI_RIGH… in _snd_emu10k1_audigy_init_efx()
1392 snd_emu10k1_init_stereo_control(&controls[nctl++], "Synth Capture Volume", gpr, 0); in _snd_emu10k1_audigy_init_efx()
1393 gpr += 2; in _snd_emu10k1_audigy_init_efx()
1412 A_OP(icode, &ptr, iMAC1, A_GPR(capture+0), A_GPR(capture+0), A3_EMU32IN(0x0), A_GPR(gpr)); in _snd_emu10k1_audigy_init_efx()
1415 A_OP(icode, &ptr, iMAC1, A_GPR(capture+1), A_GPR(capture+1), A_GPR(gpr+2), A_GPR(gpr+1)); in _snd_emu10k1_audigy_init_efx()
1416 A_OP(icode, &ptr, iACC3, A_GPR(gpr+2), A3_EMU32IN(0x1), A_C_00000000, A_C_00000000); in _snd_emu10k1_audigy_init_efx()
1418 A_OP(icode, &ptr, iMAC1, A_GPR(capture+0), A_GPR(capture+0), A_P16VIN(0x0), A_GPR(gpr)); in _snd_emu10k1_audigy_init_efx()
1421 A_OP(icode, &ptr, iMAC1, A_GPR(capture+1), A_GPR(capture+1), A_GPR(gpr+2), A_GPR(gpr+1)); in _snd_emu10k1_audigy_init_efx()
1422 A_OP(icode, &ptr, iACC3, A_GPR(gpr+2), A_P16VIN(0x1), A_C_00000000, A_C_00000000); in _snd_emu10k1_audigy_init_efx()
1424 snd_emu10k1_init_stereo_control(&controls[nctl++], "EMU Capture Volume", gpr, 0); in _snd_emu10k1_audigy_init_efx()
1425 gpr_map[gpr + 2] = 0x00000000; in _snd_emu10k1_audigy_init_efx()
1426 gpr += 3; in _snd_emu10k1_audigy_init_efx()
1430 A_ADD_VOLUME_IN(stereo_mix, gpr, A_EXTIN_AC97_L); in _snd_emu10k1_audigy_init_efx()
1431 A_ADD_VOLUME_IN(stereo_mix+1, gpr+1, A_EXTIN_AC97_R); in _snd_emu10k1_audigy_init_efx()
1432 snd_emu10k1_init_stereo_control(&controls[nctl++], "AMic Playback Volume", gpr, 0); in _snd_emu10k1_audigy_init_efx()
1433 gpr += 2; in _snd_emu10k1_audigy_init_efx()
1435 A_ADD_VOLUME_IN(capture, gpr, A_EXTIN_AC97_L); in _snd_emu10k1_audigy_init_efx()
1436 A_ADD_VOLUME_IN(capture+1, gpr+1, A_EXTIN_AC97_R); in _snd_emu10k1_audigy_init_efx()
1437 snd_emu10k1_init_stereo_control(&controls[nctl++], "Mic Capture Volume", gpr, 0); in _snd_emu10k1_audigy_init_efx()
1438 gpr += 2; in _snd_emu10k1_audigy_init_efx()
1445 A_ADD_VOLUME_IN(stereo_mix, gpr, A_EXTIN_SPDIF_CD_L); in _snd_emu10k1_audigy_init_efx()
1446 A_ADD_VOLUME_IN(stereo_mix+1, gpr+1, A_EXTIN_SPDIF_CD_R); in _snd_emu10k1_audigy_init_efx()
1449 gpr, 0); in _snd_emu10k1_audigy_init_efx()
1450 gpr += 2; in _snd_emu10k1_audigy_init_efx()
1452 A_ADD_VOLUME_IN(capture, gpr, A_EXTIN_SPDIF_CD_L); in _snd_emu10k1_audigy_init_efx()
1453 A_ADD_VOLUME_IN(capture+1, gpr+1, A_EXTIN_SPDIF_CD_R); in _snd_emu10k1_audigy_init_efx()
1456 gpr, 0); in _snd_emu10k1_audigy_init_efx()
1457 gpr += 2; in _snd_emu10k1_audigy_init_efx()
1460 A_ADD_VOLUME_IN(stereo_mix, gpr, A_EXTIN_OPT_SPDIF_L); in _snd_emu10k1_audigy_init_efx()
1461 A_ADD_VOLUME_IN(stereo_mix+1, gpr+1, A_EXTIN_OPT_SPDIF_R); in _snd_emu10k1_audigy_init_efx()
1462 …_init_stereo_control(&controls[nctl++], SNDRV_CTL_NAME_IEC958("Optical ",PLAYBACK,VOLUME), gpr, 0); in _snd_emu10k1_audigy_init_efx()
1463 gpr += 2; in _snd_emu10k1_audigy_init_efx()
1465 A_ADD_VOLUME_IN(capture, gpr, A_EXTIN_OPT_SPDIF_L); in _snd_emu10k1_audigy_init_efx()
1466 A_ADD_VOLUME_IN(capture+1, gpr+1, A_EXTIN_OPT_SPDIF_R); in _snd_emu10k1_audigy_init_efx()
1467 …1_init_stereo_control(&controls[nctl++], SNDRV_CTL_NAME_IEC958("Optical ",CAPTURE,VOLUME), gpr, 0); in _snd_emu10k1_audigy_init_efx()
1468 gpr += 2; in _snd_emu10k1_audigy_init_efx()
1471 A_ADD_VOLUME_IN(stereo_mix, gpr, A_EXTIN_LINE2_L); in _snd_emu10k1_audigy_init_efx()
1472 A_ADD_VOLUME_IN(stereo_mix+1, gpr+1, A_EXTIN_LINE2_R); in _snd_emu10k1_audigy_init_efx()
1475 gpr, 0); in _snd_emu10k1_audigy_init_efx()
1476 gpr += 2; in _snd_emu10k1_audigy_init_efx()
1478 A_ADD_VOLUME_IN(capture, gpr, A_EXTIN_LINE2_L); in _snd_emu10k1_audigy_init_efx()
1479 A_ADD_VOLUME_IN(capture+1, gpr+1, A_EXTIN_LINE2_R); in _snd_emu10k1_audigy_init_efx()
1482 gpr, 0); in _snd_emu10k1_audigy_init_efx()
1483 gpr += 2; in _snd_emu10k1_audigy_init_efx()
1486 A_ADD_VOLUME_IN(stereo_mix, gpr, A_EXTIN_ADC_L); in _snd_emu10k1_audigy_init_efx()
1487 A_ADD_VOLUME_IN(stereo_mix+1, gpr+1, A_EXTIN_ADC_R); in _snd_emu10k1_audigy_init_efx()
1488 snd_emu10k1_init_stereo_control(&controls[nctl++], "Analog Mix Playback Volume", gpr, 0); in _snd_emu10k1_audigy_init_efx()
1489 gpr += 2; in _snd_emu10k1_audigy_init_efx()
1491 A_ADD_VOLUME_IN(capture, gpr, A_EXTIN_ADC_L); in _snd_emu10k1_audigy_init_efx()
1492 A_ADD_VOLUME_IN(capture+1, gpr+1, A_EXTIN_ADC_R); in _snd_emu10k1_audigy_init_efx()
1493 snd_emu10k1_init_stereo_control(&controls[nctl++], "Analog Mix Capture Volume", gpr, 0); in _snd_emu10k1_audigy_init_efx()
1494 gpr += 2; in _snd_emu10k1_audigy_init_efx()
1497 A_ADD_VOLUME_IN(stereo_mix, gpr, A_EXTIN_AUX2_L); in _snd_emu10k1_audigy_init_efx()
1498 A_ADD_VOLUME_IN(stereo_mix+1, gpr+1, A_EXTIN_AUX2_R); in _snd_emu10k1_audigy_init_efx()
1501 gpr, 0); in _snd_emu10k1_audigy_init_efx()
1502 gpr += 2; in _snd_emu10k1_audigy_init_efx()
1504 A_ADD_VOLUME_IN(capture, gpr, A_EXTIN_AUX2_L); in _snd_emu10k1_audigy_init_efx()
1505 A_ADD_VOLUME_IN(capture+1, gpr+1, A_EXTIN_AUX2_R); in _snd_emu10k1_audigy_init_efx()
1508 gpr, 0); in _snd_emu10k1_audigy_init_efx()
1509 gpr += 2; in _snd_emu10k1_audigy_init_efx()
1513 A_OP(icode, &ptr, iMAC1, A_GPR(playback), A_GPR(playback), A_GPR(gpr), A_GPR(stereo_mix)); in _snd_emu10k1_audigy_init_efx()
1514 A_OP(icode, &ptr, iMAC1, A_GPR(playback+1), A_GPR(playback+1), A_GPR(gpr+1), A_GPR(stereo_mix+1)); in _snd_emu10k1_audigy_init_efx()
1515 snd_emu10k1_init_stereo_control(&controls[nctl++], "Front Playback Volume", gpr, 100); in _snd_emu10k1_audigy_init_efx()
1516 gpr += 2; in _snd_emu10k1_audigy_init_efx()
1519 A_OP(icode, &ptr, iMAC1, A_GPR(playback+2), A_GPR(playback+2), A_GPR(gpr), A_GPR(stereo_mix)); in _snd_emu10k1_audigy_init_efx()
1520 A_OP(icode, &ptr, iMAC1, A_GPR(playback+3), A_GPR(playback+3), A_GPR(gpr+1), A_GPR(stereo_mix+1)); in _snd_emu10k1_audigy_init_efx()
1521 snd_emu10k1_init_stereo_control(&controls[nctl++], "Surround Playback Volume", gpr, 0); in _snd_emu10k1_audigy_init_efx()
1522 gpr += 2; in _snd_emu10k1_audigy_init_efx()
1527 A_OP(icode, &ptr, iMAC1, A_GPR(playback+4), A_GPR(playback+4), A_GPR(gpr), A_GPR(tmp)); in _snd_emu10k1_audigy_init_efx()
1528 snd_emu10k1_init_mono_control(&controls[nctl++], "Center Playback Volume", gpr, 0); in _snd_emu10k1_audigy_init_efx()
1529 gpr++; in _snd_emu10k1_audigy_init_efx()
1532 A_OP(icode, &ptr, iMAC1, A_GPR(playback+5), A_GPR(playback+5), A_GPR(gpr), A_GPR(tmp)); in _snd_emu10k1_audigy_init_efx()
1533 snd_emu10k1_init_mono_control(&controls[nctl++], "LFE Playback Volume", gpr, 0); in _snd_emu10k1_audigy_init_efx()
1534 gpr++; in _snd_emu10k1_audigy_init_efx()
1538 A_OP(icode, &ptr, iMAC1, A_GPR(playback+6), A_GPR(playback+6), A_GPR(gpr), A_GPR(stereo_mix)); in _snd_emu10k1_audigy_init_efx()
1539 A_OP(icode, &ptr, iMAC1, A_GPR(playback+7), A_GPR(playback+7), A_GPR(gpr+1), A_GPR(stereo_mix+1)); in _snd_emu10k1_audigy_init_efx()
1540 snd_emu10k1_init_stereo_control(&controls[nctl++], "Side Playback Volume", gpr, 0); in _snd_emu10k1_audigy_init_efx()
1541 gpr += 2; in _snd_emu10k1_audigy_init_efx()
1585 controls[nctl + 0].gpr[z * 2 + j] = bass_gpr + z * 2 + j; in _snd_emu10k1_audigy_init_efx()
1586 controls[nctl + 1].gpr[z * 2 + j] = treble_gpr + z * 2 + j; in _snd_emu10k1_audigy_init_efx()
1591 A_OP(icode, &ptr, iACC3, A_C_00000000, A_GPR(gpr), A_C_00000000, A_C_00000000); in _snd_emu10k1_audigy_init_efx()
1592 snd_emu10k1_init_mono_onoff_control(controls + nctl++, "Tone Control - Switch", gpr, 0); in _snd_emu10k1_audigy_init_efx()
1593 gpr++; in _snd_emu10k1_audigy_init_efx()
1594 A_OP(icode, &ptr, iSKIP, A_GPR_COND, A_GPR_COND, A_CC_REG_ZERO, A_GPR(gpr)); in _snd_emu10k1_audigy_init_efx()
1623 gpr_map[gpr++] = ptr - ptr_skip; in _snd_emu10k1_audigy_init_efx()
1627 A_OP(icode, &ptr, iMAC1, A_GPR(playback+z), A_C_00000000, A_GPR(gpr), A_GPR(playback+z)); in _snd_emu10k1_audigy_init_efx()
1628 snd_emu10k1_init_mono_control(&controls[nctl++], "Wave Master Playback Volume", gpr, 0); in _snd_emu10k1_audigy_init_efx()
1629 gpr++; in _snd_emu10k1_audigy_init_efx()
1654 gpr_map[gpr++] = 0; in _snd_emu10k1_audigy_init_efx()
1655 gpr_map[gpr++] = 0x1008; in _snd_emu10k1_audigy_init_efx()
1656 gpr_map[gpr++] = 0xffff0000; in _snd_emu10k1_audigy_init_efx()
1659 A_OP(icode, &ptr, iSKIP, A_GPR_COND, A_GPR_COND, A_GPR(gpr - 2), A_C_00000001); in _snd_emu10k1_audigy_init_efx()
1661 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()
1662 A_SWITCH(icode, &ptr, tmp + 0, tmp + 2, gpr + z); in _snd_emu10k1_audigy_init_efx()
1663 A_SWITCH_NEG(icode, &ptr, tmp + 1, gpr + z); in _snd_emu10k1_audigy_init_efx()
1670 …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()
1671 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()
1676 …eo_onoff_control(controls + nctl++, SNDRV_CTL_NAME_IEC958("Optical Raw ",PLAYBACK,SWITCH), gpr, 0); in _snd_emu10k1_audigy_init_efx()
1677 gpr += 2; in _snd_emu10k1_audigy_init_efx()
1705 A_GPR(gpr), in _snd_emu10k1_audigy_init_efx()
1707 A_OP(icode, &ptr, iACC3, A_GPR(gpr), A3_EMU32IN(z), A_C_00000000, A_C_00000000); in _snd_emu10k1_audigy_init_efx()
1708 gpr_map[gpr++] = 0x00000000; in _snd_emu10k1_audigy_init_efx()
1722 …snd_emu10k1_audigy_dsp_convert_32_to_2x16( icode, &ptr, tmp, bit_shifter16, A_GPR(gpr), A_FXBUS2(z… in _snd_emu10k1_audigy_init_efx()
1723 A_OP(icode, &ptr, iACC3, A_GPR(gpr), A_P16VIN(z), A_C_00000000, A_C_00000000); in _snd_emu10k1_audigy_init_efx()
1724 gpr_map[gpr++] = 0x00000000; in _snd_emu10k1_audigy_init_efx()
1749 if (gpr > 512) { in _snd_emu10k1_audigy_init_efx()
1813 int err, i, z, gpr, tmp, playback, capture; in _snd_emu10k1_init_efx() local
1858 gpr = capture + SND_EMU10K1_CAPTURE_CHANNELS; in _snd_emu10k1_init_efx()
1883 ipcm->gpr_size = gpr++; in _snd_emu10k1_init_efx()
1884 ipcm->gpr_ptr = gpr++; in _snd_emu10k1_init_efx()
1885 ipcm->gpr_count = gpr++; in _snd_emu10k1_init_efx()
1886 ipcm->gpr_tmpcount = gpr++; in _snd_emu10k1_init_efx()
1887 ipcm->gpr_trigger = gpr++; in _snd_emu10k1_init_efx()
1888 ipcm->gpr_running = gpr++; in _snd_emu10k1_init_efx()
1892 gpr_map[gpr + 0] = 0xfffff000; in _snd_emu10k1_init_efx()
1893 gpr_map[gpr + 1] = 0xffff0000; in _snd_emu10k1_init_efx()
1894 gpr_map[gpr + 2] = 0x70000000; in _snd_emu10k1_init_efx()
1895 gpr_map[gpr + 3] = 0x00000007; in _snd_emu10k1_init_efx()
1896 gpr_map[gpr + 4] = 0x001f << 11; in _snd_emu10k1_init_efx()
1897 gpr_map[gpr + 5] = 0x001c << 11; in _snd_emu10k1_init_efx()
1898 gpr_map[gpr + 6] = (0x22 - 0x01) - 1; /* skip at 01 to 22 */ in _snd_emu10k1_init_efx()
1899 gpr_map[gpr + 7] = (0x22 - 0x06) - 1; /* skip at 06 to 22 */ in _snd_emu10k1_init_efx()
1900 gpr_map[gpr + 8] = 0x2000000 + (2<<11); in _snd_emu10k1_init_efx()
1901 gpr_map[gpr + 9] = 0x4000000 + (2<<11); in _snd_emu10k1_init_efx()
1902 gpr_map[gpr + 10] = 1<<11; in _snd_emu10k1_init_efx()
1903 gpr_map[gpr + 11] = (0x24 - 0x0a) - 1; /* skip at 0a to 24 */ in _snd_emu10k1_init_efx()
1904 gpr_map[gpr + 12] = 0; in _snd_emu10k1_init_efx()
1908 /* 01: */ OP(icode, &ptr, iSKIP, GPR_COND, GPR_COND, CC_REG_ZERO, GPR(gpr + 6)); in _snd_emu10k1_init_efx()
1913 /* 04: */ OP(icode, &ptr, iANDXOR, GPR(tmp + 0), GPR_DBAC, GPR(gpr + 4), C_00000000); in _snd_emu10k1_init_efx()
1914 /* 05: */ OP(icode, &ptr, iMACINT0, C_00000000, GPR(tmp + 0), C_ffffffff, GPR(gpr + 5)); in _snd_emu10k1_init_efx()
1915 /* 06: */ OP(icode, &ptr, iSKIP, GPR_COND, GPR_COND, CC_REG_NONZERO, GPR(gpr + 7)); in _snd_emu10k1_init_efx()
1916 /* 07: */ OP(icode, &ptr, iACC3, GPR(gpr + 12), C_00000010, C_00000001, C_00000000); in _snd_emu10k1_init_efx()
1919 /* 09: */ OP(icode, &ptr, iACC3, GPR(gpr + 12), GPR(gpr + 12), C_ffffffff, C_00000000); in _snd_emu10k1_init_efx()
1920 /* 0a: */ OP(icode, &ptr, iSKIP, GPR_COND, GPR_COND, CC_REG_NONZERO, GPR(gpr + 11)); in _snd_emu10k1_init_efx()
1921 /* 0b: */ OP(icode, &ptr, iACC3, GPR(gpr + 12), C_00000001, C_00000000, C_00000000); in _snd_emu10k1_init_efx()
1923 …/* 0c: */ OP(icode, &ptr, iANDXOR, GPR(tmp + 0), ETRAM_DATA(ipcm->etram[0]), GPR(gpr + 0), C_00000… in _snd_emu10k1_init_efx()
1924 /* 0d: */ OP(icode, &ptr, iLOG, GPR(tmp + 0), GPR(tmp + 0), GPR(gpr + 3), C_00000000); in _snd_emu10k1_init_efx()
1925 /* 0e: */ OP(icode, &ptr, iANDXOR, GPR(8), GPR(tmp + 0), GPR(gpr + 1), GPR(gpr + 2)); in _snd_emu10k1_init_efx()
1927 /* 10: */ OP(icode, &ptr, iANDXOR, GPR(8), GPR(8), GPR(gpr + 1), GPR(gpr + 2)); in _snd_emu10k1_init_efx()
1929 …/* 11: */ OP(icode, &ptr, iANDXOR, GPR(tmp + 0), ETRAM_DATA(ipcm->etram[1]), GPR(gpr + 0), C_00000… in _snd_emu10k1_init_efx()
1930 /* 12: */ OP(icode, &ptr, iLOG, GPR(tmp + 0), GPR(tmp + 0), GPR(gpr + 3), C_00000000); in _snd_emu10k1_init_efx()
1931 /* 13: */ OP(icode, &ptr, iANDXOR, GPR(9), GPR(tmp + 0), GPR(gpr + 1), GPR(gpr + 2)); in _snd_emu10k1_init_efx()
1933 /* 15: */ OP(icode, &ptr, iANDXOR, GPR(9), GPR(9), GPR(gpr + 1), GPR(gpr + 2)); in _snd_emu10k1_init_efx()
1950 …/* 22: */ OP(icode, &ptr, iMACINT1, ETRAM_ADDR(ipcm->etram[0]), GPR(gpr + 8), GPR_DBAC, C_ffffffff… in _snd_emu10k1_init_efx()
1951 …/* 23: */ OP(icode, &ptr, iMACINT1, ETRAM_ADDR(ipcm->etram[1]), GPR(gpr + 9), GPR_DBAC, C_ffffffff… in _snd_emu10k1_init_efx()
1954 gpr += 13; in _snd_emu10k1_init_efx()
1958 VOLUME(icode, &ptr, playback + z, z, gpr + z); in _snd_emu10k1_init_efx()
1959 snd_emu10k1_init_stereo_control(controls + i++, "Wave Playback Volume", gpr, 100); in _snd_emu10k1_init_efx()
1960 gpr += 2; in _snd_emu10k1_init_efx()
1964 VOLUME(icode, &ptr, playback + 2 + z, z, gpr + z); in _snd_emu10k1_init_efx()
1965 snd_emu10k1_init_stereo_control(controls + i++, "Wave Surround Playback Volume", gpr, 0); in _snd_emu10k1_init_efx()
1966 gpr += 2; in _snd_emu10k1_init_efx()
1971 VOLUME(icode, &ptr, playback + 4, tmp + 0, gpr); in _snd_emu10k1_init_efx()
1972 snd_emu10k1_init_mono_control(controls + i++, "Wave Center Playback Volume", gpr++, 0); in _snd_emu10k1_init_efx()
1973 VOLUME(icode, &ptr, playback + 5, tmp + 0, gpr); in _snd_emu10k1_init_efx()
1974 snd_emu10k1_init_mono_control(controls + i++, "Wave LFE Playback Volume", gpr++, 0); in _snd_emu10k1_init_efx()
1978 SWITCH(icode, &ptr, tmp + 0, z, gpr + 2 + z); in _snd_emu10k1_init_efx()
1979 VOLUME(icode, &ptr, capture + z, tmp + 0, gpr + z); in _snd_emu10k1_init_efx()
1981 snd_emu10k1_init_stereo_control(controls + i++, "Wave Capture Volume", gpr, 0); in _snd_emu10k1_init_efx()
1982 snd_emu10k1_init_stereo_onoff_control(controls + i++, "Wave Capture Switch", gpr + 2, 0); in _snd_emu10k1_init_efx()
1983 gpr += 4; in _snd_emu10k1_init_efx()
1987 VOLUME_ADD(icode, &ptr, playback + z, 2 + z, gpr + z); in _snd_emu10k1_init_efx()
1988 snd_emu10k1_init_stereo_control(controls + i++, "Synth Playback Volume", gpr, 100); in _snd_emu10k1_init_efx()
1989 gpr += 2; in _snd_emu10k1_init_efx()
1993 SWITCH(icode, &ptr, tmp + 0, 2 + z, gpr + 2 + z); in _snd_emu10k1_init_efx()
1994 VOLUME_ADD(icode, &ptr, capture + z, tmp + 0, gpr + z); in _snd_emu10k1_init_efx()
1996 snd_emu10k1_init_stereo_control(controls + i++, "Synth Capture Volume", gpr, 0); in _snd_emu10k1_init_efx()
1997 snd_emu10k1_init_stereo_onoff_control(controls + i++, "Synth Capture Switch", gpr + 2, 0); in _snd_emu10k1_init_efx()
1998 gpr += 4; in _snd_emu10k1_init_efx()
2002 VOLUME_ADD(icode, &ptr, playback + 2 + z, 4 + z, gpr + z); in _snd_emu10k1_init_efx()
2003 snd_emu10k1_init_stereo_control(controls + i++, "Surround Digital Playback Volume", gpr, 100); in _snd_emu10k1_init_efx()
2004 gpr += 2; in _snd_emu10k1_init_efx()
2008 SWITCH(icode, &ptr, tmp + 0, 4 + z, gpr + 2 + z); in _snd_emu10k1_init_efx()
2009 VOLUME_ADD(icode, &ptr, capture + z, tmp + 0, gpr + z); in _snd_emu10k1_init_efx()
2011 snd_emu10k1_init_stereo_control(controls + i++, "Surround Capture Volume", gpr, 0); in _snd_emu10k1_init_efx()
2012 snd_emu10k1_init_stereo_onoff_control(controls + i++, "Surround Capture Switch", gpr + 2, 0); in _snd_emu10k1_init_efx()
2013 gpr += 4; in _snd_emu10k1_init_efx()
2016 VOLUME_ADD(icode, &ptr, playback + 4, 6, gpr); in _snd_emu10k1_init_efx()
2017 snd_emu10k1_init_mono_control(controls + i++, "Center Digital Playback Volume", gpr++, 100); in _snd_emu10k1_init_efx()
2020 VOLUME_ADD(icode, &ptr, playback + 5, 7, gpr); in _snd_emu10k1_init_efx()
2021 snd_emu10k1_init_mono_control(controls + i++, "LFE Digital Playback Volume", gpr++, 100); in _snd_emu10k1_init_efx()
2025 VOLUME_ADD(icode, &ptr, playback + z, 10 + z, gpr + z); in _snd_emu10k1_init_efx()
2026 snd_emu10k1_init_stereo_control(controls + i++, "Front Playback Volume", gpr, 100); in _snd_emu10k1_init_efx()
2027 gpr += 2; in _snd_emu10k1_init_efx()
2031 SWITCH(icode, &ptr, tmp + 0, 10 + z, gpr + 2); in _snd_emu10k1_init_efx()
2032 VOLUME_ADD(icode, &ptr, capture + z, tmp + 0, gpr + z); in _snd_emu10k1_init_efx()
2034 snd_emu10k1_init_stereo_control(controls + i++, "Front Capture Volume", gpr, 0); in _snd_emu10k1_init_efx()
2035 snd_emu10k1_init_mono_onoff_control(controls + i++, "Front Capture Switch", gpr + 2, 0); in _snd_emu10k1_init_efx()
2036 gpr += 3; in _snd_emu10k1_init_efx()
2044 VOLUME_ADDIN(icode, &ptr, playback + 0, EXTIN_AC97_L, gpr); gpr++; in _snd_emu10k1_init_efx()
2045 VOLUME_ADDIN(icode, &ptr, playback + 1, EXTIN_AC97_R, gpr); gpr++; in _snd_emu10k1_init_efx()
2046 snd_emu10k1_init_stereo_control(controls + i++, "AC97 Playback Volume", gpr-2, 0); in _snd_emu10k1_init_efx()
2048 VOLUME_ADDIN(icode, &ptr, capture + 0, EXTIN_AC97_L, gpr); gpr++; in _snd_emu10k1_init_efx()
2049 VOLUME_ADDIN(icode, &ptr, capture + 1, EXTIN_AC97_R, gpr); gpr++; in _snd_emu10k1_init_efx()
2050 snd_emu10k1_init_stereo_control(controls + i++, "AC97 Capture Volume", gpr-2, 100); in _snd_emu10k1_init_efx()
2056 VOLUME_ADDIN(icode, &ptr, playback + z, EXTIN_SPDIF_CD_L + z, gpr + z); in _snd_emu10k1_init_efx()
2057 …emu10k1_init_stereo_control(controls + i++, SNDRV_CTL_NAME_IEC958("TTL ",PLAYBACK,VOLUME), gpr, 0); in _snd_emu10k1_init_efx()
2058 gpr += 2; in _snd_emu10k1_init_efx()
2062 SWITCH_IN(icode, &ptr, tmp + 0, EXTIN_SPDIF_CD_L + z, gpr + 2 + z); in _snd_emu10k1_init_efx()
2063 VOLUME_ADD(icode, &ptr, capture + z, tmp + 0, gpr + z); in _snd_emu10k1_init_efx()
2065 …snd_emu10k1_init_stereo_control(controls + i++, SNDRV_CTL_NAME_IEC958("TTL ",CAPTURE,VOLUME), gpr,… in _snd_emu10k1_init_efx()
2066 …nit_stereo_onoff_control(controls + i++, SNDRV_CTL_NAME_IEC958("TTL ",CAPTURE,SWITCH), gpr + 2, 0); in _snd_emu10k1_init_efx()
2067 gpr += 4; in _snd_emu10k1_init_efx()
2073 VOLUME_ADDIN(icode, &ptr, playback + z, EXTIN_ZOOM_L + z, gpr + z); in _snd_emu10k1_init_efx()
2074 snd_emu10k1_init_stereo_control(controls + i++, "Zoom Video Playback Volume", gpr, 0); in _snd_emu10k1_init_efx()
2075 gpr += 2; in _snd_emu10k1_init_efx()
2079 SWITCH_IN(icode, &ptr, tmp + 0, EXTIN_ZOOM_L + z, gpr + 2 + z); in _snd_emu10k1_init_efx()
2080 VOLUME_ADD(icode, &ptr, capture + z, tmp + 0, gpr + z); in _snd_emu10k1_init_efx()
2082 snd_emu10k1_init_stereo_control(controls + i++, "Zoom Video Capture Volume", gpr, 0); in _snd_emu10k1_init_efx()
2083 snd_emu10k1_init_stereo_onoff_control(controls + i++, "Zoom Video Capture Switch", gpr + 2, 0); in _snd_emu10k1_init_efx()
2084 gpr += 4; in _snd_emu10k1_init_efx()
2090 VOLUME_ADDIN(icode, &ptr, playback + z, EXTIN_TOSLINK_L + z, gpr + z); in _snd_emu10k1_init_efx()
2091 …1_init_stereo_control(controls + i++, SNDRV_CTL_NAME_IEC958("LiveDrive ",PLAYBACK,VOLUME), gpr, 0); in _snd_emu10k1_init_efx()
2092 gpr += 2; in _snd_emu10k1_init_efx()
2096 SWITCH_IN(icode, &ptr, tmp + 0, EXTIN_TOSLINK_L + z, gpr + 2 + z); in _snd_emu10k1_init_efx()
2097 VOLUME_ADD(icode, &ptr, capture + z, tmp + 0, gpr + z); in _snd_emu10k1_init_efx()
2099 …k1_init_stereo_control(controls + i++, SNDRV_CTL_NAME_IEC958("LiveDrive ",CAPTURE,VOLUME), gpr, 0); in _snd_emu10k1_init_efx()
2100 …ereo_onoff_control(controls + i++, SNDRV_CTL_NAME_IEC958("LiveDrive ",CAPTURE,SWITCH), gpr + 2, 0); in _snd_emu10k1_init_efx()
2101 gpr += 4; in _snd_emu10k1_init_efx()
2107 VOLUME_ADDIN(icode, &ptr, playback + z, EXTIN_LINE1_L + z, gpr + z); in _snd_emu10k1_init_efx()
2108 snd_emu10k1_init_stereo_control(controls + i++, "Line LiveDrive Playback Volume", gpr, 0); in _snd_emu10k1_init_efx()
2109 gpr += 2; in _snd_emu10k1_init_efx()
2113 SWITCH_IN(icode, &ptr, tmp + 0, EXTIN_LINE1_L + z, gpr + 2 + z); in _snd_emu10k1_init_efx()
2114 VOLUME_ADD(icode, &ptr, capture + z, tmp + 0, gpr + z); in _snd_emu10k1_init_efx()
2116 snd_emu10k1_init_stereo_control(controls + i++, "Line LiveDrive Capture Volume", gpr, 0); in _snd_emu10k1_init_efx()
2117 …snd_emu10k1_init_stereo_onoff_control(controls + i++, "Line LiveDrive Capture Switch", gpr + 2, 0); in _snd_emu10k1_init_efx()
2118 gpr += 4; in _snd_emu10k1_init_efx()
2124 VOLUME_ADDIN(icode, &ptr, playback + z, EXTIN_COAX_SPDIF_L + z, gpr + z); in _snd_emu10k1_init_efx()
2125 …0k1_init_stereo_control(controls + i++, SNDRV_CTL_NAME_IEC958("Coaxial ",PLAYBACK,VOLUME), gpr, 0); in _snd_emu10k1_init_efx()
2126 gpr += 2; in _snd_emu10k1_init_efx()
2130 SWITCH_IN(icode, &ptr, tmp + 0, EXTIN_COAX_SPDIF_L + z, gpr + 2 + z); in _snd_emu10k1_init_efx()
2131 VOLUME_ADD(icode, &ptr, capture + z, tmp + 0, gpr + z); in _snd_emu10k1_init_efx()
2133 …10k1_init_stereo_control(controls + i++, SNDRV_CTL_NAME_IEC958("Coaxial ",CAPTURE,VOLUME), gpr, 0); in _snd_emu10k1_init_efx()
2134 …stereo_onoff_control(controls + i++, SNDRV_CTL_NAME_IEC958("Coaxial ",CAPTURE,SWITCH), gpr + 2, 0); in _snd_emu10k1_init_efx()
2135 gpr += 4; in _snd_emu10k1_init_efx()
2141 VOLUME_ADDIN(icode, &ptr, playback + z, EXTIN_LINE2_L + z, gpr + z); in _snd_emu10k1_init_efx()
2142 snd_emu10k1_init_stereo_control(controls + i++, "Line2 LiveDrive Playback Volume", gpr, 0); in _snd_emu10k1_init_efx()
2144 gpr += 2; in _snd_emu10k1_init_efx()
2148 SWITCH_IN(icode, &ptr, tmp + 0, EXTIN_LINE2_L + z, gpr + 2 + z); in _snd_emu10k1_init_efx()
2149 VOLUME_ADD(icode, &ptr, capture + z, tmp + 0, gpr + z); in _snd_emu10k1_init_efx()
2151 snd_emu10k1_init_stereo_control(controls + i++, "Line2 LiveDrive Capture Volume", gpr, 0); in _snd_emu10k1_init_efx()
2153 …snd_emu10k1_init_stereo_onoff_control(controls + i++, "Line2 LiveDrive Capture Switch", gpr + 2, 0… in _snd_emu10k1_init_efx()
2155 gpr += 4; in _snd_emu10k1_init_efx()
2188 controls[i + 0].gpr[z * 2 + j] = BASS_GPR + z * 2 + j; in _snd_emu10k1_init_efx()
2189 controls[i + 1].gpr[z * 2 + j] = TREBLE_GPR + z * 2 + j; in _snd_emu10k1_init_efx()
2194 OP(icode, &ptr, iACC3, C_00000000, GPR(gpr), C_00000000, C_00000000); in _snd_emu10k1_init_efx()
2195 snd_emu10k1_init_mono_onoff_control(controls + i++, "Tone Control - Switch", gpr, 0); in _snd_emu10k1_init_efx()
2196 gpr++; in _snd_emu10k1_init_efx()
2197 OP(icode, &ptr, iSKIP, GPR_COND, GPR_COND, CC_REG_ZERO, GPR(gpr)); in _snd_emu10k1_init_efx()
2226 gpr_map[gpr++] = ptr - ptr_skip; in _snd_emu10k1_init_efx()
2245 SWITCH(icode, &ptr, tmp + 0, 8 + z, gpr + z); in _snd_emu10k1_init_efx()
2246 SWITCH_NEG(icode, &ptr, tmp + 1, gpr + z); in _snd_emu10k1_init_efx()
2254 …tereo_onoff_control(controls + i++, SNDRV_CTL_NAME_IEC958("Optical Raw ",PLAYBACK,SWITCH), gpr, 0); in _snd_emu10k1_init_efx()
2255 gpr += 2; in _snd_emu10k1_init_efx()
2262 SWITCH(icode, &ptr, tmp + 0, playback + 4 + z, gpr + 2 + z); in _snd_emu10k1_init_efx()
2263 SWITCH_NEG(icode, &ptr, tmp + 1, gpr + 2 + z); in _snd_emu10k1_init_efx()
2266 VOLUME_OUT(icode, &ptr, EXTOUT_HEADPHONE_L + z, tmp + 0, gpr + z); in _snd_emu10k1_init_efx()
2269 snd_emu10k1_init_stereo_control(controls + i++, "Headphone Playback Volume", gpr + 0, 0); in _snd_emu10k1_init_efx()
2271 …snd_emu10k1_init_mono_onoff_control(controls + i++, "Headphone Center Playback Switch", gpr + 2, 0… in _snd_emu10k1_init_efx()
2273 snd_emu10k1_init_mono_onoff_control(controls + i++, "Headphone LFE Playback Switch", gpr + 3, 0); in _snd_emu10k1_init_efx()
2276 gpr += 4; in _snd_emu10k1_init_efx()
2328 if (gpr > tmp) { in _snd_emu10k1_init_efx()