Lines Matching defs:evoice

819 	struct snd_trident_voice *evoice = voice->extra;
824 if (evoice == NULL) {
825 evoice = snd_trident_alloc_voice(trident, SNDRV_TRIDENT_VOICE_TYPE_PCM, 0, 0);
826 if (evoice == NULL)
828 voice->extra = evoice;
829 evoice->substream = substream;
832 if (evoice != NULL) {
833 snd_trident_free_voice(trident, evoice);
834 voice->extra = evoice = NULL;
880 struct snd_trident_voice *evoice = voice ? voice->extra : NULL;
888 if (evoice != NULL) {
889 snd_trident_free_voice(trident, evoice);
911 struct snd_trident_voice *evoice = voice->extra;
948 if (evoice != NULL) {
949 evoice->Delta = voice->Delta;
950 evoice->spurious_threshold = voice->spurious_threshold;
951 evoice->LBA = voice->LBA;
952 evoice->CSO = 0;
953 evoice->ESO = (runtime->period_size * 2) + 4 - 1; /* in samples */
954 evoice->CTRL = voice->CTRL;
955 evoice->FMC = 3;
956 evoice->GVSel = trident->device == TRIDENT_DEVICE_ID_SI7018 ? 0 : 1;
957 evoice->EC = 0;
958 evoice->Alpha = 0;
959 evoice->FMS = 0;
960 evoice->Vol = 0x3ff; /* mute */
961 evoice->RVol = evoice->CVol = 0x7f; /* mute */
962 evoice->Pan = 0x7f; /* mute */
964 evoice->Attribute = (1<<(30-16))|(2<<(26-16))|
967 evoice->Attribute = 0;
969 snd_trident_write_voice_regs(trident, evoice);
970 evoice->isync2 = 1;
971 evoice->isync_mark = runtime->period_size;
972 evoice->ESO = (runtime->period_size * 2) - 1;
1123 struct snd_trident_voice *evoice = voice ? voice->extra : NULL;
1125 if (evoice != NULL) {
1126 snd_trident_free_voice(trident, evoice);
1148 struct snd_trident_voice *evoice = voice->extra;
1177 if (evoice != NULL) {
1178 evoice->Delta = snd_trident_convert_rate(runtime->rate);
1179 evoice->spurious_threshold = voice->spurious_threshold;
1180 evoice->LBA = voice->LBA;
1181 evoice->CSO = 0;
1182 evoice->ESO = (runtime->period_size * 2) + 20 - 1; /* in samples, 20 means correction */
1183 evoice->CTRL = voice->CTRL;
1184 evoice->FMC = 3;
1185 evoice->GVSel = 0;
1186 evoice->EC = 0;
1187 evoice->Alpha = 0;
1188 evoice->FMS = 0;
1189 evoice->Vol = 0x3ff; /* mute */
1190 evoice->RVol = evoice->CVol = 0x7f; /* mute */
1191 evoice->Pan = 0x7f; /* mute */
1192 evoice->Attribute = 0;
1193 snd_trident_write_voice_regs(trident, evoice);
1194 evoice->isync2 = 1;
1195 evoice->isync_mark = runtime->period_size;
1196 evoice->ESO = (runtime->period_size * 2) - 1;
1219 struct snd_trident_voice *evoice = voice->extra;
1254 if (evoice != NULL) {
1255 evoice->Delta = voice->Delta;
1256 evoice->spurious_threshold = voice->spurious_threshold;
1257 evoice->LBA = voice->LBA;
1258 evoice->CSO = 0;
1259 evoice->ESO = (runtime->period_size * 2) + 4 - 1; /* in samples */
1260 evoice->CTRL = voice->CTRL;
1261 evoice->FMC = 3;
1262 evoice->GVSel = trident->device == TRIDENT_DEVICE_ID_SI7018 ? 0 : 1;
1263 evoice->EC = 0;
1264 evoice->Alpha = 0;
1265 evoice->FMS = 0;
1266 evoice->Vol = 0x3ff; /* mute */
1267 evoice->RVol = evoice->CVol = 0x7f; /* mute */
1268 evoice->Pan = 0x7f; /* mute */
1269 evoice->Attribute = 0;
1270 snd_trident_write_voice_regs(trident, evoice);
1271 evoice->isync2 = 1;
1272 evoice->isync_mark = runtime->period_size;
1273 evoice->ESO = (runtime->period_size * 2) - 1;
1362 struct snd_trident_voice *evoice = voice->extra;
1448 if (evoice != NULL) {
1449 evoice->Delta = voice->Delta;
1450 evoice->spurious_threshold = voice->spurious_threshold;
1451 evoice->LBA = voice->LBA;
1452 evoice->CSO = 0;
1453 evoice->ESO = (runtime->period_size * 2) + 4 - 1; /* in samples */
1454 evoice->CTRL = voice->CTRL;
1455 evoice->FMC = 3;
1456 evoice->GVSel = trident->device == TRIDENT_DEVICE_ID_SI7018 ? 0 : 1;
1457 evoice->EC = 0;
1458 evoice->Alpha = 0;
1459 evoice->FMS = 0;
1460 evoice->Vol = 0x3ff; /* mute */
1461 evoice->RVol = evoice->CVol = 0x7f; /* mute */
1462 evoice->Pan = 0x7f; /* mute */
1463 evoice->Attribute = 0;
1464 snd_trident_write_voice_regs(trident, evoice);
1465 evoice->isync2 = 1;
1466 evoice->isync_mark = runtime->period_size;
1467 evoice->ESO = (runtime->period_size * 2) - 1;
1503 struct snd_trident_voice *voice, *evoice;
1526 evoice = voice->extra;
1528 if (evoice == NULL) {
1531 what |= 1 << (evoice->number & 0x1f);
1532 whati |= 1 << (evoice->number & 0x1f);
1534 evoice->stimer = val;