int snd_ac97_set_rate (ac97_t * ac97, int reg, unsigned short rate);
Changes the rate of the given input/output on the codec. If the codec doesn't support VAR, the rate must be 48000 (except for SPDIF).
The valid registers are AC97_PMC_MIC_ADC_RATE, AC97_PCM_FRONT_DAC_RATE, AC97_PCM_LR_ADC_RATE and AC97_SPDIF. The SPDIF register is a pseudo-register to change the rate of SPDIF (only if supported).
Returns zero if successful, or a negative error code on failure.