Lines Matching refs:runtime

765 	struct snd_pcm_runtime *runtime = substream->runtime;  in snd_trident_control_mode()  local
771 if (snd_pcm_format_width(runtime->format) == 16) in snd_trident_control_mode()
773 if (snd_pcm_format_signed(runtime->format)) in snd_trident_control_mode()
775 if (runtime->channels > 1) in snd_trident_control_mode()
823 struct snd_pcm_runtime *runtime = substream->runtime; in snd_trident_allocate_pcm_mem() local
824 struct snd_trident_voice *voice = runtime->private_data; in snd_trident_allocate_pcm_mem()
857 struct snd_pcm_runtime *runtime = substream->runtime; in snd_trident_allocate_evoice() local
858 struct snd_trident_voice *voice = runtime->private_data; in snd_trident_allocate_evoice()
918 struct snd_pcm_runtime *runtime = substream->runtime; in snd_trident_hw_free() local
919 struct snd_trident_voice *voice = runtime->private_data; in snd_trident_hw_free()
950 struct snd_pcm_runtime *runtime = substream->runtime; in snd_trident_playback_prepare() local
951 struct snd_trident_voice *voice = runtime->private_data; in snd_trident_playback_prepare()
958 voice->Delta = snd_trident_convert_rate(runtime->rate); in snd_trident_playback_prepare()
959 voice->spurious_threshold = snd_trident_spurious_threshold(runtime->rate, runtime->period_size); in snd_trident_playback_prepare()
965 voice->LBA = runtime->dma_addr; in snd_trident_playback_prepare()
968 voice->ESO = runtime->buffer_size - 1; /* in samples */ in snd_trident_playback_prepare()
994 evoice->ESO = (runtime->period_size * 2) + 4 - 1; /* in samples */ in snd_trident_playback_prepare()
1012 evoice->isync_mark = runtime->period_size; in snd_trident_playback_prepare()
1013 evoice->ESO = (runtime->period_size * 2) - 1; in snd_trident_playback_prepare()
1053 struct snd_pcm_runtime *runtime = substream->runtime; in snd_trident_capture_prepare() local
1054 struct snd_trident_voice *voice = runtime->private_data; in snd_trident_capture_prepare()
1066 voice->LBA = runtime->dma_addr; in snd_trident_capture_prepare()
1078 val = (((unsigned int) 48000L << 12) + (runtime->rate/2)) / runtime->rate; in snd_trident_capture_prepare()
1082 if (snd_pcm_format_width(runtime->format) == 16) { in snd_trident_capture_prepare()
1094 if (snd_pcm_format_width(runtime->format) == 16) in snd_trident_capture_prepare()
1096 if (snd_pcm_format_signed(runtime->format)) in snd_trident_capture_prepare()
1098 if (runtime->channels > 1) in snd_trident_capture_prepare()
1103 voice->Delta = snd_trident_convert_rate(runtime->rate); in snd_trident_capture_prepare()
1104 voice->spurious_threshold = snd_trident_spurious_threshold(runtime->rate, runtime->period_size); in snd_trident_capture_prepare()
1106 voice->isync_mark = runtime->period_size; in snd_trident_capture_prepare()
1107 voice->isync_max = runtime->buffer_size; in snd_trident_capture_prepare()
1111 voice->ESO = voice->isync_ESO = (runtime->period_size * 2) + 6 - 1; in snd_trident_capture_prepare()
1167 struct snd_pcm_runtime *runtime = substream->runtime; in snd_trident_si7018_capture_hw_free() local
1168 struct snd_trident_voice *voice = runtime->private_data; in snd_trident_si7018_capture_hw_free()
1193 struct snd_pcm_runtime *runtime = substream->runtime; in snd_trident_si7018_capture_prepare() local
1194 struct snd_trident_voice *voice = runtime->private_data; in snd_trident_si7018_capture_prepare()
1199 voice->LBA = runtime->dma_addr; in snd_trident_si7018_capture_prepare()
1200 voice->Delta = snd_trident_convert_adc_rate(runtime->rate); in snd_trident_si7018_capture_prepare()
1201 voice->spurious_threshold = snd_trident_spurious_threshold(runtime->rate, runtime->period_size); in snd_trident_si7018_capture_prepare()
1205 voice->ESO = runtime->buffer_size - 1; /* in samples */ in snd_trident_si7018_capture_prepare()
1225 evoice->Delta = snd_trident_convert_rate(runtime->rate); in snd_trident_si7018_capture_prepare()
1229 evoice->ESO = (runtime->period_size * 2) + 20 - 1; /* in samples, 20 means correction */ in snd_trident_si7018_capture_prepare()
1242 evoice->isync_mark = runtime->period_size; in snd_trident_si7018_capture_prepare()
1243 evoice->ESO = (runtime->period_size * 2) - 1; in snd_trident_si7018_capture_prepare()
1264 struct snd_pcm_runtime *runtime = substream->runtime; in snd_trident_foldback_prepare() local
1265 struct snd_trident_voice *voice = runtime->private_data; in snd_trident_foldback_prepare()
1274 voice->LBA = runtime->dma_addr; in snd_trident_foldback_prepare()
1277 voice->ESO = runtime->buffer_size - 1; /* in samples */ in snd_trident_foldback_prepare()
1281 voice->spurious_threshold = snd_trident_spurious_threshold(48000, runtime->period_size); in snd_trident_foldback_prepare()
1306 evoice->ESO = (runtime->period_size * 2) + 4 - 1; /* in samples */ in snd_trident_foldback_prepare()
1319 evoice->isync_mark = runtime->period_size; in snd_trident_foldback_prepare()
1320 evoice->ESO = (runtime->period_size * 2) - 1; in snd_trident_foldback_prepare()
1407 struct snd_pcm_runtime *runtime = substream->runtime; in snd_trident_spdif_prepare() local
1408 struct snd_trident_voice *voice = runtime->private_data; in snd_trident_spdif_prepare()
1419 voice->Delta = snd_trident_convert_rate(runtime->rate); in snd_trident_spdif_prepare()
1420 voice->spurious_threshold = snd_trident_spurious_threshold(runtime->rate, runtime->period_size); in snd_trident_spdif_prepare()
1423 LBAO = runtime->dma_addr; in snd_trident_spdif_prepare()
1431 voice->isync_mark = runtime->period_size; in snd_trident_spdif_prepare()
1432 voice->isync_max = runtime->buffer_size; in snd_trident_spdif_prepare()
1435 RESO = runtime->buffer_size - 1; in snd_trident_spdif_prepare()
1436 voice->ESO = voice->isync_ESO = (runtime->period_size * 2) + 6 - 1; in snd_trident_spdif_prepare()
1470 voice->spurious_threshold = snd_trident_spurious_threshold(48000, runtime->period_size); in snd_trident_spdif_prepare()
1476 voice->LBA = runtime->dma_addr; in snd_trident_spdif_prepare()
1479 voice->ESO = runtime->buffer_size - 1; /* in samples */ in snd_trident_spdif_prepare()
1500 evoice->ESO = (runtime->period_size * 2) + 4 - 1; /* in samples */ in snd_trident_spdif_prepare()
1513 evoice->isync_mark = runtime->period_size; in snd_trident_spdif_prepare()
1514 evoice->ESO = (runtime->period_size * 2) - 1; in snd_trident_spdif_prepare()
1572 voice = s->runtime->private_data; in snd_trident_trigger()
1645 struct snd_pcm_runtime *runtime = substream->runtime; in snd_trident_playback_pointer() local
1646 struct snd_trident_voice *voice = runtime->private_data; in snd_trident_playback_pointer()
1664 if (cso >= runtime->buffer_size) in snd_trident_playback_pointer()
1684 struct snd_pcm_runtime *runtime = substream->runtime; in snd_trident_capture_pointer() local
1685 struct snd_trident_voice *voice = runtime->private_data; in snd_trident_capture_pointer()
1692 if (runtime->channels > 1) in snd_trident_capture_pointer()
1695 result = runtime->buffer_size - result; in snd_trident_capture_pointer()
1714 struct snd_pcm_runtime *runtime = substream->runtime; in snd_trident_spdif_pointer() local
1715 struct snd_trident_voice *voice = runtime->private_data; in snd_trident_spdif_pointer()
1845 static void snd_trident_pcm_free_substream(struct snd_pcm_runtime *runtime) in snd_trident_pcm_free_substream() argument
1847 struct snd_trident_voice *voice = runtime->private_data; in snd_trident_pcm_free_substream()
1859 struct snd_pcm_runtime *runtime = substream->runtime; in snd_trident_playback_open() local
1867 runtime->private_data = voice; in snd_trident_playback_open()
1868 runtime->private_free = snd_trident_pcm_free_substream; in snd_trident_playback_open()
1869 runtime->hw = snd_trident_playback; in snd_trident_playback_open()
1871 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, 0, 64*1024); in snd_trident_playback_open()
1887 struct snd_pcm_runtime *runtime = substream->runtime; in snd_trident_playback_close() local
1888 struct snd_trident_voice *voice = runtime->private_data; in snd_trident_playback_close()
1909 struct snd_pcm_runtime *runtime = substream->runtime; in snd_trident_spdif_open() local
1920 runtime->private_data = voice; in snd_trident_spdif_open()
1921 runtime->private_free = snd_trident_pcm_free_substream; in snd_trident_spdif_open()
1923 runtime->hw = snd_trident_spdif; in snd_trident_spdif_open()
1925 runtime->hw = snd_trident_spdif_7018; in snd_trident_spdif_open()
1932 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, 0, 64*1024); in snd_trident_spdif_open()
1988 struct snd_pcm_runtime *runtime = substream->runtime; in snd_trident_capture_open() local
1995 runtime->private_data = voice; in snd_trident_capture_open()
1996 runtime->private_free = snd_trident_pcm_free_substream; in snd_trident_capture_open()
1997 runtime->hw = snd_trident_capture; in snd_trident_capture_open()
1999 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, 0, 64*1024); in snd_trident_capture_open()
2032 struct snd_pcm_runtime *runtime = substream->runtime; in snd_trident_foldback_open() local
2039 runtime->private_data = voice; in snd_trident_foldback_open()
2040 runtime->private_free = snd_trident_pcm_free_substream; in snd_trident_foldback_open()
2041 runtime->hw = snd_trident_foldback; in snd_trident_foldback_open()
2042 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, 0, 64*1024); in snd_trident_foldback_open()
2059 struct snd_pcm_runtime *runtime = substream->runtime; in snd_trident_foldback_close() local
2060 voice = runtime->private_data; in snd_trident_foldback_close()