• Home
  • Raw
  • Download

Lines Matching full:runtime

49 			epcm->substream->runtime->hw->pointer(emu, epcm->substream),  in snd_emu10k1_pcm_interrupt()
61 if (emu->pcm_capture_substream->runtime->mode == SNDRV_PCM_MODE_FRAME) in snd_emu10k1_pcm_ac97adc_interrupt()
73 if (emu->pcm_capture_mic_substream->runtime->mode == SNDRV_PCM_MODE_FRAME) in snd_emu10k1_pcm_ac97mic_interrupt()
85 if (emu->pcm_capture_efx_substream->runtime->mode == SNDRV_PCM_MODE_FRAME) in snd_emu10k1_pcm_efx_interrupt()
95 struct snd_pcm_runtime *runtime = substream->runtime; in snd_emu10k1_efx_playback_pointer() local
96 struct snd_emu10k1_pcm *epcm = runtime->private_data; in snd_emu10k1_efx_playback_pointer()
102 ptr += runtime->buffer_size; in snd_emu10k1_efx_playback_pointer()
104 ptr %= runtime->buffer_size; in snd_emu10k1_efx_playback_pointer()
290 struct snd_pcm_runtime *runtime = substream->runtime; in snd_emu10k1_pcm_init_voice() local
300 stereo = runtime->channels == 2; in snd_emu10k1_pcm_init_voice()
301 w_16 = snd_pcm_format_width(runtime->format) == 16; in snd_emu10k1_pcm_init_voice()
369 pitch_target = emu10k1_calc_pitch_target(runtime->rate); in snd_emu10k1_pcm_init_voice()
411 struct snd_pcm_runtime *runtime = substream->runtime; in snd_emu10k1_playback_hw_params() local
412 struct snd_emu10k1_pcm *epcm = runtime->private_data; in snd_emu10k1_playback_hw_params()
425 if (emu->iommu_workaround && runtime->dma_bytes >= EMUPAGESIZE) in snd_emu10k1_playback_hw_params()
426 runtime->dma_bytes -= EMUPAGESIZE; in snd_emu10k1_playback_hw_params()
446 struct snd_pcm_runtime *runtime = substream->runtime; in snd_emu10k1_playback_hw_free() local
449 if (runtime->private_data == NULL) in snd_emu10k1_playback_hw_free()
451 epcm = runtime->private_data; in snd_emu10k1_playback_hw_free()
476 struct snd_pcm_runtime *runtime = substream->runtime; in snd_emu10k1_efx_playback_hw_free() local
480 if (runtime->private_data == NULL) in snd_emu10k1_efx_playback_hw_free()
482 epcm = runtime->private_data; in snd_emu10k1_efx_playback_hw_free()
505 struct snd_pcm_runtime *runtime = substream->runtime; in snd_emu10k1_playback_prepare() local
506 struct snd_emu10k1_pcm *epcm = runtime->private_data; in snd_emu10k1_playback_prepare()
511 if (runtime->channels == 2) { in snd_emu10k1_playback_prepare()
533 struct snd_pcm_runtime *runtime = substream->runtime; in snd_emu10k1_efx_playback_prepare() local
534 struct snd_emu10k1_pcm *epcm = runtime->private_data; in snd_emu10k1_efx_playback_prepare()
600 struct snd_pcm_runtime *runtime = substream->runtime; in snd_emu10k1_capture_prepare() local
601 struct snd_emu10k1_pcm *epcm = runtime->private_data; in snd_emu10k1_capture_prepare()
620 snd_emu10k1_ptr_write(emu, epcm->capture_ba_reg, 0, runtime->dma_addr); in snd_emu10k1_capture_prepare()
635 if (runtime->channels > 1) in snd_emu10k1_capture_prepare()
638 snd_emu10k1_audigy_capture_rate_reg(runtime->rate) : in snd_emu10k1_capture_prepare()
639 snd_emu10k1_capture_rate_reg(runtime->rate); in snd_emu10k1_capture_prepare()
646 struct snd_pcm_runtime *runtime; in snd_emu10k1_playback_invalidate_cache() local
651 runtime = evoice->epcm->substream->runtime; in snd_emu10k1_playback_invalidate_cache()
653 stereo = (!extra && runtime->channels == 2); in snd_emu10k1_playback_invalidate_cache()
654 sample = snd_pcm_format_width(runtime->format) == 16 ? 0 : 0x80808080; in snd_emu10k1_playback_invalidate_cache()
684 struct snd_pcm_runtime *runtime; in snd_emu10k1_playback_prepare_voice() local
691 runtime = substream->runtime; in snd_emu10k1_playback_prepare_voice()
695 tmp = runtime->channels == 2 ? (master ? 1 : 2) : 0; in snd_emu10k1_playback_prepare_voice()
707 struct snd_pcm_runtime *runtime; in snd_emu10k1_playback_trigger_voice() local
713 runtime = substream->runtime; in snd_emu10k1_playback_trigger_voice()
716 pitch = snd_emu10k1_rate_to_pitch(runtime->rate) >> 8; in snd_emu10k1_playback_trigger_voice()
720 pitch_target = emu10k1_calc_pitch_target(runtime->rate); in snd_emu10k1_playback_trigger_voice()
748 struct snd_pcm_runtime *runtime) in snd_emu10k1_playback_mangle_extra() argument
754 period_pos = runtime->status->hw_ptr - runtime->hw_ptr_interrupt; in snd_emu10k1_playback_mangle_extra()
755 period_pos %= runtime->period_size; in snd_emu10k1_playback_mangle_extra()
766 struct snd_pcm_runtime *runtime = substream->runtime; in snd_emu10k1_playback_trigger() local
767 struct snd_emu10k1_pcm *epcm = runtime->private_data; in snd_emu10k1_playback_trigger()
785 snd_emu10k1_playback_mangle_extra(emu, epcm, substream, runtime); in snd_emu10k1_playback_trigger()
815 struct snd_pcm_runtime *runtime = substream->runtime; in snd_emu10k1_capture_trigger() local
816 struct snd_emu10k1_pcm *epcm = runtime->private_data; in snd_emu10k1_capture_trigger()
883 struct snd_pcm_runtime *runtime = substream->runtime; in snd_emu10k1_playback_pointer() local
884 struct snd_emu10k1_pcm *epcm = runtime->private_data; in snd_emu10k1_playback_pointer()
891 ptr += runtime->buffer_size; in snd_emu10k1_playback_pointer()
893 ptr %= runtime->buffer_size; in snd_emu10k1_playback_pointer()
896 ptr += runtime->buffer_size - epcm->ccca_start_addr; in snd_emu10k1_playback_pointer()
899 if (ptr >= runtime->buffer_size) in snd_emu10k1_playback_pointer()
900 ptr -= runtime->buffer_size; in snd_emu10k1_playback_pointer()
906 (long)ptr, (long)runtime->buffer_size, in snd_emu10k1_playback_pointer()
907 (long)runtime->period_size); in snd_emu10k1_playback_pointer()
917 struct snd_pcm_runtime *runtime = substream->runtime; in snd_emu10k1_efx_playback_trigger() local
918 struct snd_emu10k1_pcm *epcm = runtime->private_data; in snd_emu10k1_efx_playback_trigger()
967 struct snd_pcm_runtime *runtime = substream->runtime; in snd_emu10k1_capture_pointer() local
968 struct snd_emu10k1_pcm *epcm = runtime->private_data; in snd_emu10k1_capture_pointer()
978 return bytes_to_frames(runtime, ptr); in snd_emu10k1_capture_pointer()
1084 static void snd_emu10k1_pcm_free_substream(struct snd_pcm_runtime *runtime) in snd_emu10k1_pcm_free_substream() argument
1086 kfree(runtime->private_data); in snd_emu10k1_pcm_free_substream()
1108 struct snd_pcm_runtime *runtime = substream->runtime; in snd_emu10k1_efx_playback_open() local
1120 runtime->private_data = epcm; in snd_emu10k1_efx_playback_open()
1121 runtime->private_free = snd_emu10k1_pcm_free_substream; in snd_emu10k1_efx_playback_open()
1122 runtime->hw = snd_emu10k1_efx_playback; in snd_emu10k1_efx_playback_open()
1141 struct snd_pcm_runtime *runtime = substream->runtime; in snd_emu10k1_playback_open() local
1150 runtime->private_data = epcm; in snd_emu10k1_playback_open()
1151 runtime->private_free = snd_emu10k1_pcm_free_substream; in snd_emu10k1_playback_open()
1152 runtime->hw = snd_emu10k1_playback; in snd_emu10k1_playback_open()
1153 if ((err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS)) < 0) { in snd_emu10k1_playback_open()
1157 …if ((err = snd_pcm_hw_constraint_minmax(runtime, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, 256, UINT_MAX)) … in snd_emu10k1_playback_open()
1165 err = snd_pcm_hw_rule_noresample(runtime, sample_rate); in snd_emu10k1_playback_open()
1195 struct snd_pcm_runtime *runtime = substream->runtime; in snd_emu10k1_capture_open() local
1209 runtime->private_data = epcm; in snd_emu10k1_capture_open()
1210 runtime->private_free = snd_emu10k1_pcm_free_substream; in snd_emu10k1_capture_open()
1211 runtime->hw = snd_emu10k1_capture; in snd_emu10k1_capture_open()
1214 …snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, &hw_constraints_capture_pe… in snd_emu10k1_capture_open()
1215 snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, &hw_constraints_capture_rates); in snd_emu10k1_capture_open()
1232 struct snd_pcm_runtime *runtime = substream->runtime; in snd_emu10k1_capture_mic_open() local
1245 substream->runtime->private_data = epcm; in snd_emu10k1_capture_mic_open()
1246 substream->runtime->private_free = snd_emu10k1_pcm_free_substream; in snd_emu10k1_capture_mic_open()
1247 runtime->hw = snd_emu10k1_capture; in snd_emu10k1_capture_mic_open()
1248 runtime->hw.rates = SNDRV_PCM_RATE_8000; in snd_emu10k1_capture_mic_open()
1249 runtime->hw.rate_min = runtime->hw.rate_max = 8000; in snd_emu10k1_capture_mic_open()
1250 runtime->hw.channels_min = 1; in snd_emu10k1_capture_mic_open()
1253 …snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, &hw_constraints_capture_pe… in snd_emu10k1_capture_mic_open()
1270 struct snd_pcm_runtime *runtime = substream->runtime; in snd_emu10k1_capture_efx_open() local
1285 substream->runtime->private_data = epcm; in snd_emu10k1_capture_efx_open()
1286 substream->runtime->private_free = snd_emu10k1_pcm_free_substream; in snd_emu10k1_capture_efx_open()
1287 runtime->hw = snd_emu10k1_capture_efx; in snd_emu10k1_capture_efx_open()
1288 runtime->hw.rates = SNDRV_PCM_RATE_48000; in snd_emu10k1_capture_efx_open()
1289 runtime->hw.rate_min = runtime->hw.rate_max = 48000; in snd_emu10k1_capture_efx_open()
1317 runtime->hw.rates = SNDRV_PCM_RATE_44100; in snd_emu10k1_capture_efx_open()
1318 runtime->hw.rate_min = runtime->hw.rate_max = 44100; in snd_emu10k1_capture_efx_open()
1319 runtime->hw.channels_min = in snd_emu10k1_capture_efx_open()
1320 runtime->hw.channels_max = 16; in snd_emu10k1_capture_efx_open()
1324 runtime->hw.rates = SNDRV_PCM_RATE_48000; in snd_emu10k1_capture_efx_open()
1325 runtime->hw.rate_min = runtime->hw.rate_max = 48000; in snd_emu10k1_capture_efx_open()
1326 runtime->hw.channels_min = in snd_emu10k1_capture_efx_open()
1327 runtime->hw.channels_max = 16; in snd_emu10k1_capture_efx_open()
1333 runtime->hw.rates = SNDRV_PCM_RATE_96000; in snd_emu10k1_capture_efx_open()
1334 runtime->hw.rate_min = runtime->hw.rate_max = 96000; in snd_emu10k1_capture_efx_open()
1335 runtime->hw.channels_min = runtime->hw.channels_max = 4; in snd_emu10k1_capture_efx_open()
1339 runtime->hw.rates = SNDRV_PCM_RATE_192000; in snd_emu10k1_capture_efx_open()
1340 runtime->hw.rate_min = runtime->hw.rate_max = 192000; in snd_emu10k1_capture_efx_open()
1341 runtime->hw.channels_min = runtime->hw.channels_max = 2; in snd_emu10k1_capture_efx_open()
1343 runtime->hw.formats = SNDRV_PCM_FMTBIT_S32_LE; in snd_emu10k1_capture_efx_open()
1348 runtime->hw.channels_min = runtime->hw.channels_max = 0; in snd_emu10k1_capture_efx_open()
1351 runtime->hw.channels_min++; in snd_emu10k1_capture_efx_open()
1352 runtime->hw.channels_max++; in snd_emu10k1_capture_efx_open()
1361 …snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, &hw_constraints_capture_pe… in snd_emu10k1_capture_efx_open()
1614 unsigned short *src = (unsigned short *)(substream->runtime->dma_area + rec->sw_data); in fx8010_pb_trans_copy()
1667 struct snd_pcm_runtime *runtime = substream->runtime; in snd_emu10k1_fx8010_playback_prepare() local
1674 emu->fx8010.etram_pages, runtime->dma_area, in snd_emu10k1_fx8010_playback_prepare()
1675 runtime->buffer_size, runtime->buffer_size << 2); in snd_emu10k1_fx8010_playback_prepare()
1684 snd_emu10k1_ptr_write(emu, emu->gpr_base + pcm->gpr_size, 0, runtime->buffer_size); in snd_emu10k1_fx8010_playback_prepare()
1686 snd_emu10k1_ptr_write(emu, emu->gpr_base + pcm->gpr_count, 0, runtime->period_size); in snd_emu10k1_fx8010_playback_prepare()
1687 snd_emu10k1_ptr_write(emu, emu->gpr_base + pcm->gpr_tmpcount, 0, runtime->period_size); in snd_emu10k1_fx8010_playback_prepare()
1689 …80 + pcm->etram[i], 0, (TANKMEMADDRREG_READ|TANKMEMADDRREG_ALIGN) + i * (runtime->buffer_size / pc… in snd_emu10k1_fx8010_playback_prepare()
1774 struct snd_pcm_runtime *runtime = substream->runtime; in snd_emu10k1_fx8010_playback_open() local
1777 runtime->hw = snd_emu10k1_fx8010_playback; in snd_emu10k1_fx8010_playback_open()
1778 runtime->hw.channels_min = runtime->hw.channels_max = pcm->channels; in snd_emu10k1_fx8010_playback_open()
1779 runtime->hw.period_bytes_max = (pcm->buffer_size * 2) / 2; in snd_emu10k1_fx8010_playback_open()