Lines Matching refs:runtime

318 	return bytes_to_frames(substream->runtime, prm->hw_ptr);  in uac2_pcm_pointer()
336 prm->dma_bytes = substream->runtime->dma_bytes; in uac2_pcm_hw_params()
337 prm->dma_area = substream->runtime->dma_area; in uac2_pcm_hw_params()
364 struct snd_pcm_runtime *runtime = substream->runtime; in uac2_pcm_open() local
381 runtime->hw = uac2_pcm_hardware; in uac2_pcm_open()
385 runtime->hw.rate_min = p_srate; in uac2_pcm_open()
388 runtime->hw.formats = SNDRV_PCM_FMTBIT_S24_3LE; in uac2_pcm_open()
391 runtime->hw.formats = SNDRV_PCM_FMTBIT_S32_LE; in uac2_pcm_open()
394 runtime->hw.formats = SNDRV_PCM_FMTBIT_S16_LE; in uac2_pcm_open()
397 runtime->hw.channels_min = num_channels(p_chmask); in uac2_pcm_open()
398 runtime->hw.period_bytes_min = 2 * uac2->p_prm.max_psize in uac2_pcm_open()
399 / runtime->hw.periods_min; in uac2_pcm_open()
402 runtime->hw.rate_min = c_srate; in uac2_pcm_open()
405 runtime->hw.formats = SNDRV_PCM_FMTBIT_S24_3LE; in uac2_pcm_open()
408 runtime->hw.formats = SNDRV_PCM_FMTBIT_S32_LE; in uac2_pcm_open()
411 runtime->hw.formats = SNDRV_PCM_FMTBIT_S16_LE; in uac2_pcm_open()
414 runtime->hw.channels_min = num_channels(c_chmask); in uac2_pcm_open()
415 runtime->hw.period_bytes_min = 2 * uac2->c_prm.max_psize in uac2_pcm_open()
416 / runtime->hw.periods_min; in uac2_pcm_open()
419 runtime->hw.rate_max = runtime->hw.rate_min; in uac2_pcm_open()
420 runtime->hw.channels_max = runtime->hw.channels_min; in uac2_pcm_open()
422 snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS); in uac2_pcm_open()