SND_AC97_SET_RATE

Section: ()
Updated: 06 October 2005
Index Return to Main Contents

 

NAME

snd_ac97_set_rate - change the rate of the given input/output.  

SYNOPSIS

"SYNOPSIS"

int snd_ac97_set_rate (ac97_t * ac97, int reg, unsigned short rate);  

ARGUMENTS

ac97
the ac97 instance
reg
the register to change
rate
the sample rate to set
 

DESCRIPTION

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.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 13:31:51 GMT, October 06, 2005