Lines Matching defs:ac
71 ac97_t *ac = actrl->actrl_ac97;
73 ac_wr(ac, AC97_INTERRUPT_PAGING_REGISTER, 0); /* select page 0 */
77 ac_clr(ac, AC97_MIC_VOLUME_REGISTER, MICVR_20dB_BOOST);
78 ac_clr(ac, CMI_MULTICH_REGISTER, CMR_BSTSEL);
82 ac_set(ac, AC97_MIC_VOLUME_REGISTER, MICVR_20dB_BOOST);
83 ac_clr(ac, CMI_MULTICH_REGISTER, CMR_BSTSEL);
87 ac_set(ac, AC97_MIC_VOLUME_REGISTER, MICVR_20dB_BOOST);
88 ac_set(ac, CMI_MULTICH_REGISTER, CMR_BSTSEL);
96 ac97_t *ac = actrl->actrl_ac97;
98 ac_wr(ac, AC97_INTERRUPT_PAGING_REGISTER, 0); /* select page 0 */
100 ac_set(ac, CMI_MULTICH_REGISTER, CMR_S2LNI);
102 ac_clr(ac, CMI_MULTICH_REGISTER, CMR_S2LNI);
109 ac97_t *ac = actrl->actrl_ac97;
111 ac_wr(ac, AC97_INTERRUPT_PAGING_REGISTER, 0); /* select page 0 */
113 ac_set(ac, CMI_MULTICH_REGISTER, CMR_CLCTL);
115 ac_clr(ac, CMI_MULTICH_REGISTER, CMR_CLCTL);
120 cmi_setup_micboost(ac97_t *ac)
135 ctrl = ac97_control_find(ac, AUDIO_CTRL_ID_MICBOOST);
143 ac_add_control(ac, &cpt);
159 cmi_setup_jack_funcs(ac97_t *ac)
174 ival = ac_get_prop(ac, AC97_PROP_LINEIN_FUNC, 0);
178 ac_add_control(ac, &cp);
181 ival = ac_get_prop(ac, AC97_PROP_MIC_FUNC, 0);
185 ac_add_control(ac, &cp);
191 ac97_t *ac = actrl->actrl_ac97;
194 ac_set(ac, CMI_TASK_REGISTER, CTR_S2LNI);
196 ac_clr(ac, CMI_TASK_REGISTER, CTR_S2LNI);
203 ac97_t *ac = actrl->actrl_ac97;
206 ac_set(ac, CMI_TASK_REGISTER, CTR_F2R);
208 ac_clr(ac, CMI_TASK_REGISTER, CTR_F2R);
213 cmi_setup_jack_func_9738(ac97_t *ac)
228 ival = ac_get_prop(ac, AC97_PROP_LINEIN_FUNC, 0);
232 ac_add_control(ac, &cp);
235 ival = ac_get_prop(ac, AC97_PROP_SPREAD, -1);
239 ac_add_control(ac, &cp);
244 cmi_setup_volume(ac97_t *ac)
257 ctrl = ac97_control_find(ac, AUDIO_CTRL_ID_VOLUME);
261 ctrl = ac97_control_find(ac, AUDIO_CTRL_ID_FRONT);
265 ctrl = ac97_control_find(ac, AUDIO_CTRL_ID_SURROUND);
269 ctrl = ac97_control_find(ac, AUDIO_CTRL_ID_CENTER);
273 ctrl = ac97_control_find(ac, AUDIO_CTRL_ID_LFE);
279 ac_wr(ac, AC97_INTERRUPT_PAGING_REGISTER, 0); /* select page 0 */
280 ac_wr(ac, AC97_PCM_OUT_VOLUME_REGISTER, 0);
281 ac_wr(ac, AC97_MASTER_VOLUME_REGISTER, 0);
282 ac_wr(ac, AC97_EXTENDED_C_LFE_VOLUME_REGISTER, 0);
283 ac_wr(ac, AC97_EXTENDED_LRS_VOLUME_REGISTER, 0);
292 audio_dev_add_soft_volume(ac_get_dev(ac));
296 cmi9739_init(ac97_t *ac)
298 cmi_setup_volume(ac);
299 cmi_setup_micboost(ac);
300 cmi_setup_jack_funcs(ac);
304 cmi9761_init(ac97_t *ac)
306 cmi_setup_volume(ac);
307 cmi_setup_micboost(ac);
308 cmi_setup_jack_funcs(ac);
312 cmi9738_init(ac97_t *ac)
314 cmi_setup_volume(ac);
315 cmi_setup_jack_func_9738(ac);