evoice 1074 sound/pci/ali5451/ali5451.c struct snd_ali_voice *pvoice, *evoice; evoice 1095 sound/pci/ali5451/ali5451.c evoice = pvoice->extra; evoice 1097 sound/pci/ali5451/ali5451.c if (evoice == NULL) evoice 1100 sound/pci/ali5451/ali5451.c whati |= 1 << (evoice->number & 0x1f); evoice 1101 sound/pci/ali5451/ali5451.c what |= 1 << (evoice->number & 0x1f); evoice 1105 sound/pci/ali5451/ali5451.c if (evoice != NULL) evoice 1106 sound/pci/ali5451/ali5451.c evoice->running = 1; evoice 1109 sound/pci/ali5451/ali5451.c if (evoice != NULL) evoice 1110 sound/pci/ali5451/ali5451.c evoice->running = 0; evoice 1140 sound/pci/ali5451/ali5451.c struct snd_ali_voice *evoice = pvoice->extra; evoice 1152 sound/pci/ali5451/ali5451.c if (!evoice) { evoice 1153 sound/pci/ali5451/ali5451.c evoice = snd_ali_alloc_voice(codec, evoice 1156 sound/pci/ali5451/ali5451.c if (!evoice) evoice 1158 sound/pci/ali5451/ali5451.c pvoice->extra = evoice; evoice 1159 sound/pci/ali5451/ali5451.c evoice->substream = substream; evoice 1162 sound/pci/ali5451/ali5451.c if (evoice) { evoice 1163 sound/pci/ali5451/ali5451.c snd_ali_free_voice(codec, evoice); evoice 1164 sound/pci/ali5451/ali5451.c pvoice->extra = evoice = NULL; evoice 1176 sound/pci/ali5451/ali5451.c struct snd_ali_voice *evoice = pvoice ? pvoice->extra : NULL; evoice 1179 sound/pci/ali5451/ali5451.c if (evoice) { evoice 1180 sound/pci/ali5451/ali5451.c snd_ali_free_voice(codec, evoice); evoice 1203 sound/pci/ali5451/ali5451.c struct snd_ali_voice *evoice = pvoice->extra; evoice 1269 sound/pci/ali5451/ali5451.c if (evoice) { evoice 1270 sound/pci/ali5451/ali5451.c evoice->count = pvoice->count; evoice 1271 sound/pci/ali5451/ali5451.c evoice->eso = pvoice->count << 1; evoice 1272 sound/pci/ali5451/ali5451.c ESO = evoice->eso - 1; evoice 1274 sound/pci/ali5451/ali5451.c evoice->number, evoice 270 sound/pci/emu10k1/emupcm.c struct snd_emu10k1_voice *evoice, evoice 275 sound/pci/emu10k1/emupcm.c struct snd_pcm_substream *substream = evoice->epcm->substream; evoice 285 sound/pci/emu10k1/emupcm.c voice = evoice->number; evoice 318 sound/pci/emu10k1/emupcm.c evoice->epcm->ccca_start_addr = start_addr + ccis; evoice 630 sound/pci/emu10k1/emupcm.c static void snd_emu10k1_playback_invalidate_cache(struct snd_emu10k1 *emu, int extra, struct snd_emu10k1_voice *evoice) evoice 635 sound/pci/emu10k1/emupcm.c if (evoice == NULL) evoice 637 sound/pci/emu10k1/emupcm.c runtime = evoice->epcm->substream->runtime; evoice 638 sound/pci/emu10k1/emupcm.c voice = evoice->number; evoice 665 sound/pci/emu10k1/emupcm.c static void snd_emu10k1_playback_prepare_voice(struct snd_emu10k1 *emu, struct snd_emu10k1_voice *evoice, evoice 674 sound/pci/emu10k1/emupcm.c if (evoice == NULL) /* skip second voice for mono */ evoice 676 sound/pci/emu10k1/emupcm.c substream = evoice->epcm->substream; evoice 678 sound/pci/emu10k1/emupcm.c voice = evoice->number; evoice 690 sound/pci/emu10k1/emupcm.c static void snd_emu10k1_playback_trigger_voice(struct snd_emu10k1 *emu, struct snd_emu10k1_voice *evoice, int master, int extra) evoice 696 sound/pci/emu10k1/emupcm.c if (evoice == NULL) /* skip second voice for mono */ evoice 698 sound/pci/emu10k1/emupcm.c substream = evoice->epcm->substream; evoice 700 sound/pci/emu10k1/emupcm.c voice = evoice->number; evoice 708 sound/pci/emu10k1/emupcm.c if (master || evoice->epcm->type == PLAYBACK_EFX) evoice 715 sound/pci/emu10k1/emupcm.c static void snd_emu10k1_playback_stop_voice(struct snd_emu10k1 *emu, struct snd_emu10k1_voice *evoice) evoice 719 sound/pci/emu10k1/emupcm.c if (evoice == NULL) evoice 721 sound/pci/emu10k1/emupcm.c voice = evoice->number; evoice 845 sound/pci/trident/trident_main.c struct snd_trident_voice *evoice = voice->extra; evoice 850 sound/pci/trident/trident_main.c if (evoice == NULL) { evoice 851 sound/pci/trident/trident_main.c evoice = snd_trident_alloc_voice(trident, SNDRV_TRIDENT_VOICE_TYPE_PCM, 0, 0); evoice 852 sound/pci/trident/trident_main.c if (evoice == NULL) evoice 854 sound/pci/trident/trident_main.c voice->extra = evoice; evoice 855 sound/pci/trident/trident_main.c evoice->substream = substream; evoice 858 sound/pci/trident/trident_main.c if (evoice != NULL) { evoice 859 sound/pci/trident/trident_main.c snd_trident_free_voice(trident, evoice); evoice 860 sound/pci/trident/trident_main.c voice->extra = evoice = NULL; evoice 906 sound/pci/trident/trident_main.c struct snd_trident_voice *evoice = voice ? voice->extra : NULL; evoice 915 sound/pci/trident/trident_main.c if (evoice != NULL) { evoice 916 sound/pci/trident/trident_main.c snd_trident_free_voice(trident, evoice); evoice 938 sound/pci/trident/trident_main.c struct snd_trident_voice *evoice = voice->extra; evoice 975 sound/pci/trident/trident_main.c if (evoice != NULL) { evoice 976 sound/pci/trident/trident_main.c evoice->Delta = voice->Delta; evoice 977 sound/pci/trident/trident_main.c evoice->spurious_threshold = voice->spurious_threshold; evoice 978 sound/pci/trident/trident_main.c evoice->LBA = voice->LBA; evoice 979 sound/pci/trident/trident_main.c evoice->CSO = 0; evoice 980 sound/pci/trident/trident_main.c evoice->ESO = (runtime->period_size * 2) + 4 - 1; /* in samples */ evoice 981 sound/pci/trident/trident_main.c evoice->CTRL = voice->CTRL; evoice 982 sound/pci/trident/trident_main.c evoice->FMC = 3; evoice 983 sound/pci/trident/trident_main.c evoice->GVSel = trident->device == TRIDENT_DEVICE_ID_SI7018 ? 0 : 1; evoice 984 sound/pci/trident/trident_main.c evoice->EC = 0; evoice 985 sound/pci/trident/trident_main.c evoice->Alpha = 0; evoice 986 sound/pci/trident/trident_main.c evoice->FMS = 0; evoice 987 sound/pci/trident/trident_main.c evoice->Vol = 0x3ff; /* mute */ evoice 988 sound/pci/trident/trident_main.c evoice->RVol = evoice->CVol = 0x7f; /* mute */ evoice 989 sound/pci/trident/trident_main.c evoice->Pan = 0x7f; /* mute */ evoice 991 sound/pci/trident/trident_main.c evoice->Attribute = (1<<(30-16))|(2<<(26-16))| evoice 994 sound/pci/trident/trident_main.c evoice->Attribute = 0; evoice 996 sound/pci/trident/trident_main.c snd_trident_write_voice_regs(trident, evoice); evoice 997 sound/pci/trident/trident_main.c evoice->isync2 = 1; evoice 998 sound/pci/trident/trident_main.c evoice->isync_mark = runtime->period_size; evoice 999 sound/pci/trident/trident_main.c evoice->ESO = (runtime->period_size * 2) - 1; evoice 1155 sound/pci/trident/trident_main.c struct snd_trident_voice *evoice = voice ? voice->extra : NULL; evoice 1158 sound/pci/trident/trident_main.c if (evoice != NULL) { evoice 1159 sound/pci/trident/trident_main.c snd_trident_free_voice(trident, evoice); evoice 1181 sound/pci/trident/trident_main.c struct snd_trident_voice *evoice = voice->extra; evoice 1210 sound/pci/trident/trident_main.c if (evoice != NULL) { evoice 1211 sound/pci/trident/trident_main.c evoice->Delta = snd_trident_convert_rate(runtime->rate); evoice 1212 sound/pci/trident/trident_main.c evoice->spurious_threshold = voice->spurious_threshold; evoice 1213 sound/pci/trident/trident_main.c evoice->LBA = voice->LBA; evoice 1214 sound/pci/trident/trident_main.c evoice->CSO = 0; evoice 1215 sound/pci/trident/trident_main.c evoice->ESO = (runtime->period_size * 2) + 20 - 1; /* in samples, 20 means correction */ evoice 1216 sound/pci/trident/trident_main.c evoice->CTRL = voice->CTRL; evoice 1217 sound/pci/trident/trident_main.c evoice->FMC = 3; evoice 1218 sound/pci/trident/trident_main.c evoice->GVSel = 0; evoice 1219 sound/pci/trident/trident_main.c evoice->EC = 0; evoice 1220 sound/pci/trident/trident_main.c evoice->Alpha = 0; evoice 1221 sound/pci/trident/trident_main.c evoice->FMS = 0; evoice 1222 sound/pci/trident/trident_main.c evoice->Vol = 0x3ff; /* mute */ evoice 1223 sound/pci/trident/trident_main.c evoice->RVol = evoice->CVol = 0x7f; /* mute */ evoice 1224 sound/pci/trident/trident_main.c evoice->Pan = 0x7f; /* mute */ evoice 1225 sound/pci/trident/trident_main.c evoice->Attribute = 0; evoice 1226 sound/pci/trident/trident_main.c snd_trident_write_voice_regs(trident, evoice); evoice 1227 sound/pci/trident/trident_main.c evoice->isync2 = 1; evoice 1228 sound/pci/trident/trident_main.c evoice->isync_mark = runtime->period_size; evoice 1229 sound/pci/trident/trident_main.c evoice->ESO = (runtime->period_size * 2) - 1; evoice 1252 sound/pci/trident/trident_main.c struct snd_trident_voice *evoice = voice->extra; evoice 1287 sound/pci/trident/trident_main.c if (evoice != NULL) { evoice 1288 sound/pci/trident/trident_main.c evoice->Delta = voice->Delta; evoice 1289 sound/pci/trident/trident_main.c evoice->spurious_threshold = voice->spurious_threshold; evoice 1290 sound/pci/trident/trident_main.c evoice->LBA = voice->LBA; evoice 1291 sound/pci/trident/trident_main.c evoice->CSO = 0; evoice 1292 sound/pci/trident/trident_main.c evoice->ESO = (runtime->period_size * 2) + 4 - 1; /* in samples */ evoice 1293 sound/pci/trident/trident_main.c evoice->CTRL = voice->CTRL; evoice 1294 sound/pci/trident/trident_main.c evoice->FMC = 3; evoice 1295 sound/pci/trident/trident_main.c evoice->GVSel = trident->device == TRIDENT_DEVICE_ID_SI7018 ? 0 : 1; evoice 1296 sound/pci/trident/trident_main.c evoice->EC = 0; evoice 1297 sound/pci/trident/trident_main.c evoice->Alpha = 0; evoice 1298 sound/pci/trident/trident_main.c evoice->FMS = 0; evoice 1299 sound/pci/trident/trident_main.c evoice->Vol = 0x3ff; /* mute */ evoice 1300 sound/pci/trident/trident_main.c evoice->RVol = evoice->CVol = 0x7f; /* mute */ evoice 1301 sound/pci/trident/trident_main.c evoice->Pan = 0x7f; /* mute */ evoice 1302 sound/pci/trident/trident_main.c evoice->Attribute = 0; evoice 1303 sound/pci/trident/trident_main.c snd_trident_write_voice_regs(trident, evoice); evoice 1304 sound/pci/trident/trident_main.c evoice->isync2 = 1; evoice 1305 sound/pci/trident/trident_main.c evoice->isync_mark = runtime->period_size; evoice 1306 sound/pci/trident/trident_main.c evoice->ESO = (runtime->period_size * 2) - 1; evoice 1395 sound/pci/trident/trident_main.c struct snd_trident_voice *evoice = voice->extra; evoice 1481 sound/pci/trident/trident_main.c if (evoice != NULL) { evoice 1482 sound/pci/trident/trident_main.c evoice->Delta = voice->Delta; evoice 1483 sound/pci/trident/trident_main.c evoice->spurious_threshold = voice->spurious_threshold; evoice 1484 sound/pci/trident/trident_main.c evoice->LBA = voice->LBA; evoice 1485 sound/pci/trident/trident_main.c evoice->CSO = 0; evoice 1486 sound/pci/trident/trident_main.c evoice->ESO = (runtime->period_size * 2) + 4 - 1; /* in samples */ evoice 1487 sound/pci/trident/trident_main.c evoice->CTRL = voice->CTRL; evoice 1488 sound/pci/trident/trident_main.c evoice->FMC = 3; evoice 1489 sound/pci/trident/trident_main.c evoice->GVSel = trident->device == TRIDENT_DEVICE_ID_SI7018 ? 0 : 1; evoice 1490 sound/pci/trident/trident_main.c evoice->EC = 0; evoice 1491 sound/pci/trident/trident_main.c evoice->Alpha = 0; evoice 1492 sound/pci/trident/trident_main.c evoice->FMS = 0; evoice 1493 sound/pci/trident/trident_main.c evoice->Vol = 0x3ff; /* mute */ evoice 1494 sound/pci/trident/trident_main.c evoice->RVol = evoice->CVol = 0x7f; /* mute */ evoice 1495 sound/pci/trident/trident_main.c evoice->Pan = 0x7f; /* mute */ evoice 1496 sound/pci/trident/trident_main.c evoice->Attribute = 0; evoice 1497 sound/pci/trident/trident_main.c snd_trident_write_voice_regs(trident, evoice); evoice 1498 sound/pci/trident/trident_main.c evoice->isync2 = 1; evoice 1499 sound/pci/trident/trident_main.c evoice->isync_mark = runtime->period_size; evoice 1500 sound/pci/trident/trident_main.c evoice->ESO = (runtime->period_size * 2) - 1; evoice 1536 sound/pci/trident/trident_main.c struct snd_trident_voice *voice, *evoice; evoice 1559 sound/pci/trident/trident_main.c evoice = voice->extra; evoice 1561 sound/pci/trident/trident_main.c if (evoice == NULL) { evoice 1564 sound/pci/trident/trident_main.c what |= 1 << (evoice->number & 0x1f); evoice 1565 sound/pci/trident/trident_main.c whati |= 1 << (evoice->number & 0x1f); evoice 1567 sound/pci/trident/trident_main.c evoice->stimer = val;