Lines Matching refs:rates
370 struct via_rate_lock rates[2]; /* playback and capture */
374 unsigned int spdif_on: 1; /* only spdif rates work to external DACs */
1027 if ((rate_changed = via_lock_rate(&chip->rates[0], ac97_rate)) < 0)
1068 if (via_lock_rate(&chip->rates[0], runtime->rate) < 0)
1115 if (via_lock_rate(&chip->rates[1], runtime->rate) < 0)
1142 .rates = SNDRV_PCM_RATE_48000,
1170 ratep = &chip->rates[viadev->direction];
1175 runtime->hw.rates = chip->ac97->rates[AC97_RATES_SPDIF];
1179 runtime->hw.rates = SNDRV_PCM_RATE_48000;
1183 runtime->hw.rates = (SNDRV_PCM_RATE_CONTINUOUS |
1190 runtime->hw.rates = chip->ac97->rates[idx];
1194 runtime->hw.rates = SNDRV_PCM_RATE_KNOT;
1310 ratep = &chip->rates[viadev->direction];
2353 spin_lock_init(&chip->rates[0].lock);
2354 spin_lock_init(&chip->rates[1].lock);