Lines Matching refs:rates
384 struct via_rate_lock rates[2]; /* playback and capture */ member
1046 if ((rate_changed = via_lock_rate(&chip->rates[0], ac97_rate)) < 0) in snd_via8233_playback_prepare()
1087 if (via_lock_rate(&chip->rates[0], runtime->rate) < 0) in snd_via8233_multi_prepare()
1134 if (via_lock_rate(&chip->rates[1], runtime->rate) < 0) in snd_via8233_capture_prepare()
1161 .rates = SNDRV_PCM_RATE_48000,
1189 ratep = &chip->rates[viadev->direction]; in snd_via82xx_pcm_open()
1194 runtime->hw.rates = chip->ac97->rates[AC97_RATES_SPDIF]; in snd_via82xx_pcm_open()
1198 runtime->hw.rates = SNDRV_PCM_RATE_48000; in snd_via82xx_pcm_open()
1202 runtime->hw.rates = (SNDRV_PCM_RATE_CONTINUOUS | in snd_via82xx_pcm_open()
1209 runtime->hw.rates = chip->ac97->rates[idx]; in snd_via82xx_pcm_open()
1213 runtime->hw.rates = SNDRV_PCM_RATE_KNOT; in snd_via82xx_pcm_open()
1329 ratep = &chip->rates[viadev->direction]; in snd_via82xx_pcm_close()
2387 spin_lock_init(&chip->rates[0].lock); in snd_via82xx_create()
2388 spin_lock_init(&chip->rates[1].lock); in snd_via82xx_create()