Home
last modified time | relevance | path

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

12

/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/
Dvirtualizer.c58 if (context->ctl) in virtualizer_set_strength()
59 offload_virtualizer_send_params(context->ctl, &context->offload_virt, in virtualizer_set_strength()
160 if (virt_ctxt->ctl) in virtualizer_set_device()
161 offload_virtualizer_send_params(virt_ctxt->ctl, in virtualizer_set_device()
171 if (virt_ctxt->ctl) in virtualizer_set_device()
172 offload_virtualizer_send_params(virt_ctxt->ctl, in virtualizer_set_device()
229 if (virt_ctxt->ctl && virt_ctxt->strength) in virtualizer_enable()
230 offload_virtualizer_send_params(virt_ctxt->ctl, in virtualizer_enable()
245 if (virt_ctxt->ctl) in virtualizer_disable()
246 offload_virtualizer_send_params(virt_ctxt->ctl, in virtualizer_disable()
[all …]
Dreverb.c134 if (context->ctl) in reverb_set_room_level()
135 offload_reverb_send_params(context->ctl, &context->offload_reverb, in reverb_set_room_level()
152 if (context->ctl) in reverb_set_room_hf_level()
153 offload_reverb_send_params(context->ctl, &context->offload_reverb, in reverb_set_room_hf_level()
169 if (context->ctl) in reverb_set_decay_time()
170 offload_reverb_send_params(context->ctl, &context->offload_reverb, in reverb_set_decay_time()
187 if (context->ctl) in reverb_set_decay_hf_ratio()
188 offload_reverb_send_params(context->ctl, &context->offload_reverb, in reverb_set_decay_hf_ratio()
204 if (context->ctl) in reverb_set_reverb_level()
205 offload_reverb_send_params(context->ctl, &context->offload_reverb, in reverb_set_reverb_level()
[all …]
Deffect_api.c59 struct mixer_ctl *ctl) in offload_update_mixer_and_effects_ctl() argument
69 ctl = NULL; in offload_update_mixer_and_effects_ctl()
72 ctl = mixer_get_ctl_by_name(mixer, mixer_string); in offload_update_mixer_and_effects_ctl()
73 if (!ctl) { in offload_update_mixer_and_effects_ctl()
80 ALOGV("mixer: %p, ctl: %p", mixer, ctl); in offload_update_mixer_and_effects_ctl()
123 int offload_bassboost_send_params(struct mixer_ctl *ctl, in offload_bassboost_send_params() argument
159 if (param_values[2] && ctl) in offload_bassboost_send_params()
160 mixer_ctl_set_array(ctl, param_values, ARRAY_SIZE(param_values)); in offload_bassboost_send_params()
206 int offload_virtualizer_send_params(struct mixer_ctl *ctl, in offload_virtualizer_send_params() argument
250 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()
511 if (eq_ctxt->ctl) in equalizer_enable()
512 offload_eq_send_params(eq_ctxt->ctl, &eq_ctxt->offload_eq, in equalizer_enable()
526 if (eq_ctxt->ctl) in equalizer_disable()
527 offload_eq_send_params(eq_ctxt->ctl, &eq_ctxt->offload_eq, in equalizer_disable()
537 ALOGV("%s: %p", __func__, output->ctl); in equalizer_start()
538 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,
Dbundle.c212 out_ctxt->ctl = NULL; in offload_effects_bundle_hal_start_output()
217 out_ctxt->ctl = mixer_get_ctl_by_name(out_ctxt->mixer, mixer_string); in offload_effects_bundle_hal_start_output()
218 if (!out_ctxt->ctl) { in offload_effects_bundle_hal_start_output()
350 eq_ctxt->ctl = NULL; in effect_lib_create()
367 bass_ctxt->ctl = NULL; in effect_lib_create()
384 virt_ctxt->ctl = NULL; in effect_lib_create()
423 reverb_ctxt->ctl = NULL; in effect_lib_create()
Dvirtualizer.h30 struct mixer_ctl *ctl; member
Dbass_boost.h30 struct mixer_ctl *ctl; member
Dequalizer.h35 struct mixer_ctl *ctl; member
Dreverb.h46 struct mixer_ctl *ctl; member
Dbundle.h47 struct mixer_ctl *ctl; member
/hardware/qcom/audio/hal/audio_extn/
Dusb.c109 static void usb_mixer_print_enum(struct mixer_ctl *ctl) in usb_mixer_print_enum() argument
115 num_enums = mixer_ctl_get_num_enums(ctl); in usb_mixer_print_enum()
118 string = mixer_ctl_get_enum_string(ctl, i); in usb_mixer_print_enum()
119 ALOGI("\t%s%s", mixer_ctl_get_value(ctl, 0) == (int)i ? ">" : "", string); in usb_mixer_print_enum()
125 struct mixer_ctl *ctl; in usb_soundcard_detail_control() local
132 ctl = mixer_get_ctl(mixer, atoi(control)); in usb_soundcard_detail_control()
134 ctl = mixer_get_ctl_by_name(mixer, control); in usb_soundcard_detail_control()
136 if (!ctl) { in usb_soundcard_detail_control()
141 type = mixer_ctl_get_type(ctl); in usb_soundcard_detail_control()
142 num_values = mixer_ctl_get_num_values(ctl); in usb_soundcard_detail_control()
[all …]
Dutils.c46 struct mixer_ctl *ctl; in set_stream_app_type_mixer_ctrl() local
58 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in set_stream_app_type_mixer_ctrl()
59 if (!ctl) { in set_stream_app_type_mixer_ctrl()
76 mixer_ctl_set_array(ctl, app_type_cfg, len); in set_stream_app_type_mixer_ctrl()
86 struct mixer_ctl *ctl = NULL; in audio_extn_utils_send_default_app_type_cfg() local
89 ctl = mixer_get_ctl_by_name(mixer, mixer_ctl_name); in audio_extn_utils_send_default_app_type_cfg()
90 if (!ctl) { in audio_extn_utils_send_default_app_type_cfg()
100 mixer_ctl_set_array(ctl, app_type_cfg, length); in audio_extn_utils_send_default_app_type_cfg()
122 struct mixer_ctl *ctl; in audio_extn_utils_send_app_type_cfg_hfp() local
351 struct mixer_ctl *ctl; in audio_extn_utils_send_app_type_cfg() local
[all …]
Dhfp.c87 struct mixer_ctl *ctl; in hfp_set_volume() local
119 ctl = mixer_get_ctl_by_name(adev->mixer, hfpmod.hfp_vol_mixer_ctl); in hfp_set_volume()
120 if (!ctl) { in hfp_set_volume()
125 if(mixer_ctl_set_value(ctl, 0, vol) < 0) { in hfp_set_volume()
143 struct mixer_ctl *ctl; in hfp_set_mic_volume() local
163 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in hfp_set_mic_volume()
164 if (!ctl) { in hfp_set_mic_volume()
172 if (mixer_ctl_set_value(ctl, 0, volume) < 0) { in hfp_set_mic_volume()
184 struct mixer_ctl *ctl; in hfp_get_mic_volume() local
196 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in hfp_get_mic_volume()
[all …]
Dspkr_protection.c275 struct mixer_ctl *ctl; in vi_feed_get_channels() local
280 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in vi_feed_get_channels()
281 if (!ctl) { in vi_feed_get_channels()
286 value = mixer_ctl_get_value(ctl, 0); in vi_feed_get_channels()
/hardware/qcom/audio/hal/
Dacdb.c96 struct mixer_ctl *ctl = NULL; in acdb_init() local
99 ctl = mixer_get_ctl_by_name(mixer, CVD_VERSION_MIXER_CTL); in acdb_init()
100 if (!ctl) { in acdb_init()
104 mixer_ctl_update(ctl); in acdb_init()
106 count = mixer_ctl_get_num_values(ctl); in acdb_init()
110 result = mixer_ctl_get_array(ctl, cvd_version, count); in acdb_init()
/hardware/qcom/audio/hal/msm8916/
Dplatform.c723 struct mixer_ctl *ctl; in get_cvd_version() local
727 ctl = mixer_get_ctl_by_name(adev->mixer, CVD_VERSION_MIXER_CTL); in get_cvd_version()
728 if (!ctl) { in get_cvd_version()
732 mixer_ctl_update(ctl); in get_cvd_version()
734 count = mixer_ctl_get_num_values(ctl); in get_cvd_version()
738 ret = mixer_ctl_get_array(ctl, cvd_version, count); in get_cvd_version()
1645 struct mixer_ctl *ctl; in platform_set_voice_volume() local
1658 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in platform_set_voice_volume()
1659 if (!ctl) { in platform_set_voice_volume()
1665 ret = mixer_ctl_set_array(ctl, set_values, ARRAY_SIZE(set_values)); in platform_set_voice_volume()
[all …]
/hardware/qcom/audio/hal/msm8960/
Dplatform.c255 struct mixer_ctl *ctl; in set_echo_reference() local
258 ctl = mixer_get_ctl_by_name(mixer, mixer_ctl_name); in set_echo_reference()
259 if (!ctl) { in set_echo_reference()
265 mixer_ctl_set_enum_by_string(ctl, ec_ref); in set_echo_reference()
902 struct mixer_ctl *ctl; in platform_set_hdmi_channels() local
921 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in platform_set_hdmi_channels()
922 if (!ctl) { in platform_set_hdmi_channels()
928 mixer_ctl_set_enum_by_string(ctl, channel_cnt_str); in platform_set_hdmi_channels()
1072 const struct mixer_ctl *ctl; in ramp_speaker_gain() local
1131 struct mixer_ctl *ctl; in platform_set_swap_mixer() local
[all …]
/hardware/broadcom/wlan/bcmdhd/dhdutil/include/proto/
D802.3.h36 uint8 ctl; /* always 0x03 */ member
Dvlan.h67 uint8 ctl; /* always 0x03 */ member
/hardware/intel/audio_media/hdmi/
Dtinyaudio_hw.c414 struct mixer_ctl *ctl; in parse_channel_map() local
433 ctl = mixer_get_ctl_by_name(mixer, "Playback Channel Map"); in parse_channel_map()
437 type = mixer_ctl_get_type(ctl); in parse_channel_map()
438 num_values = mixer_ctl_get_num_values(ctl); in parse_channel_map()
448 chmap = mixer_ctl_get_value(ctl, i); in parse_channel_map()

12