Lines Matching refs:rate
27 unsigned int i, rate; in dice_rate_constraint() local
35 rate = snd_dice_rates[i]; in dice_rate_constraint()
36 if (snd_dice_stream_get_rate_mode(dice, rate, &mode) < 0) in dice_rate_constraint()
42 rates.min = min(rates.min, rate); in dice_rate_constraint()
43 rates.max = max(rates.max, rate); in dice_rate_constraint()
65 unsigned int i, rate; in dice_channels_constraint() local
73 rate = snd_dice_rates[i]; in dice_channels_constraint()
74 if (snd_dice_stream_get_rate_mode(dice, rate, &mode) < 0) in dice_channels_constraint()
77 if (!snd_interval_test(r, rate)) in dice_channels_constraint()
106 unsigned int rate, channels; in limit_channels_and_rates() local
108 rate = snd_dice_rates[i]; in limit_channels_and_rates()
109 if (snd_dice_stream_get_rate_mode(dice, rate, &mode) < 0) in limit_channels_and_rates()
111 hw->rates |= snd_pcm_rate_to_rate_bit(rate); in limit_channels_and_rates()
207 unsigned int rate; in pcm_open() local
209 err = snd_dice_transaction_get_rate(dice, &rate); in pcm_open()
212 substream->runtime->hw.rate_min = rate; in pcm_open()
213 substream->runtime->hw.rate_max = rate; in pcm_open()
245 unsigned int rate = params_rate(hw_params); in pcm_hw_params() local
248 err = snd_dice_stream_reserve_duplex(dice, rate); in pcm_hw_params()