Searched refs:evoice (Results 1 - 3 of 3) sorted by relevance
/linux-4.1.27/sound/pci/trident/ |
H A D | trident_main.c | 859 struct snd_trident_voice *evoice = voice->extra; snd_trident_allocate_evoice() local 864 if (evoice == NULL) { snd_trident_allocate_evoice() 865 evoice = snd_trident_alloc_voice(trident, SNDRV_TRIDENT_VOICE_TYPE_PCM, 0, 0); snd_trident_allocate_evoice() 866 if (evoice == NULL) snd_trident_allocate_evoice() 868 voice->extra = evoice; snd_trident_allocate_evoice() 869 evoice->substream = substream; snd_trident_allocate_evoice() 872 if (evoice != NULL) { snd_trident_allocate_evoice() 873 snd_trident_free_voice(trident, evoice); snd_trident_allocate_evoice() 874 voice->extra = evoice = NULL; snd_trident_allocate_evoice() 920 struct snd_trident_voice *evoice = voice ? voice->extra : NULL; snd_trident_hw_free() local 929 if (evoice != NULL) { snd_trident_hw_free() 930 snd_trident_free_voice(trident, evoice); snd_trident_hw_free() 952 struct snd_trident_voice *evoice = voice->extra; snd_trident_playback_prepare() local 989 if (evoice != NULL) { snd_trident_playback_prepare() 990 evoice->Delta = voice->Delta; snd_trident_playback_prepare() 991 evoice->spurious_threshold = voice->spurious_threshold; snd_trident_playback_prepare() 992 evoice->LBA = voice->LBA; snd_trident_playback_prepare() 993 evoice->CSO = 0; snd_trident_playback_prepare() 994 evoice->ESO = (runtime->period_size * 2) + 4 - 1; /* in samples */ snd_trident_playback_prepare() 995 evoice->CTRL = voice->CTRL; snd_trident_playback_prepare() 996 evoice->FMC = 3; snd_trident_playback_prepare() 997 evoice->GVSel = trident->device == TRIDENT_DEVICE_ID_SI7018 ? 0 : 1; snd_trident_playback_prepare() 998 evoice->EC = 0; snd_trident_playback_prepare() 999 evoice->Alpha = 0; snd_trident_playback_prepare() 1000 evoice->FMS = 0; snd_trident_playback_prepare() 1001 evoice->Vol = 0x3ff; /* mute */ snd_trident_playback_prepare() 1002 evoice->RVol = evoice->CVol = 0x7f; /* mute */ snd_trident_playback_prepare() 1003 evoice->Pan = 0x7f; /* mute */ snd_trident_playback_prepare() 1005 evoice->Attribute = (1<<(30-16))|(2<<(26-16))| snd_trident_playback_prepare() 1008 evoice->Attribute = 0; snd_trident_playback_prepare() 1010 snd_trident_write_voice_regs(trident, evoice); snd_trident_playback_prepare() 1011 evoice->isync2 = 1; snd_trident_playback_prepare() 1012 evoice->isync_mark = runtime->period_size; snd_trident_playback_prepare() 1013 evoice->ESO = (runtime->period_size * 2) - 1; snd_trident_playback_prepare() 1169 struct snd_trident_voice *evoice = voice ? voice->extra : NULL; snd_trident_si7018_capture_hw_free() local 1172 if (evoice != NULL) { snd_trident_si7018_capture_hw_free() 1173 snd_trident_free_voice(trident, evoice); snd_trident_si7018_capture_hw_free() 1195 struct snd_trident_voice *evoice = voice->extra; snd_trident_si7018_capture_prepare() local 1224 if (evoice != NULL) { snd_trident_si7018_capture_prepare() 1225 evoice->Delta = snd_trident_convert_rate(runtime->rate); snd_trident_si7018_capture_prepare() 1226 evoice->spurious_threshold = voice->spurious_threshold; snd_trident_si7018_capture_prepare() 1227 evoice->LBA = voice->LBA; snd_trident_si7018_capture_prepare() 1228 evoice->CSO = 0; snd_trident_si7018_capture_prepare() 1229 evoice->ESO = (runtime->period_size * 2) + 20 - 1; /* in samples, 20 means correction */ snd_trident_si7018_capture_prepare() 1230 evoice->CTRL = voice->CTRL; snd_trident_si7018_capture_prepare() 1231 evoice->FMC = 3; snd_trident_si7018_capture_prepare() 1232 evoice->GVSel = 0; snd_trident_si7018_capture_prepare() 1233 evoice->EC = 0; snd_trident_si7018_capture_prepare() 1234 evoice->Alpha = 0; snd_trident_si7018_capture_prepare() 1235 evoice->FMS = 0; snd_trident_si7018_capture_prepare() 1236 evoice->Vol = 0x3ff; /* mute */ snd_trident_si7018_capture_prepare() 1237 evoice->RVol = evoice->CVol = 0x7f; /* mute */ snd_trident_si7018_capture_prepare() 1238 evoice->Pan = 0x7f; /* mute */ snd_trident_si7018_capture_prepare() 1239 evoice->Attribute = 0; snd_trident_si7018_capture_prepare() 1240 snd_trident_write_voice_regs(trident, evoice); snd_trident_si7018_capture_prepare() 1241 evoice->isync2 = 1; snd_trident_si7018_capture_prepare() 1242 evoice->isync_mark = runtime->period_size; snd_trident_si7018_capture_prepare() 1243 evoice->ESO = (runtime->period_size * 2) - 1; snd_trident_si7018_capture_prepare() 1266 struct snd_trident_voice *evoice = voice->extra; snd_trident_foldback_prepare() local 1301 if (evoice != NULL) { snd_trident_foldback_prepare() 1302 evoice->Delta = voice->Delta; snd_trident_foldback_prepare() 1303 evoice->spurious_threshold = voice->spurious_threshold; snd_trident_foldback_prepare() 1304 evoice->LBA = voice->LBA; snd_trident_foldback_prepare() 1305 evoice->CSO = 0; snd_trident_foldback_prepare() 1306 evoice->ESO = (runtime->period_size * 2) + 4 - 1; /* in samples */ snd_trident_foldback_prepare() 1307 evoice->CTRL = voice->CTRL; snd_trident_foldback_prepare() 1308 evoice->FMC = 3; snd_trident_foldback_prepare() 1309 evoice->GVSel = trident->device == TRIDENT_DEVICE_ID_SI7018 ? 0 : 1; snd_trident_foldback_prepare() 1310 evoice->EC = 0; snd_trident_foldback_prepare() 1311 evoice->Alpha = 0; snd_trident_foldback_prepare() 1312 evoice->FMS = 0; snd_trident_foldback_prepare() 1313 evoice->Vol = 0x3ff; /* mute */ snd_trident_foldback_prepare() 1314 evoice->RVol = evoice->CVol = 0x7f; /* mute */ snd_trident_foldback_prepare() 1315 evoice->Pan = 0x7f; /* mute */ snd_trident_foldback_prepare() 1316 evoice->Attribute = 0; snd_trident_foldback_prepare() 1317 snd_trident_write_voice_regs(trident, evoice); snd_trident_foldback_prepare() 1318 evoice->isync2 = 1; snd_trident_foldback_prepare() 1319 evoice->isync_mark = runtime->period_size; snd_trident_foldback_prepare() 1320 evoice->ESO = (runtime->period_size * 2) - 1; snd_trident_foldback_prepare() 1409 struct snd_trident_voice *evoice = voice->extra; snd_trident_spdif_prepare() local 1495 if (evoice != NULL) { snd_trident_spdif_prepare() 1496 evoice->Delta = voice->Delta; snd_trident_spdif_prepare() 1497 evoice->spurious_threshold = voice->spurious_threshold; snd_trident_spdif_prepare() 1498 evoice->LBA = voice->LBA; snd_trident_spdif_prepare() 1499 evoice->CSO = 0; snd_trident_spdif_prepare() 1500 evoice->ESO = (runtime->period_size * 2) + 4 - 1; /* in samples */ snd_trident_spdif_prepare() 1501 evoice->CTRL = voice->CTRL; snd_trident_spdif_prepare() 1502 evoice->FMC = 3; snd_trident_spdif_prepare() 1503 evoice->GVSel = trident->device == TRIDENT_DEVICE_ID_SI7018 ? 0 : 1; snd_trident_spdif_prepare() 1504 evoice->EC = 0; snd_trident_spdif_prepare() 1505 evoice->Alpha = 0; snd_trident_spdif_prepare() 1506 evoice->FMS = 0; snd_trident_spdif_prepare() 1507 evoice->Vol = 0x3ff; /* mute */ snd_trident_spdif_prepare() 1508 evoice->RVol = evoice->CVol = 0x7f; /* mute */ snd_trident_spdif_prepare() 1509 evoice->Pan = 0x7f; /* mute */ snd_trident_spdif_prepare() 1510 evoice->Attribute = 0; snd_trident_spdif_prepare() 1511 snd_trident_write_voice_regs(trident, evoice); snd_trident_spdif_prepare() 1512 evoice->isync2 = 1; snd_trident_spdif_prepare() 1513 evoice->isync_mark = runtime->period_size; snd_trident_spdif_prepare() 1514 evoice->ESO = (runtime->period_size * 2) - 1; snd_trident_spdif_prepare() 1550 struct snd_trident_voice *voice, *evoice; snd_trident_trigger() local 1573 evoice = voice->extra; snd_pcm_group_for_each_entry() 1575 if (evoice == NULL) { snd_pcm_group_for_each_entry() 1578 what |= 1 << (evoice->number & 0x1f); snd_pcm_group_for_each_entry() 1579 whati |= 1 << (evoice->number & 0x1f); snd_pcm_group_for_each_entry() 1581 evoice->stimer = val; snd_pcm_group_for_each_entry()
|
/linux-4.1.27/sound/pci/emu10k1/ |
H A D | emupcm.c | 284 struct snd_emu10k1_voice *evoice, snd_emu10k1_pcm_init_voice() 289 struct snd_pcm_substream *substream = evoice->epcm->substream; snd_emu10k1_pcm_init_voice() 299 voice = evoice->number; snd_emu10k1_pcm_init_voice() 333 evoice->epcm->ccca_start_addr = start_addr + ccis; snd_emu10k1_pcm_init_voice() 637 static void snd_emu10k1_playback_invalidate_cache(struct snd_emu10k1 *emu, int extra, struct snd_emu10k1_voice *evoice) snd_emu10k1_playback_invalidate_cache() argument 642 if (evoice == NULL) snd_emu10k1_playback_invalidate_cache() 644 runtime = evoice->epcm->substream->runtime; snd_emu10k1_playback_invalidate_cache() 645 voice = evoice->number; snd_emu10k1_playback_invalidate_cache() 672 static void snd_emu10k1_playback_prepare_voice(struct snd_emu10k1 *emu, struct snd_emu10k1_voice *evoice, snd_emu10k1_playback_prepare_voice() argument 681 if (evoice == NULL) /* skip second voice for mono */ snd_emu10k1_playback_prepare_voice() 683 substream = evoice->epcm->substream; snd_emu10k1_playback_prepare_voice() 685 voice = evoice->number; snd_emu10k1_playback_prepare_voice() 697 static void snd_emu10k1_playback_trigger_voice(struct snd_emu10k1 *emu, struct snd_emu10k1_voice *evoice, int master, int extra) snd_emu10k1_playback_trigger_voice() argument 703 if (evoice == NULL) /* skip second voice for mono */ snd_emu10k1_playback_trigger_voice() 705 substream = evoice->epcm->substream; snd_emu10k1_playback_trigger_voice() 707 voice = evoice->number; snd_emu10k1_playback_trigger_voice() 715 if (master || evoice->epcm->type == PLAYBACK_EFX) snd_emu10k1_playback_trigger_voice() 722 static void snd_emu10k1_playback_stop_voice(struct snd_emu10k1 *emu, struct snd_emu10k1_voice *evoice) snd_emu10k1_playback_stop_voice() argument 726 if (evoice == NULL) snd_emu10k1_playback_stop_voice() 728 voice = evoice->number; snd_emu10k1_playback_stop_voice() 282 snd_emu10k1_pcm_init_voice(struct snd_emu10k1 *emu, int master, int extra, struct snd_emu10k1_voice *evoice, unsigned int start_addr, unsigned int end_addr, struct snd_emu10k1_pcm_mixer *mix) snd_emu10k1_pcm_init_voice() argument
|
/linux-4.1.27/sound/pci/ali5451/ |
H A D | ali5451.c | 1088 struct snd_ali_voice *pvoice, *evoice; snd_ali_trigger() local 1109 evoice = pvoice->extra; snd_pcm_group_for_each_entry() 1111 if (evoice == NULL) snd_pcm_group_for_each_entry() 1114 whati |= 1 << (evoice->number & 0x1f); snd_pcm_group_for_each_entry() 1115 what |= 1 << (evoice->number & 0x1f); snd_pcm_group_for_each_entry() 1119 if (evoice != NULL) snd_pcm_group_for_each_entry() 1120 evoice->running = 1; snd_pcm_group_for_each_entry() 1123 if (evoice != NULL) snd_pcm_group_for_each_entry() 1124 evoice->running = 0; snd_pcm_group_for_each_entry() 1154 struct snd_ali_voice *evoice = pvoice->extra; snd_ali_playback_hw_params() local 1166 if (!evoice) { snd_ali_playback_hw_params() 1167 evoice = snd_ali_alloc_voice(codec, snd_ali_playback_hw_params() 1170 if (!evoice) snd_ali_playback_hw_params() 1172 pvoice->extra = evoice; snd_ali_playback_hw_params() 1173 evoice->substream = substream; snd_ali_playback_hw_params() 1176 if (evoice) { snd_ali_playback_hw_params() 1177 snd_ali_free_voice(codec, evoice); snd_ali_playback_hw_params() 1178 pvoice->extra = evoice = NULL; snd_ali_playback_hw_params() 1190 struct snd_ali_voice *evoice = pvoice ? pvoice->extra : NULL; snd_ali_playback_hw_free() local 1193 if (evoice) { snd_ali_playback_hw_free() 1194 snd_ali_free_voice(codec, evoice); snd_ali_playback_hw_free() 1217 struct snd_ali_voice *evoice = pvoice->extra; snd_ali_playback_prepare() local 1283 if (evoice) { snd_ali_playback_prepare() 1284 evoice->count = pvoice->count; snd_ali_playback_prepare() 1285 evoice->eso = pvoice->count << 1; snd_ali_playback_prepare() 1286 ESO = evoice->eso - 1; snd_ali_playback_prepare() 1288 evoice->number, snd_ali_playback_prepare()
|
Completed in 177 milliseconds