Home
last modified time | relevance | path

Searched refs:ctl (Results 1 – 25 of 55) sorted by relevance

123

/hardware/qcom/audio/legacy/alsa_sound/
DALSAControl.cpp56 struct mixer_ctl *ctl; in get() local
63 ctl = mixer_get_control(mHandle, name, index); in get()
64 if (!ctl) in get()
67 mixer_ctl_get(ctl, &value); in get()
73 struct mixer_ctl *ctl; in set() local
82 ctl = mixer_get_control(mHandle, name, 0); in set()
83 if(ctl == NULL) { in set()
87 ret = mixer_ctl_set(ctl, value); in set()
93 struct mixer_ctl *ctl; in set() local
102 ctl = mixer_get_control(mHandle, name, 0); in set()
[all …]
/hardware/qcom/audio/legacy/libalsa-intf/
Dalsa_mixer.c134 if (mixer->ctl) { in mixer_close()
136 if (mixer->ctl[n].ename) { in mixer_close()
137 unsigned max = mixer->ctl[n].info->value.enumerated.items; in mixer_close()
139 free(mixer->ctl[n].ename[m]); in mixer_close()
140 free(mixer->ctl[n].ename); in mixer_close()
143 free(mixer->ctl); in mixer_close()
177 mixer->ctl = calloc(elist.count, sizeof(struct mixer_ctl)); in mixer_open()
179 if (!mixer->ctl || !mixer->info) in mixer_open()
198 mixer->ctl[n].info = ei; in mixer_open()
199 mixer->ctl[n].mixer = mixer; in mixer_open()
[all …]
Damix.c54 struct mixer_ctl *ctl; in main() local
71 ctl = get_ctl(mixer, argv[1]); in main()
75 if (!ctl) { in main()
82 r = mixer_ctl_set_value(ctl, argc, argv); in main()
84 r = mixer_ctl_select(ctl, argv[0]); in main()
88 mixer_ctl_get(ctl, &value); in main()
Dalsa_audio.h130 struct mixer_ctl *ctl; member
183 int mixer_ctl_set(struct mixer_ctl *ctl, unsigned percent);
184 int mixer_ctl_select(struct mixer_ctl *ctl, const char *value);
185 void mixer_ctl_get(struct mixer_ctl *ctl, unsigned *value);
186 int mixer_ctl_set_value(struct mixer_ctl *ctl, int count, char ** argv);
/hardware/qcom/audio/post_proc/
Dbass_boost.c57 if (context->ctl) in bassboost_set_strength()
58 offload_bassboost_send_params(context->ctl, &context->offload_bass, in bassboost_set_strength()
159 if (bass_ctxt->ctl) in bassboost_set_device()
160 offload_bassboost_send_params(bass_ctxt->ctl, in bassboost_set_device()
170 if (bass_ctxt->ctl) in bassboost_set_device()
171 offload_bassboost_send_params(bass_ctxt->ctl, in bassboost_set_device()
228 if (bass_ctxt->ctl && bass_ctxt->strength) in bassboost_enable()
229 offload_bassboost_send_params(bass_ctxt->ctl, in bassboost_enable()
244 if (bass_ctxt->ctl) in bassboost_disable()
245 offload_bassboost_send_params(bass_ctxt->ctl, in bassboost_disable()
[all …]
Dvirtualizer.c57 if (context->ctl) in virtualizer_set_strength()
58 offload_virtualizer_send_params(context->ctl, &context->offload_virt, in virtualizer_set_strength()
159 if (virt_ctxt->ctl) in virtualizer_set_device()
160 offload_virtualizer_send_params(virt_ctxt->ctl, in virtualizer_set_device()
170 if (virt_ctxt->ctl) in virtualizer_set_device()
171 offload_virtualizer_send_params(virt_ctxt->ctl, in virtualizer_set_device()
228 if (virt_ctxt->ctl && virt_ctxt->strength) in virtualizer_enable()
229 offload_virtualizer_send_params(virt_ctxt->ctl, in virtualizer_enable()
244 if (virt_ctxt->ctl) in virtualizer_disable()
245 offload_virtualizer_send_params(virt_ctxt->ctl, in virtualizer_disable()
[all …]
Dreverb.c132 if (context->ctl) in reverb_set_room_level()
133 offload_reverb_send_params(context->ctl, &context->offload_reverb, in reverb_set_room_level()
150 if (context->ctl) in reverb_set_room_hf_level()
151 offload_reverb_send_params(context->ctl, &context->offload_reverb, in reverb_set_room_hf_level()
167 if (context->ctl) in reverb_set_decay_time()
168 offload_reverb_send_params(context->ctl, &context->offload_reverb, in reverb_set_decay_time()
185 if (context->ctl) in reverb_set_decay_hf_ratio()
186 offload_reverb_send_params(context->ctl, &context->offload_reverb, in reverb_set_decay_hf_ratio()
202 if (context->ctl) in reverb_set_reverb_level()
203 offload_reverb_send_params(context->ctl, &context->offload_reverb, in reverb_set_reverb_level()
[all …]
Deffect_api.c57 struct mixer_ctl *ctl) in offload_update_mixer_and_effects_ctl() argument
67 ctl = NULL; in offload_update_mixer_and_effects_ctl()
70 ctl = mixer_get_ctl_by_name(mixer, mixer_string); in offload_update_mixer_and_effects_ctl()
71 if (!ctl) { in offload_update_mixer_and_effects_ctl()
78 ALOGV("mixer: %p, ctl: %p", mixer, ctl); in offload_update_mixer_and_effects_ctl()
121 int offload_bassboost_send_params(struct mixer_ctl *ctl, in offload_bassboost_send_params() argument
157 if (param_values[2] && ctl) in offload_bassboost_send_params()
158 mixer_ctl_set_array(ctl, param_values, ARRAY_SIZE(param_values)); in offload_bassboost_send_params()
204 int offload_virtualizer_send_params(struct mixer_ctl *ctl, in offload_virtualizer_send_params() argument
248 if (param_values[2] && ctl) in offload_virtualizer_send_params()
[all …]
Dequalizer.c109 if (context->ctl) in equalizer_set_band_level()
110 offload_eq_send_params(context->ctl, &context->offload_eq, in equalizer_set_band_level()
166 if(context->ctl) in equalizer_set_preset()
167 offload_eq_send_params(context->ctl, &context->offload_eq, in equalizer_set_preset()
463 if (eq_ctxt->ctl) in equalizer_enable()
464 offload_eq_send_params(eq_ctxt->ctl, &eq_ctxt->offload_eq, in equalizer_enable()
478 if (eq_ctxt->ctl) in equalizer_disable()
479 offload_eq_send_params(eq_ctxt->ctl, &eq_ctxt->offload_eq, in equalizer_disable()
489 ALOGV("%s: %p", __func__, output->ctl); in equalizer_start()
490 eq_ctxt->ctl = output->ctl; in equalizer_start()
[all …]
Deffect_api.h22 struct mixer_ctl *ctl);
39 int offload_bassboost_send_params(struct mixer_ctl *ctl,
61 int offload_virtualizer_send_params(struct mixer_ctl *ctl,
77 int offload_eq_send_params(struct mixer_ctl *ctl, struct eq_params *eq,
134 int offload_reverb_send_params(struct mixer_ctl *ctl,
/hardware/qcom/audio/msm8909/post_proc/
Dbass_boost.c291 if (context->ctl) in bassboost_set_strength()
292 offload_bassboost_send_params(bass_ctxt->ctl, bass_ctxt->offload_bass, in bassboost_set_strength()
311 if (bass_ctxt->ctl) in bassboost_set_device()
312 offload_bassboost_send_params(bass_ctxt->ctl, in bassboost_set_device()
322 if (bass_ctxt->ctl) in bassboost_set_device()
323 offload_bassboost_send_params(bass_ctxt->ctl, in bassboost_set_device()
381 if (bass_ctxt->ctl && bass_ctxt->strength) in bassboost_enable()
382 offload_bassboost_send_params(bass_ctxt->ctl, in bassboost_enable()
397 if (bass_ctxt->ctl) in bassboost_disable()
398 offload_bassboost_send_params(bass_ctxt->ctl, in bassboost_disable()
[all …]
Dvirtualizer.c60 if (context->ctl) in virtualizer_set_strength()
61 offload_virtualizer_send_params(context->ctl, context->offload_virt, in virtualizer_set_strength()
162 if (virt_ctxt->ctl) in virtualizer_force_virtualization_mode()
163 offload_virtualizer_send_params(virt_ctxt->ctl, in virtualizer_force_virtualization_mode()
176 if (virt_ctxt->ctl) in virtualizer_force_virtualization_mode()
177 offload_virtualizer_send_params(virt_ctxt->ctl, in virtualizer_force_virtualization_mode()
383 if (virt_ctxt->ctl) in virtualizer_set_device()
384 offload_virtualizer_send_params(virt_ctxt->ctl, in virtualizer_set_device()
395 if (virt_ctxt->ctl) in virtualizer_set_device()
396 offload_virtualizer_send_params(virt_ctxt->ctl, in virtualizer_set_device()
[all …]
Dreverb.c127 if (context->ctl) in reverb_set_room_level()
128 offload_reverb_send_params(context->ctl, context->offload_reverb, in reverb_set_room_level()
145 if (context->ctl) in reverb_set_room_hf_level()
146 offload_reverb_send_params(context->ctl, context->offload_reverb, in reverb_set_room_hf_level()
163 if (context->ctl) in reverb_set_decay_time()
164 offload_reverb_send_params(context->ctl, context->offload_reverb, in reverb_set_decay_time()
181 if (context->ctl) in reverb_set_decay_hf_ratio()
182 offload_reverb_send_params(context->ctl, context->offload_reverb, in reverb_set_decay_hf_ratio()
199 if (context->ctl) in reverb_set_reverb_level()
200 offload_reverb_send_params(context->ctl, context->offload_reverb, in reverb_set_reverb_level()
[all …]
Deffect_api.c80 struct mixer_ctl *ctl) in offload_update_mixer_and_effects_ctl() argument
90 ctl = NULL; in offload_update_mixer_and_effects_ctl()
93 ctl = mixer_get_ctl_by_name(mixer, mixer_string); in offload_update_mixer_and_effects_ctl()
94 if (!ctl) { in offload_update_mixer_and_effects_ctl()
101 ALOGV("mixer: %p, ctl: %p", mixer, ctl); in offload_update_mixer_and_effects_ctl()
144 int offload_bassboost_send_params(struct mixer_ctl *ctl, in offload_bassboost_send_params() argument
180 if (param_values[2] && ctl) in offload_bassboost_send_params()
181 mixer_ctl_set_array(ctl, param_values, ARRAY_SIZE(param_values)); in offload_bassboost_send_params()
206 static int pbe_send_params(eff_mode_t mode, void *ctl, in pbe_send_params() argument
236 if ((mode == OFFLOAD) && param_values[2] && ctl) { in pbe_send_params()
[all …]
Dequalizer.c112 if (context->ctl) in equalizer_set_band_level()
113 offload_eq_send_params(context->ctl, context->offload_eq, in equalizer_set_band_level()
169 if(context->ctl) in equalizer_set_preset()
170 offload_eq_send_params(context->ctl, context->offload_eq, in equalizer_set_preset()
454 if (eq_ctxt->ctl) in equalizer_enable()
455 offload_eq_send_params(eq_ctxt->ctl, eq_ctxt->offload_eq, in equalizer_enable()
469 if (eq_ctxt->ctl) in equalizer_disable()
470 offload_eq_send_params(eq_ctxt->ctl, eq_ctxt->offload_eq, in equalizer_disable()
480 ALOGV("%s: ctxt %p, ctl %p", __func__, eq_ctxt, output->ctl); in equalizer_start()
481 eq_ctxt->ctl = output->ctl; in equalizer_start()
[all …]
Deffect_api.h35 struct mixer_ctl *ctl);
47 int offload_pbe_send_params(struct mixer_ctl *ctl,
67 int offload_bassboost_send_params(struct mixer_ctl *ctl,
89 int offload_virtualizer_send_params(struct mixer_ctl *ctl,
105 int offload_eq_send_params(struct mixer_ctl *ctl, struct eq_params eq,
162 int offload_reverb_send_params(struct mixer_ctl *ctl,
/hardware/qcom/audio/msm8909/hal/audio_extn/
Ddolby.c219 struct mixer_ctl *ctl; in send_ddp_endp_params_stream() local
224 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in send_ddp_endp_params_stream()
225 if (!ctl) { in send_ddp_endp_params_stream()
230 mixer_ctl_set_array(ctl, ddp_endp_params_data, length); in send_ddp_endp_params_stream()
416 struct mixer_ctl *ctl; in audio_extn_dolby_set_endpoint() local
432 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in audio_extn_dolby_set_endpoint()
433 if (!ctl) { in audio_extn_dolby_set_endpoint()
438 ret = mixer_ctl_set_value(ctl, 0, endpoint); in audio_extn_dolby_set_endpoint()
452 struct mixer_ctl *ctl; in audio_extn_dolby_set_dmid() local
469 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in audio_extn_dolby_set_dmid()
[all …]
Dsource_track.c338 struct mixer_ctl *ctl; in get_soundfocus_sourcetracking_data() local
357 ctl = mixer_get_ctl_by_name(adev->mixer, sound_focus_mixer_ctl_name); in get_soundfocus_sourcetracking_data()
358 if (!ctl) { in get_soundfocus_sourcetracking_data()
367 mixer_ctl_update(ctl); in get_soundfocus_sourcetracking_data()
368 count = mixer_ctl_get_num_values(ctl); in get_soundfocus_sourcetracking_data()
376 ret = mixer_ctl_get_array(ctl, (void *)sound_focus_data, count); in get_soundfocus_sourcetracking_data()
399 ctl = mixer_get_ctl_by_name(adev->mixer, source_tracking_mixer_ctl_name); in get_soundfocus_sourcetracking_data()
400 if (!ctl) { in get_soundfocus_sourcetracking_data()
409 mixer_ctl_update(ctl); in get_soundfocus_sourcetracking_data()
410 count = mixer_ctl_get_num_values(ctl); in get_soundfocus_sourcetracking_data()
[all …]
Daudio_extn.c97 struct mixer_ctl *ctl; in audio_extn_customstereo_set_parameters() local
109 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in audio_extn_customstereo_set_parameters()
110 if (!ctl) { in audio_extn_customstereo_set_parameters()
115 if (mixer_ctl_set_value(ctl, 0, custom_stereo_state) < 0) { in audio_extn_customstereo_set_parameters()
281 struct mixer_ctl *ctl; in afe_proxy_set_channel_mapping() local
316 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in afe_proxy_set_channel_mapping()
317 if (!ctl) { in afe_proxy_set_channel_mapping()
325 ret = mixer_ctl_set_array(ctl, set_values, channel_count); in afe_proxy_set_channel_mapping()
334 struct mixer_ctl *ctl = NULL; in audio_extn_set_afe_proxy_channel_mixer() local
353 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in audio_extn_set_afe_proxy_channel_mixer()
[all …]
Dusb.c106 struct mixer_ctl *ctl = NULL; in initPlaybackVolume() local
113 ctl = mixer_get_ctl(usbMixer, i); in initPlaybackVolume()
114 if ((ctl) && (strstr((const char *)mixer_ctl_get_name(ctl), "Playback Volume") && in initPlaybackVolume()
115 !strstr((const char *)mixer_ctl_get_name(ctl), "Mic"))) { in initPlaybackVolume()
119 if (ctl != NULL) { in initPlaybackVolume()
120 ALOGD("Found a volume control for USB: %s", mixer_ctl_get_name(ctl) ); in initPlaybackVolume()
121 usbPlaybackVolume = mixer_ctl_get_value(ctl, 0); in initPlaybackVolume()
123 if (mixer_ctl_set_value(ctl,0,usbPlaybackVolume) < 0) { in initPlaybackVolume()
Dutils.c262 struct mixer_ctl *ctl = NULL; in send_app_type_cfg() local
270 ctl = mixer_get_ctl_by_name(mixer, mixer_ctl_name); in send_app_type_cfg()
271 if (!ctl) { in send_app_type_cfg()
280 mixer_ctl_set_array(ctl, app_type_cfg, length); in send_app_type_cfg()
306 mixer_ctl_set_array(ctl, app_type_cfg, length); in send_app_type_cfg()
489 struct mixer_ctl *ctl; in audio_extn_utils_send_app_type_cfg() local
518 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in audio_extn_utils_send_app_type_cfg()
519 if (!ctl) { in audio_extn_utils_send_app_type_cfg()
545 mixer_ctl_set_array(ctl, app_type_cfg, len); in audio_extn_utils_send_app_type_cfg()
/hardware/qcom/audio/msm8909/hal/voice_extn/
Dcompress_voip.c138 struct mixer_ctl *ctl; in voip_set_volume() local
153 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in voip_set_volume()
154 if (!ctl) { in voip_set_volume()
160 mixer_ctl_set_array(ctl, set_values, ARRAY_SIZE(set_values)); in voip_set_volume()
168 struct mixer_ctl *ctl; in voip_set_mic_mute() local
177 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in voip_set_mic_mute()
178 if (!ctl) { in voip_set_mic_mute()
183 mixer_ctl_set_array(ctl, set_values, ARRAY_SIZE(set_values)); in voip_set_mic_mute()
192 struct mixer_ctl *ctl; in voip_set_mode() local
203 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in voip_set_mode()
[all …]
/hardware/qcom/audio/msm8909/hal/msm8974/
Dplatform.c832 struct mixer_ctl *ctl; in get_cvd_version() local
836 ctl = mixer_get_ctl_by_name(adev->mixer, CVD_VERSION_MIXER_CTL); in get_cvd_version()
837 if (!ctl) { in get_cvd_version()
841 mixer_ctl_update(ctl); in get_cvd_version()
843 count = mixer_ctl_get_num_values(ctl); in get_cvd_version()
847 ret = mixer_ctl_get_array(ctl, cvd_version, count); in get_cvd_version()
1632 struct mixer_ctl *ctl; in platform_set_voice_volume() local
1645 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in platform_set_voice_volume()
1646 if (!ctl) { in platform_set_voice_volume()
1652 mixer_ctl_set_array(ctl, set_values, ARRAY_SIZE(set_values)); in platform_set_voice_volume()
[all …]
/hardware/qcom/audio/msm8909/hal/msm8916/
Dplatform.c929 struct mixer_ctl *ctl; in get_cvd_version() local
933 ctl = mixer_get_ctl_by_name(adev->mixer, CVD_VERSION_MIXER_CTL); in get_cvd_version()
934 if (!ctl) { in get_cvd_version()
938 mixer_ctl_update(ctl); in get_cvd_version()
940 count = mixer_ctl_get_num_values(ctl); in get_cvd_version()
944 ret = mixer_ctl_get_array(ctl, cvd_version, count); in get_cvd_version()
1744 struct mixer_ctl *ctl; in platform_set_voice_volume() local
1757 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in platform_set_voice_volume()
1758 if (!ctl) { in platform_set_voice_volume()
1764 mixer_ctl_set_array(ctl, set_values, ARRAY_SIZE(set_values)); in platform_set_voice_volume()
[all …]
/hardware/qcom/audio/hal/msm8974/
Dplatform.c920 struct mixer_ctl *ctl; in get_cvd_version() local
924 ctl = mixer_get_ctl_by_name(adev->mixer, CVD_VERSION_MIXER_CTL); in get_cvd_version()
925 if (!ctl) { in get_cvd_version()
929 mixer_ctl_update(ctl); in get_cvd_version()
931 count = mixer_ctl_get_num_values(ctl); in get_cvd_version()
935 ret = mixer_ctl_get_array(ctl, cvd_version, count); in get_cvd_version()
1698 struct mixer_ctl *ctl; in platform_set_voice_volume() local
1711 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in platform_set_voice_volume()
1712 if (!ctl) { in platform_set_voice_volume()
1718 mixer_ctl_set_array(ctl, set_values, ARRAY_SIZE(set_values)); in platform_set_voice_volume()
[all …]

123