Lines Matching refs:rate
34 static int clock_and_divisors(int mclk, int sclk, int rate, int *out)
43 if (I2S_CLOCK_SPEED_18MHz % (rate * mclk) == 0) {
44 if (!i2s_sf_mclkdiv(I2S_CLOCK_SPEED_18MHz / (rate * mclk), out)) {
49 if (I2S_CLOCK_SPEED_45MHz % (rate * mclk) == 0) {
50 if (!i2s_sf_mclkdiv(I2S_CLOCK_SPEED_45MHz / (rate * mclk), out)) {
55 if (I2S_CLOCK_SPEED_49MHz % (rate * mclk) == 0) {
56 if (!i2s_sf_mclkdiv(I2S_CLOCK_SPEED_49MHz / (rate * mclk), out)) {
64 #define CHECK_RATE(rate) \
65 do { if (rates & SNDRV_PCM_RATE_ ##rate) { \
68 bus_factor, rate, &dummy)) \
69 rates &= ~SNDRV_PCM_RATE_ ##rate; \
165 /* we need to set the highest and lowest rate possible.
168 * Below, we'll use that to restrict to the rate
183 hw->rate_min = i2sdev->rate;
184 hw->rate_max = i2sdev->rate;
356 || (i2sdev->rate != runtime->rate))) {
362 i2sdev->rate = runtime->rate;
440 runtime->rate,