Lines Matching full:rate
27 * codec mclk clock divider coefficients based on sampling rate
29 * @param rate sampling rate
34 static int rate_value(int rate, u8 *value) in rate_value() argument
39 if (rate_table[i] >= rate) { in rate_value()
53 * @rate: Sampling rate
58 int max98088_hw_params(struct maxim_priv *priv, unsigned int rate, in max98088_hw_params() argument
81 if (rate_value(rate, ®val)) { in max98088_hw_params()
82 debug("%s: Failed to set sample rate to %d.\n", in max98088_hw_params()
83 __func__, rate); in max98088_hw_params()
89 priv->rate = rate; in max98088_hw_params()
91 /* Update sample rate mode */ in max98088_hw_params()
92 if (rate < 50000) in max98088_hw_params()
106 priv->rate = rate; in max98088_hw_params()
296 priv->rate = -1U; in max98088_device_init()
384 static int max98088_set_params(struct udevice *dev, int interface, int rate, in max98088_set_params() argument
390 return max98088_do_init(priv, rate, mclk_freq, bits_per_sample); in max98088_set_params()