Lines Matching refs:rate
159 static int set_spdif_rate(struct snd_ac97 *ac97, unsigned short rate) in set_spdif_rate() argument
169 switch (rate) { in set_spdif_rate()
179 if (ac97->id == AC97_ID_CM9739 && rate != 48000) { in set_spdif_rate()
183 switch (rate) { in set_spdif_rate()
204 switch (rate) { in set_spdif_rate()
211 switch (rate) { in set_spdif_rate()
243 int snd_ac97_set_rate(struct snd_ac97 *ac97, int reg, unsigned int rate) in snd_ac97_set_rate() argument
248 dbl = rate > 48000; in snd_ac97_set_rate()
260 if (rate != 48000) in snd_ac97_set_rate()
266 if (rate != 48000 && rate != 96000) in snd_ac97_set_rate()
279 return set_spdif_rate(ac97, rate); in snd_ac97_set_rate()
284 rate /= 2; in snd_ac97_set_rate()
285 tmp = (rate * ac97->bus->clock) / 48000; in snd_ac97_set_rate()
555 int snd_ac97_pcm_open(struct ac97_pcm *pcm, unsigned int rate, in snd_ac97_pcm_open() argument
564 r = rate > 48000; in snd_ac97_pcm_open()
569 err = set_spdif_rate(bus->codec[cidx], rate); in snd_ac97_pcm_open()
616 reg, rate); in snd_ac97_pcm_open()
617 err = snd_ac97_set_rate(pcm->r[r].codec[cidx], reg, rate); in snd_ac97_pcm_open()
621 cidx, reg, rate, err); in snd_ac97_pcm_open()
692 struct snd_interval *rate = hw_param_interval(params, SNDRV_PCM_HW_PARAM_RATE); in double_rate_hw_constraint_rate() local
693 return snd_interval_refine(rate, &single_rates); in double_rate_hw_constraint_rate()
701 struct snd_interval *rate = hw_param_interval(params, SNDRV_PCM_HW_PARAM_RATE); in double_rate_hw_constraint_channels() local
702 if (rate->min > 48000) { in double_rate_hw_constraint_channels()