Home
last modified time | relevance | path

Searched refs:ctl (Results 1 – 25 of 39) 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/interfaces/audio/aidl/default/alsa/
DMixer.cpp62 struct mixer_ctl* ctl = mixer_get_ctl_by_name(mixer, ctlName.c_str()); in initializeMixerControls() local
63 if (ctl != nullptr && mixer_ctl_get_type(ctl) == expectedCtlType) { in initializeMixerControls()
64 mixerControls.emplace(control, ctl); in initializeMixerControls()
172 ndk::ScopedAStatus Mixer::findControl(Control ctl, struct mixer_ctl** result) { in findControl() argument
176 if (auto it = mMixerControls.find(ctl); it != mMixerControls.end()) { in findControl()
183 ndk::ScopedAStatus Mixer::getMixerControlMute(Control ctl, bool* muted) { in getMixerControlMute() argument
185 RETURN_STATUS_IF_ERROR(findControl(ctl, &mctl)); in getMixerControlMute()
189 LOG(ERROR) << __func__ << ": failed to get " << ctl << ", err=" << err; in getMixerControlMute()
193 LOG(ERROR) << __func__ << ": got no values for " << ctl; in getMixerControlMute()
200 ndk::ScopedAStatus Mixer::getMixerControlVolume(Control ctl, float* volume) { in getMixerControlVolume() argument
[all …]
DMixer.h68 ndk::ScopedAStatus findControl(Control ctl, struct mixer_ctl** result);
69 ndk::ScopedAStatus getMixerControlMute(Control ctl, bool* muted);
70 ndk::ScopedAStatus getMixerControlVolume(Control ctl, float* volume);
71 ndk::ScopedAStatus setMixerControlMute(Control ctl, bool muted);
72 ndk::ScopedAStatus setMixerControlVolume(Control ctl, float volume);
74 int getMixerControlPercent(struct mixer_ctl* ctl, std::vector<int>* percents)
76 int getMixerControlValues(struct mixer_ctl* ctl, std::vector<int>* values)
78 int setMixerControlPercent(struct mixer_ctl* ctl, int percent) REQUIRES(mMixerAccess);
79 int setMixerControlPercent(struct mixer_ctl* ctl, const std::vector<int>& percents)
81 int setMixerControlValue(struct mixer_ctl* ctl, int value) REQUIRES(mMixerAccess);
/hardware/google/pixel-sepolicy/fingerprint-extension/system_ext/private/
Dproperty_contexts2 ctl.start$fingerprint-extension-bug-latency u:object_r:pixel_fingerprint_prop:s0
3 ctl.stop$fingerprint-extension-bug-latency u:object_r:pixel_fingerprint_prop:s0
6 ctl.start$fingerprint-extension-bug-lockout u:object_r:pixel_fingerprint_prop:s0
7 ctl.stop$fingerprint-extension-bug-lockout u:object_r:pixel_fingerprint_prop:s0
10 ctl.start$fingerprint-extension-bug-auth u:object_r:pixel_fingerprint_prop:s0
11 ctl.stop$fingerprint-extension-bug-auth u:object_r:pixel_fingerprint_prop:s0
/hardware/qcom/audio/post_proc/
Dbass_boost.c58 if (context->ctl) in bassboost_set_strength()
59 offload_bassboost_send_params(context->ctl, &context->offload_bass, in bassboost_set_strength()
160 if (bass_ctxt->ctl) in bassboost_set_device()
161 offload_bassboost_send_params(bass_ctxt->ctl, in bassboost_set_device()
171 if (bass_ctxt->ctl) in bassboost_set_device()
172 offload_bassboost_send_params(bass_ctxt->ctl, in bassboost_set_device()
229 if (bass_ctxt->ctl && bass_ctxt->strength) in bassboost_enable()
230 offload_bassboost_send_params(bass_ctxt->ctl, in bassboost_enable()
245 if (bass_ctxt->ctl) in bassboost_disable()
246 offload_bassboost_send_params(bass_ctxt->ctl, in bassboost_disable()
[all …]
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
/hardware/qcom/audio/hal/audio_extn/
Dusb.c111 static void usb_mixer_print_enum(struct mixer_ctl *ctl) in usb_mixer_print_enum() argument
117 num_enums = mixer_ctl_get_num_enums(ctl); in usb_mixer_print_enum()
120 string = mixer_ctl_get_enum_string(ctl, i); in usb_mixer_print_enum()
121 ALOGI("\t%s%s", mixer_ctl_get_value(ctl, 0) == (int)i ? ">" : "", string); in usb_mixer_print_enum()
127 struct mixer_ctl *ctl; in usb_soundcard_detail_control() local
134 ctl = mixer_get_ctl(mixer, atoi(control)); in usb_soundcard_detail_control()
136 ctl = mixer_get_ctl_by_name(mixer, control); in usb_soundcard_detail_control()
138 if (!ctl) { in usb_soundcard_detail_control()
143 type = mixer_ctl_get_type(ctl); in usb_soundcard_detail_control()
144 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
357 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 …]
Dcirrus_playback.c210 struct mixer_ctl *ctl = NULL; in audio_extn_cirrus_run_calibration() local
346 ctl = mixer_get_ctl_by_name(adev->mixer, in audio_extn_cirrus_run_calibration()
348 if (!ctl) { in audio_extn_cirrus_run_calibration()
355 ret = mixer_ctl_set_value(ctl, 0, 0); // Set RX external firmware config in audio_extn_cirrus_run_calibration()
642 struct mixer_ctl *ctl = NULL; in audio_extn_cirrus_failure_detect_thread() local
658 ctl = mixer_get_ctl_by_name(adev->mixer, CRUS_SP_FAIL_DET_MIXER); in audio_extn_cirrus_failure_detect_thread()
659 det_en = mixer_ctl_get_value(ctl, 0); in audio_extn_cirrus_failure_detect_thread()
786 det_en = mixer_ctl_get_value(ctl, 0); in audio_extn_cirrus_failure_detect_thread()
/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/msm8974/
Dplatform.c1510 struct mixer_ctl *ctl; in get_cvd_version() local
1514 ctl = mixer_get_ctl_by_name(adev->mixer, CVD_VERSION_MIXER_CTL); in get_cvd_version()
1515 if (!ctl) { in get_cvd_version()
1519 mixer_ctl_update(ctl); in get_cvd_version()
1521 count = mixer_ctl_get_num_values(ctl); in get_cvd_version()
1525 ret = mixer_ctl_get_array(ctl, cvd_version, count); in get_cvd_version()
1632 struct mixer_ctl *ctl = NULL; in platform_backend_app_type_cfg_init() local
1635 ctl = mixer_get_ctl_by_name(mixer, mixer_ctl_name); in platform_backend_app_type_cfg_init()
1636 if (!ctl) { in platform_backend_app_type_cfg_init()
1666 if (mixer_ctl_set_array(ctl, app_type_cfg, length) < 0) { in platform_backend_app_type_cfg_init()
[all …]
/hardware/knowles/athletico/sound_trigger_hal/tests/
Doslo_package_test.c39 struct mixer_ctl *ctl = NULL; in set_mixer_ctl_val() local
48 ctl = mixer_get_ctl_by_name(mixer, id); in set_mixer_ctl_val()
49 if (NULL == ctl) { in set_mixer_ctl_val()
55 if (mixer_ctl_set_value(ctl, 0, value)) { in set_mixer_ctl_val()
67 struct mixer_ctl *ctl = NULL; in set_mixer_ctl_string() local
76 ctl = mixer_get_ctl_by_name(mixer, id); in set_mixer_ctl_string()
77 if (NULL == ctl) { in set_mixer_ctl_string()
83 if (mixer_ctl_set_enum_by_string(ctl, string)) { in set_mixer_ctl_string()
/hardware/qcom/audio/hal/msm8916/
Dplatform.c776 struct mixer_ctl *ctl; in get_cvd_version() local
780 ctl = mixer_get_ctl_by_name(adev->mixer, CVD_VERSION_MIXER_CTL); in get_cvd_version()
781 if (!ctl) { in get_cvd_version()
785 mixer_ctl_update(ctl); in get_cvd_version()
787 count = mixer_ctl_get_num_values(ctl); in get_cvd_version()
791 ret = mixer_ctl_get_array(ctl, cvd_version, count); in get_cvd_version()
1770 struct mixer_ctl *ctl; local
1783 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name);
1784 if (!ctl) {
1790 ret = mixer_ctl_set_array(ctl, set_values, ARRAY_SIZE(set_values));
[all …]
/hardware/broadcom/wlan/bcmdhd/dhdutil/include/proto/
D802.3.h36 uint8 ctl; /* always 0x03 */ member
/hardware/qcom/audio/hal/msm8960/
Dplatform.c275 struct mixer_ctl *ctl; in set_echo_reference() local
278 ctl = mixer_get_ctl_by_name(mixer, mixer_ctl_name); in set_echo_reference()
279 if (!ctl) { in set_echo_reference()
285 mixer_ctl_set_enum_by_string(ctl, ec_ref); in set_echo_reference()
939 struct mixer_ctl *ctl; in platform_set_hdmi_channels() local
958 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in platform_set_hdmi_channels()
959 if (!ctl) { in platform_set_hdmi_channels()
965 mixer_ctl_set_enum_by_string(ctl, channel_cnt_str); in platform_set_hdmi_channels()
1182 const struct mixer_ctl *ctl; in ramp_speaker_gain() local
1241 struct mixer_ctl *ctl; in platform_set_swap_mixer() local
[all …]

12