Home
last modified time | relevance | path

Searched refs:cpu_stream (Results 1 – 1 of 1) sorted by relevance

/bsp/allwinner/libraries/sunxi-hal/hal/source/sound/core/
A Dsnd_core.c244 struct snd_pcm_stream *cpu_stream, *codec_stream; in soc_pcm_init_runtime_hw() local
253 cpu_stream = &cpu_dai->playback; in soc_pcm_init_runtime_hw()
256 cpu_stream = &cpu_dai->capture; in soc_pcm_init_runtime_hw()
260 hw->channels_min = max(cpu_stream->channels_min, codec_stream->channels_min); in soc_pcm_init_runtime_hw()
261 hw->channels_max = min(cpu_stream->channels_max, codec_stream->channels_max); in soc_pcm_init_runtime_hw()
262 hw->formats = cpu_stream->formats & codec_stream->formats; in soc_pcm_init_runtime_hw()
264 hw->rates = snd_pcm_rate_mask_intersect(rates, cpu_stream->rates); in soc_pcm_init_runtime_hw()
267 hw->rate_min = max(codec_stream->rate_min, cpu_stream->rate_min); in soc_pcm_init_runtime_hw()
268 hw->rate_max = min(codec_stream->rate_max, cpu_stream->rate_max); in soc_pcm_init_runtime_hw()

Completed in 5 milliseconds