Lines Matching refs:rate
75 unsigned int rate, channels; in limit_channels_and_rates() local
97 rate = amdtp_rate_table[i]; in limit_channels_and_rates()
98 hw->rates |= snd_pcm_rate_to_rate_bit(rate); in limit_channels_and_rates()
99 hw->rate_min = min(hw->rate_min, rate); in limit_channels_and_rates()
100 hw->rate_max = max(hw->rate_max, rate); in limit_channels_and_rates()
142 unsigned int rate; in pcm_open() local
154 err = ff->spec->protocol->get_clock(ff, &rate, &src); in pcm_open()
160 if (amdtp_rate_table[i] == rate) in pcm_open()
172 substream->runtime->hw.rate_min = rate; in pcm_open()
173 substream->runtime->hw.rate_max = rate; in pcm_open()
177 rate = amdtp_rate_table[ff->rx_stream.sfc]; in pcm_open()
178 substream->runtime->hw.rate_min = rate; in pcm_open()
179 substream->runtime->hw.rate_max = rate; in pcm_open()
213 unsigned int rate = params_rate(hw_params); in pcm_hw_params() local
216 err = snd_ff_stream_reserve_duplex(ff, rate); in pcm_hw_params()
249 err = snd_ff_stream_start_duplex(ff, runtime->rate); in pcm_capture_prepare()
266 err = snd_ff_stream_start_duplex(ff, runtime->rate); in pcm_playback_prepare()