diff options
author | Andres Salomon <dilinger@queued.net> | 2008-11-06 16:53:03 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-12-10 11:14:45 -0500 |
commit | bf1e5278354856ac0260d338961560e720147681 (patch) | |
tree | 30bdedbee576613e54f7b9f3ff7167effa7149d8 /sound/pci/cs5535audio/cs5535audio.h | |
parent | e463ae1d13ffe4943bb31f47cc6f24415e55a59a (diff) |
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>
Diffstat (limited to 'sound/pci/cs5535audio/cs5535audio.h')
-rw-r--r-- | sound/pci/cs5535audio/cs5535audio.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sound/pci/cs5535audio/cs5535audio.h b/sound/pci/cs5535audio/cs5535audio.h index 22737fc9ed03..63190cd723c6 100644 --- a/sound/pci/cs5535audio/cs5535audio.h +++ b/sound/pci/cs5535audio/cs5535audio.h | |||
@@ -104,6 +104,19 @@ void __devinit olpc_prequirks(struct snd_card *card, | |||
104 | struct snd_ac97_template *ac97); | 104 | struct snd_ac97_template *ac97); |
105 | int __devinit olpc_quirks(struct snd_card *card, struct snd_ac97 *ac97); | 105 | int __devinit olpc_quirks(struct snd_card *card, struct snd_ac97 *ac97); |
106 | void olpc_analog_input(struct snd_ac97 *ac97, int on); | 106 | void olpc_analog_input(struct snd_ac97 *ac97, int on); |
107 | void olpc_mic_bias(struct snd_ac97 *ac97, int on); | ||
108 | |||
109 | static inline void olpc_capture_open(struct snd_ac97 *ac97) | ||
110 | { | ||
111 | /* enable MIC Bias for recording */ | ||
112 | olpc_mic_bias(ac97, 1); | ||
113 | } | ||
114 | |||
115 | static inline void olpc_capture_close(struct snd_ac97 *ac97) | ||
116 | { | ||
117 | /* disable the MIC Bias (so the recording LED turns off) */ | ||
118 | olpc_mic_bias(ac97, 0); | ||
119 | } | ||
107 | #else | 120 | #else |
108 | static inline void olpc_prequirks(struct snd_card *card, | 121 | static inline void olpc_prequirks(struct snd_card *card, |
109 | struct snd_ac97_template *ac97) { } | 122 | struct snd_ac97_template *ac97) { } |
@@ -112,6 +125,9 @@ static inline int olpc_quirks(struct snd_card *card, struct snd_ac97 *ac97) | |||
112 | return 0; | 125 | return 0; |
113 | } | 126 | } |
114 | static inline void olpc_analog_input(struct snd_ac97 *ac97, int on) { } | 127 | static inline void olpc_analog_input(struct snd_ac97 *ac97, int on) { } |
128 | static inline void olpc_mic_bias(struct snd_ac97 *ac97, int on) { } | ||
129 | static inline void olpc_capture_open(struct snd_ac97 *ac97) { } | ||
130 | static inline void olpc_capture_close(struct snd_ac97 *ac97) { } | ||
115 | #endif | 131 | #endif |
116 | 132 | ||
117 | int __devinit snd_cs5535audio_pcm(struct cs5535audio *cs5535audio); | 133 | int __devinit snd_cs5535audio_pcm(struct cs5535audio *cs5535audio); |