1SND_AC97_SET_RATE(9) Control/Mixer API SND_AC97_SET_RATE(9)
2
3
4
6 snd_ac97_set_rate - change the rate of the given input/output.
7
9 int snd_ac97_set_rate(struct snd_ac97 * ac97, int reg,
10 unsigned int rate);
11
13 ac97
14 the ac97 instance
15
16 reg
17 the register to change
18
19 rate
20 the sample rate to set
21
23 Changes the rate of the given input/output on the codec. If the codec
24 doesn´t support VAR, the rate must be 48000 (except for SPDIF).
25
26 The valid registers are AC97_PMC_MIC_ADC_RATE, AC97_PCM_FRONT_DAC_RATE,
27 AC97_PCM_LR_ADC_RATE. AC97_PCM_SURR_DAC_RATE and AC97_PCM_LFE_DAC_RATE
28 are accepted if the codec supports them. AC97_SPDIF is accepted as a
29 pseudo register to modify the SPDIF status bits.
30
31 Returns zero if successful, or a negative error code on failure.
32
34Kernel Hackers Manual 2.6. June 2019 SND_AC97_SET_RATE(9)