ALSA: cs5535audio: rename V_REFOUT control to MIC Bias
This drops the AD1888 V_REFOUT control, and replaces it with a MIC Bias Enable control. It also moves the MIC bias enabling into a separate function. Signed-off-by: Andres Salomon <dilinger@debian.org>
This commit is contained in:
@@ -104,6 +104,19 @@ void __devinit olpc_prequirks(struct snd_card *card,
|
||||
struct snd_ac97_template *ac97);
|
||||
int __devinit olpc_quirks(struct snd_card *card, struct snd_ac97 *ac97);
|
||||
void olpc_analog_input(struct snd_ac97 *ac97, int on);
|
||||
void olpc_mic_bias(struct snd_ac97 *ac97, int on);
|
||||
|
||||
static inline void olpc_capture_open(struct snd_ac97 *ac97)
|
||||
{
|
||||
/* enable MIC Bias for recording */
|
||||
olpc_mic_bias(ac97, 1);
|
||||
}
|
||||
|
||||
static inline void olpc_capture_close(struct snd_ac97 *ac97)
|
||||
{
|
||||
/* disable the MIC Bias (so the recording LED turns off) */
|
||||
olpc_mic_bias(ac97, 0);
|
||||
}
|
||||
#else
|
||||
static inline void olpc_prequirks(struct snd_card *card,
|
||||
struct snd_ac97_template *ac97) { }
|
||||
@@ -112,6 +125,9 @@ static inline int olpc_quirks(struct snd_card *card, struct snd_ac97 *ac97)
|
||||
return 0;
|
||||
}
|
||||
static inline void olpc_analog_input(struct snd_ac97 *ac97, int on) { }
|
||||
static inline void olpc_mic_bias(struct snd_ac97 *ac97, int on) { }
|
||||
static inline void olpc_capture_open(struct snd_ac97 *ac97) { }
|
||||
static inline void olpc_capture_close(struct snd_ac97 *ac97) { }
|
||||
#endif
|
||||
|
||||
int __devinit snd_cs5535audio_pcm(struct cs5535audio *cs5535audio);
|
||||
|
Reference in New Issue
Block a user