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