Lines Matching refs:runtime
83 struct snd_pcm_runtime *runtime, in limit_channels_and_rates() argument
86 struct snd_pcm_hardware *hw = &runtime->hw; in limit_channels_and_rates()
104 snd_pcm_limit_hw_rates(runtime); in limit_channels_and_rates()
122 struct snd_pcm_runtime *runtime = substream->runtime; in init_hw_info() local
123 struct snd_pcm_hardware *hw = &runtime->hw; in init_hw_info()
145 limit_channels_and_rates(dice, runtime, pcm_channels); in init_hw_info()
148 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, in init_hw_info()
153 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, in init_hw_info()
159 err = amdtp_am824_add_pcm_hw_constraints(stream, runtime); in init_hw_info()
208 substream->runtime->hw.rate_min = rate; in pcm_open()
209 substream->runtime->hw.rate_max = rate; in pcm_open()
240 if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) { in capture_hw_params()
261 if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) { in playback_hw_params()
278 if (substream->runtime->status->state != SNDRV_PCM_STATE_OPEN) in capture_hw_free()
294 if (substream->runtime->status->state != SNDRV_PCM_STATE_OPEN) in playback_hw_free()
310 err = snd_dice_stream_start_duplex(dice, substream->runtime->rate); in capture_prepare()
323 err = snd_dice_stream_start_duplex(dice, substream->runtime->rate); in playback_prepare()