Lines Matching defs:rate

92 MODULE_PARM_DESC(dxs_support, "Support for DXS channels (0 = auto, 1 = enable, 2 = disable, 3 = 48k only, 4 = no VRA, 5 = enable any sample rate)");
158 #define VIA_REG_OFFSET_STOP_IDX 0x08 /* dword - stop index, channel type, sample rate */
337 int rate;
978 snd_ac97_set_rate(chip->ac97, AC97_PCM_FRONT_DAC_RATE, runtime->rate);
979 snd_ac97_set_rate(chip->ac97, AC97_SPDIF, runtime->rate);
990 snd_ac97_set_rate(chip->ac97, AC97_PCM_LR_ADC_RATE, runtime->rate);
996 * lock the current rate
998 static int via_lock_rate(struct via_rate_lock *rec, int rate)
1003 if (rec->rate != rate) {
1004 if (rec->rate && rec->used > 1) /* already set */
1007 rec->rate = rate;
1023 int ac97_rate = chip->dxs_src ? 48000 : runtime->rate;
1031 chip->no_vra ? 48000 : runtime->rate);
1033 snd_ac97_set_rate(chip->ac97, AC97_SPDIF, runtime->rate);
1035 if (runtime->rate == 48000)
1038 rbits = (0x100000 / 48000) * runtime->rate +
1039 ((0x100000 % 48000) * runtime->rate) / 48000;
1049 rbits | /* rate */
1068 if (via_lock_rate(&chip->rates[0], runtime->rate) < 0)
1070 snd_ac97_set_rate(chip->ac97, AC97_PCM_FRONT_DAC_RATE, runtime->rate);
1071 snd_ac97_set_rate(chip->ac97, AC97_PCM_SURR_DAC_RATE, runtime->rate);
1072 snd_ac97_set_rate(chip->ac97, AC97_PCM_LFE_DAC_RATE, runtime->rate);
1073 snd_ac97_set_rate(chip->ac97, AC97_SPDIF, runtime->rate);
1115 if (via_lock_rate(&chip->rates[1], runtime->rate) < 0)
1117 snd_ac97_set_rate(chip->ac97, AC97_PCM_LR_ADC_RATE, runtime->rate);
1169 /* set the hw rate condition */
1178 /* fixed DXS playback rate */
1188 } else if (! ratep->rate) {
1193 /* a fixed rate */
1195 runtime->hw.rate_max = runtime->hw.rate_min = ratep->rate;
1309 /* release the rate lock */
1314 ratep->rate = 0;
1316 if (! ratep->rate) {
1648 /* save the spdif flag for rate filtering */
2482 * not detected, try 48k rate only to be sure.
2484 dev_info(&pci->dev, "Assuming DXS channels with 48k fixed sample rate.\n");