Lines Matching defs:runtime

751 	struct snd_pcm_runtime *runtime = substream->runtime;
757 if (snd_pcm_format_width(runtime->format) == 16)
759 if (snd_pcm_format_signed(runtime->format))
761 if (runtime->channels > 1)
786 struct snd_pcm_runtime *runtime = substream->runtime;
787 struct snd_trident_voice *voice = runtime->private_data;
790 if (runtime->buffer_changed) {
817 struct snd_pcm_runtime *runtime = substream->runtime;
818 struct snd_trident_voice *voice = runtime->private_data;
878 struct snd_pcm_runtime *runtime = substream->runtime;
879 struct snd_trident_voice *voice = runtime->private_data;
909 struct snd_pcm_runtime *runtime = substream->runtime;
910 struct snd_trident_voice *voice = runtime->private_data;
917 voice->Delta = snd_trident_convert_rate(runtime->rate);
918 voice->spurious_threshold = snd_trident_spurious_threshold(runtime->rate, runtime->period_size);
924 voice->LBA = runtime->dma_addr;
927 voice->ESO = runtime->buffer_size - 1; /* in samples */
953 evoice->ESO = (runtime->period_size * 2) + 4 - 1; /* in samples */
971 evoice->isync_mark = runtime->period_size;
972 evoice->ESO = (runtime->period_size * 2) - 1;
1012 struct snd_pcm_runtime *runtime = substream->runtime;
1013 struct snd_trident_voice *voice = runtime->private_data;
1025 voice->LBA = runtime->dma_addr;
1037 val = DIV_ROUND_CLOSEST(48000U << 12, runtime->rate);
1041 if (snd_pcm_format_width(runtime->format) == 16) {
1053 if (snd_pcm_format_width(runtime->format) == 16)
1055 if (snd_pcm_format_signed(runtime->format))
1057 if (runtime->channels > 1)
1062 voice->Delta = snd_trident_convert_rate(runtime->rate);
1063 voice->spurious_threshold = snd_trident_spurious_threshold(runtime->rate, runtime->period_size);
1065 voice->isync_mark = runtime->period_size;
1066 voice->isync_max = runtime->buffer_size;
1070 voice->ESO = voice->isync_ESO = (runtime->period_size * 2) + 6 - 1;
1121 struct snd_pcm_runtime *runtime = substream->runtime;
1122 struct snd_trident_voice *voice = runtime->private_data;
1146 struct snd_pcm_runtime *runtime = substream->runtime;
1147 struct snd_trident_voice *voice = runtime->private_data;
1152 voice->LBA = runtime->dma_addr;
1153 voice->Delta = snd_trident_convert_adc_rate(runtime->rate);
1154 voice->spurious_threshold = snd_trident_spurious_threshold(runtime->rate, runtime->period_size);
1158 voice->ESO = runtime->buffer_size - 1; /* in samples */
1178 evoice->Delta = snd_trident_convert_rate(runtime->rate);
1182 evoice->ESO = (runtime->period_size * 2) + 20 - 1; /* in samples, 20 means correction */
1195 evoice->isync_mark = runtime->period_size;
1196 evoice->ESO = (runtime->period_size * 2) - 1;
1217 struct snd_pcm_runtime *runtime = substream->runtime;
1218 struct snd_trident_voice *voice = runtime->private_data;
1227 voice->LBA = runtime->dma_addr;
1230 voice->ESO = runtime->buffer_size - 1; /* in samples */
1234 voice->spurious_threshold = snd_trident_spurious_threshold(48000, runtime->period_size);
1259 evoice->ESO = (runtime->period_size * 2) + 4 - 1; /* in samples */
1272 evoice->isync_mark = runtime->period_size;
1273 evoice->ESO = (runtime->period_size * 2) - 1;
1360 struct snd_pcm_runtime *runtime = substream->runtime;
1361 struct snd_trident_voice *voice = runtime->private_data;
1372 voice->Delta = snd_trident_convert_rate(runtime->rate);
1373 voice->spurious_threshold = snd_trident_spurious_threshold(runtime->rate, runtime->period_size);
1376 LBAO = runtime->dma_addr;
1384 voice->isync_mark = runtime->period_size;
1385 voice->isync_max = runtime->buffer_size;
1388 RESO = runtime->buffer_size - 1;
1389 voice->ESO = voice->isync_ESO = (runtime->period_size * 2) + 6 - 1;
1423 voice->spurious_threshold = snd_trident_spurious_threshold(48000, runtime->period_size);
1429 voice->LBA = runtime->dma_addr;
1432 voice->ESO = runtime->buffer_size - 1; /* in samples */
1453 evoice->ESO = (runtime->period_size * 2) + 4 - 1; /* in samples */
1466 evoice->isync_mark = runtime->period_size;
1467 evoice->ESO = (runtime->period_size * 2) - 1;
1525 voice = s->runtime->private_data;
1598 struct snd_pcm_runtime *runtime = substream->runtime;
1599 struct snd_trident_voice *voice = runtime->private_data;
1617 if (cso >= runtime->buffer_size)
1637 struct snd_pcm_runtime *runtime = substream->runtime;
1638 struct snd_trident_voice *voice = runtime->private_data;
1645 if (runtime->channels > 1)
1648 result = runtime->buffer_size - result;
1667 struct snd_pcm_runtime *runtime = substream->runtime;
1668 struct snd_trident_voice *voice = runtime->private_data;
1798 static void snd_trident_pcm_free_substream(struct snd_pcm_runtime *runtime)
1800 struct snd_trident_voice *voice = runtime->private_data;
1812 struct snd_pcm_runtime *runtime = substream->runtime;
1820 runtime->private_data = voice;
1821 runtime->private_free = snd_trident_pcm_free_substream;
1822 runtime->hw = snd_trident_playback;
1824 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, 0, 64*1024);
1840 struct snd_pcm_runtime *runtime = substream->runtime;
1841 struct snd_trident_voice *voice = runtime->private_data;
1862 struct snd_pcm_runtime *runtime = substream->runtime;
1873 runtime->private_data = voice;
1874 runtime->private_free = snd_trident_pcm_free_substream;
1876 runtime->hw = snd_trident_spdif;
1878 runtime->hw = snd_trident_spdif_7018;
1885 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, 0, 64*1024);
1941 struct snd_pcm_runtime *runtime = substream->runtime;
1948 runtime->private_data = voice;
1949 runtime->private_free = snd_trident_pcm_free_substream;
1950 runtime->hw = snd_trident_capture;
1952 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, 0, 64*1024);
1985 struct snd_pcm_runtime *runtime = substream->runtime;
1992 runtime->private_data = voice;
1993 runtime->private_free = snd_trident_pcm_free_substream;
1994 runtime->hw = snd_trident_foldback;
1995 snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, 0, 64*1024);
2012 struct snd_pcm_runtime *runtime = substream->runtime;
2013 voice = runtime->private_data;