Lines Matching refs:rate
31 int snd_dg00x_stream_get_local_rate(struct snd_dg00x *dg00x, unsigned int *rate) in snd_dg00x_stream_get_local_rate() argument
45 *rate = snd_dg00x_stream_rates[data]; in snd_dg00x_stream_get_local_rate()
52 int snd_dg00x_stream_set_local_rate(struct snd_dg00x *dg00x, unsigned int rate) in snd_dg00x_stream_set_local_rate() argument
58 if (rate == snd_dg00x_stream_rates[i]) in snd_dg00x_stream_set_local_rate()
104 unsigned int *rate) in snd_dg00x_stream_get_external_rate() argument
118 *rate = snd_dg00x_stream_rates[data]; in snd_dg00x_stream_get_external_rate()
186 static int keep_resources(struct snd_dg00x *dg00x, unsigned int rate) in keep_resources() argument
194 if (snd_dg00x_stream_rates[i] == rate) in keep_resources()
201 err = amdtp_dot_set_parameters(&dg00x->rx_stream, rate, in keep_resources()
212 err = amdtp_dot_set_parameters(&dg00x->tx_stream, rate, in keep_resources()
276 int snd_dg00x_stream_start_duplex(struct snd_dg00x *dg00x, unsigned int rate) in snd_dg00x_stream_start_duplex() argument
288 if (rate == 0) in snd_dg00x_stream_start_duplex()
289 rate = curr_rate; in snd_dg00x_stream_start_duplex()
290 if (curr_rate != rate || in snd_dg00x_stream_start_duplex()
305 err = snd_dg00x_stream_set_local_rate(dg00x, rate); in snd_dg00x_stream_start_duplex()
309 err = keep_resources(dg00x, rate); in snd_dg00x_stream_start_duplex()