/hardware/qcom/audio/legacy/libalsa-intf/ |
D | amix.c | 34 struct mixer_ctl *get_ctl(struct mixer *mixer, char *name) in get_ctl() argument 40 return mixer_get_nth_control(mixer, atoi(name) - 1); in get_ctl() 48 return mixer_get_control(mixer, name, idx); in get_ctl() 53 struct mixer *mixer; in main() local 59 mixer = mixer_open(device); in main() 60 if (!mixer){ in main() 66 mixer_dump(mixer); in main() 67 mixer_close(mixer); in main() 71 ctl = get_ctl(mixer, argv[1]); in main() 77 mixer_close(mixer); in main() [all …]
|
D | alsa_mixer.c | 127 void mixer_close(struct mixer *mixer) in mixer_close() argument 131 if (mixer->fd >= 0) in mixer_close() 132 close(mixer->fd); in mixer_close() 134 if (mixer->ctl) { in mixer_close() 135 for (n = 0; n < mixer->count; n++) { 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() [all …]
|
D | alsa_audio.h | 87 struct mixer *mixer; member 127 struct mixer { struct 172 struct mixer; 175 struct mixer *mixer_open(const char *device); 176 void mixer_close(struct mixer *mixer); 177 void mixer_dump(struct mixer *mixer); 179 struct mixer_ctl *mixer_get_control(struct mixer *mixer, 181 struct mixer_ctl *mixer_get_nth_control(struct mixer *mixer, unsigned n);
|
/hardware/knowles/athletico/sound_trigger_hal/tests/ |
D | oslo_package_test.c | 25 static struct mixer* open_mixer_ctl() in open_mixer_ctl() 30 static void close_mixer_ctl(struct mixer *mixer) in close_mixer_ctl() argument 32 if (mixer) { in close_mixer_ctl() 33 mixer_close(mixer); in close_mixer_ctl() 37 static int set_mixer_ctl_val(struct mixer *mixer, char *id, int value) in set_mixer_ctl_val() argument 42 if ((NULL == mixer) || (NULL == id)) { in set_mixer_ctl_val() 48 ctl = mixer_get_ctl_by_name(mixer, id); in set_mixer_ctl_val() 65 static int set_mixer_ctl_string(struct mixer *mixer, char *id, const char *string) in set_mixer_ctl_string() argument 70 if ((NULL == mixer) || (NULL == id)) { in set_mixer_ctl_string() 76 ctl = mixer_get_ctl_by_name(mixer, id); in set_mixer_ctl_string() [all …]
|
/hardware/qcom/display/msm8084/liboverlay/ |
D | overlay.cpp | 113 eDest Overlay::nextPipe(eMdpPipeType type, int dpy, int mixer) { in nextPipe() argument 122 mPipeBook[i].mMixer == mixer) && in nextPipe() 137 mPipeBook[index].mMixer = mixer; in nextPipe() 143 PipeBook::getDestStr(dest), dpy, mixer); in nextPipe() 150 (int)type, dpy, mixer); in nextPipe() 167 return nextPipe(OV_MDP_PIPE_VG, pipeSpecs.dpy, pipeSpecs.mixer); in getPipe() 170 dest = nextPipe(OV_MDP_PIPE_DMA, pipeSpecs.dpy, pipeSpecs.mixer); in getPipe() 173 dest = nextPipe(OV_MDP_PIPE_RGB, pipeSpecs.dpy, pipeSpecs.mixer); in getPipe() 176 dest = nextPipe(OV_MDP_PIPE_VG, pipeSpecs.dpy, pipeSpecs.mixer); in getPipe() 179 dest = nextPipe(OV_MDP_PIPE_RGB, pipeSpecs.dpy, pipeSpecs.mixer); in getPipe() [all …]
|
D | overlay.h | 57 dpy(DPY_PRIMARY), mixer(MIXER_DEFAULT) {} in PipeSpecs() 62 int mixer; member 112 int availablePipes(int dpy, int mixer); 165 utils::eDest nextPipe(utils::eMdpPipeType, int dpy, int mixer); 254 inline int Overlay::availablePipes(int dpy, int mixer) { in availablePipes() argument 260 mPipeBook[i].mMixer == mixer) && in availablePipes()
|
/hardware/qcom/audio/hal/ |
D | acdb.c | 41 struct mixer *mixer = NULL; in acdb_init() local 49 mixer = mixer_open(snd_card_num); in acdb_init() 50 if (!mixer) { in acdb_init() 99 ctl = mixer_get_ctl_by_name(mixer, CVD_VERSION_MIXER_CTL); in acdb_init() 118 snd_card_name = strdup(mixer_get_name(mixer)); in acdb_init() 147 mixer_close(mixer); in acdb_init()
|
/hardware/qcom/display/msm8226/liboverlay/ |
D | overlay.cpp | 124 eDest Overlay::nextPipe(eMdpPipeType type, int dpy, int mixer) { in nextPipe() argument 133 mPipeBook[i].mMixer == mixer) && in nextPipe() 148 mPipeBook[index].mMixer = mixer; in nextPipe() 154 PipeBook::getDestStr(dest), dpy, mixer); in nextPipe() 161 (int)type, dpy, mixer); in nextPipe() 180 return nextPipe(OV_MDP_PIPE_VG, pipeSpecs.dpy, pipeSpecs.mixer); in getPipe() 183 dest = nextPipe(OV_MDP_PIPE_DMA, pipeSpecs.dpy, pipeSpecs.mixer); in getPipe() 186 dest = nextPipe(OV_MDP_PIPE_RGB, pipeSpecs.dpy, pipeSpecs.mixer); in getPipe() 189 dest = nextPipe(OV_MDP_PIPE_VG, pipeSpecs.dpy, pipeSpecs.mixer); in getPipe() 192 dest = nextPipe(OV_MDP_PIPE_RGB, pipeSpecs.dpy, pipeSpecs.mixer); in getPipe() [all …]
|
D | overlay.h | 57 dpy(DPY_PRIMARY), mixer(MIXER_DEFAULT), numActiveDisplays(1) {} in PipeSpecs() 62 int mixer; member 113 int availablePipes(int dpy, int mixer); 170 utils::eDest nextPipe(utils::eMdpPipeType, int dpy, int mixer); 262 inline int Overlay::availablePipes(int dpy, int mixer) { in availablePipes() argument 268 mPipeBook[i].mMixer == mixer) && in availablePipes()
|
/hardware/qcom/audio/legacy/alsa_sound/ |
D | ALSAMixer.cpp | 98 static int initMixer (snd_mixer_t **mixer, const char *name) in initMixer() argument 102 if ((err = snd_mixer_open(mixer, 0)) < 0) { in initMixer() 107 if ((err = snd_mixer_attach(*mixer, name)) < 0) { in initMixer() 111 if ((err = snd_mixer_attach(*mixer, "hw:00")) < 0) { in initMixer() 115 snd_mixer_close (*mixer); in initMixer() 116 *mixer = NULL; in initMixer() 121 if ((err = snd_mixer_selem_register(*mixer, NULL, NULL)) < 0) { in initMixer() 123 snd_mixer_close (*mixer); in initMixer() 124 *mixer = NULL; in initMixer() 129 if ((err = snd_mixer_load(*mixer)) < 0) { in initMixer() [all …]
|
/hardware/qcom/audio/hal/audio_extn/ |
D | utils.c | 58 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in set_stream_app_type_mixer_ctrl() 82 void audio_extn_utils_send_default_app_type_cfg(void *platform, struct mixer *mixer) in audio_extn_utils_send_default_app_type_cfg() argument 89 ctl = mixer_get_ctl_by_name(mixer, mixer_ctl_name); in audio_extn_utils_send_default_app_type_cfg() 425 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in audio_extn_utils_send_app_type_gain() 535 struct mixer *mixer = NULL; in audio_extn_utils_get_snd_card_num() local 566 mixer = mixer_open(snd_card_num); in audio_extn_utils_get_snd_card_num() 568 if (!mixer) { in audio_extn_utils_get_snd_card_num() 577 snd_card_name = mixer_get_name(mixer); in audio_extn_utils_get_snd_card_num() 615 mixer_close(mixer); in audio_extn_utils_get_snd_card_num() 616 mixer = NULL; in audio_extn_utils_get_snd_card_num() [all …]
|
D | a2dp.c | 583 ctl_set_bt_feedback_channel = mixer_get_ctl_by_name(a2dp.adev->mixer, in stop_abr() 596 ctl_abr_tx_path = mixer_get_ctl_by_name(a2dp.adev->mixer, in stop_abr() 629 ctl_abr_tx_path = mixer_get_ctl_by_name(a2dp.adev->mixer, in start_abr() 642 ctl_set_bt_feedback_channel = mixer_get_ctl_by_name(a2dp.adev->mixer, in start_abr() 782 ctrl_scrambler_mode = mixer_get_ctl_by_name(a2dp.adev->mixer, in a2dp_check_and_set_scrambler() 832 ctl_sample_rate = mixer_get_ctl_by_name(a2dp.adev->mixer, in a2dp_set_backend_cfg() 848 ctl_sample_rate = mixer_get_ctl_by_name(a2dp.adev->mixer, in a2dp_set_backend_cfg() 873 ctrl_in_channels = mixer_get_ctl_by_name(a2dp.adev->mixer, in a2dp_set_backend_cfg() 907 ctrl_bit_format = mixer_get_ctl_by_name(a2dp.adev->mixer, in a2dp_set_bit_format() 928 ctl_sample_rate_rx = mixer_get_ctl_by_name(a2dp.adev->mixer, in a2dp_reset_backend_cfg() [all …]
|
D | usb.c | 83 struct mixer *usb_snd_mixer; 125 static void usb_soundcard_detail_control(struct mixer *mixer, const char *control) in usb_soundcard_detail_control() argument 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() 175 static void usb_soundcard_list_controls(struct mixer *mixer) in usb_soundcard_list_controls() argument 182 num_ctls = mixer_get_num_ctls(mixer); in usb_soundcard_list_controls() 188 ctl = mixer_get_ctl(mixer, i); in usb_soundcard_list_controls() 195 usb_soundcard_detail_control(mixer, name); in usb_soundcard_list_controls() 214 ctl = mixer_get_ctl_by_name(usbmod->adev->mixer, dev_mixer_ctl_name); in usb_set_dev_id_mixer_ctl()
|
D | audio_extn.h | 186 void audio_extn_utils_send_default_app_type_cfg(void *platform, struct mixer *mixer);
|
/hardware/qcom/audio/post_proc/ |
D | effect_api.h | 21 struct mixer *mixer, 23 void offload_close_mixer(struct mixer *mixer);
|
D | effect_api.c | 58 struct mixer *mixer, in offload_update_mixer_and_effects_ctl() argument 66 mixer = mixer_open(card); in offload_update_mixer_and_effects_ctl() 67 if (!mixer) { in offload_update_mixer_and_effects_ctl() 72 ctl = mixer_get_ctl_by_name(mixer, mixer_string); in offload_update_mixer_and_effects_ctl() 75 mixer_close(mixer); in offload_update_mixer_and_effects_ctl() 76 mixer = NULL; in offload_update_mixer_and_effects_ctl() 80 ALOGV("mixer: %p, ctl: %p", mixer, ctl); in offload_update_mixer_and_effects_ctl() 84 void offload_close_mixer(struct mixer *mixer) in offload_close_mixer() argument 86 mixer_close(mixer); in offload_close_mixer()
|
D | bundle.h | 46 struct mixer *mixer; member
|
D | bundle.c | 209 out_ctxt->mixer = mixer_open(MIXER_CARD); in offload_effects_bundle_hal_start_output() 210 if (!out_ctxt->mixer) { 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() 220 mixer_close(out_ctxt->mixer); in offload_effects_bundle_hal_start_output() 221 out_ctxt->mixer = NULL; in offload_effects_bundle_hal_start_output() 268 if (out_ctxt->mixer) in offload_effects_bundle_hal_stop_output() 269 mixer_close(out_ctxt->mixer); in offload_effects_bundle_hal_stop_output()
|
/hardware/qcom/display/msm8994/liboverlay/ |
D | overlay.h | 60 dpy(DPY_PRIMARY), mixer(MIXER_DEFAULT), numActiveDisplays(1) {} in PipeSpecs() 65 int mixer; member 116 int availablePipes(int dpy, int mixer); 281 inline int Overlay::availablePipes(int dpy, int mixer) { in availablePipes() argument 287 mPipeBook[i].mMixer == mixer) && in availablePipes()
|
/hardware/qcom/audio/visualizer/ |
D | offload_visualizer.c | 306 int configure_proxy_capture(struct mixer *mixer, int value) { in configure_proxy_capture() argument 313 ctl = mixer_get_ctl_by_name(mixer, proxy_ctl_name); in configure_proxy_capture() 332 struct mixer *mixer; in capture_thread_loop() local 343 mixer = mixer_open(capture_config.snd_card_num); in capture_thread_loop() 344 while (mixer == NULL && retry_num < RETRY_NUMBER) { in capture_thread_loop() 346 mixer = mixer_open(capture_config.snd_card_num); in capture_thread_loop() 349 if (mixer == NULL) { in capture_thread_loop() 360 ret = configure_proxy_capture(mixer, 1); in capture_thread_loop() 369 configure_proxy_capture(mixer, 0); in capture_thread_loop() 380 configure_proxy_capture(mixer, 0); in capture_thread_loop() [all …]
|
/hardware/qcom/audio/hal/msm8960/ |
D | platform.c | 255 static int set_echo_reference(struct mixer *mixer, const char* ec_ref) in set_echo_reference() argument 260 ctl = mixer_get_ctl_by_name(mixer, mixer_ctl_name); in set_echo_reference() 278 adev->mixer = mixer_open(MIXER_CARD); in platform_init() 280 if (!adev->mixer) { in platform_init() 854 set_echo_reference(adev->mixer, "SLIM_RX"); in platform_get_input_snd_device() 856 set_echo_reference(adev->mixer, "NONE"); in platform_get_input_snd_device() 940 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in platform_set_hdmi_channels() 1094 struct mixer_ctl *ctl_left = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name_gain_left); in ramp_speaker_gain() 1095 struct mixer_ctl *ctl_right = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name_gain_right); in ramp_speaker_gain() 1168 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name); in platform_set_swap_mixer()
|
/hardware/qcom/audio/hal/msm8974/ |
D | platform.c | 1495 ctl = mixer_get_ctl_by_name(adev->mixer, CVD_VERSION_MIXER_CTL); in get_cvd_version() 1609 struct mixer *mixer) in platform_backend_app_type_cfg_init() argument 1616 ctl = mixer_get_ctl_by_name(mixer, mixer_ctl_name); in platform_backend_app_type_cfg_init() 1654 static void configure_flicker_sensor_input(struct mixer *mixer) in configure_flicker_sensor_input() argument 1674 ctl = mixer_get_ctl_by_name(mixer, ctl1); in configure_flicker_sensor_input() 1676 ctl = mixer_get_ctl_by_name(mixer, ctl2); in configure_flicker_sensor_input() 1678 ctl = mixer_get_ctl_by_name(mixer, ctl3); in configure_flicker_sensor_input() 1680 ctl = mixer_get_ctl_by_name(mixer, ctl4); in configure_flicker_sensor_input() 1682 ctl = mixer_get_ctl_by_name(mixer, ctl5); in configure_flicker_sensor_input() 1684 ctl = mixer_get_ctl_by_name(mixer, ctl6); in configure_flicker_sensor_input() [all …]
|
/hardware/qcom/audio/hal/msm8916/ |
D | platform.c | 762 ctl = mixer_get_ctl_by_name(adev->mixer, CVD_VERSION_MIXER_CTL); in get_cvd_version() 977 snd_card_name = mixer_get_name(my_data->adev->mixer); in platform_acdb_init() 1062 adev->mixer = mixer_open(snd_card_num); in platform_init() 1064 if (!adev->mixer) { in platform_init() 1073 snd_card_name = mixer_get_name(adev->mixer); in platform_init() 1097 mixer_close(adev->mixer); in platform_init() 1098 adev->mixer = NULL; in platform_init() 1106 mixer_close(adev->mixer); in platform_init() 1107 adev->mixer = NULL; in platform_init() 1277 mixer_close(my_data->adev->mixer); in platform_deinit() [all …]
|
/hardware/knowles/athletico/sound_trigger_hal/ |
D | sound_trigger_hw_iaxxx.c | 190 struct mixer *mixer; member 1767 set_default_apll_clk(stdev->mixer); in crash_recovery() 2274 set_default_apll_clk(stdev->mixer); in callback_thread_loop() 2388 set_default_apll_clk(stdev->mixer); in callback_thread_loop() 3215 static struct mixer* find_stdev_mixer_path(int card_num, char *mixer_path_xml) in find_stdev_mixer_path() 3217 struct mixer *mixer = NULL; in find_stdev_mixer_path() local 3225 mixer = mixer_open(card_num); in find_stdev_mixer_path() 3227 if (!mixer) { in find_stdev_mixer_path() 3233 in_snd_card_name = mixer_get_name(mixer); in find_stdev_mixer_path() 3268 return mixer; in find_stdev_mixer_path() [all …]
|
D | cvq_ioctl.h | 246 int set_default_apll_clk(struct mixer *mixer);
|