Home | History | Annotate | Download | only in msm8974

Lines Matching refs:adev

89     struct audio_device *adev;
460 struct audio_device *adev = my_data->adev;
472 if (!voice_is_in_call(adev)) {
478 list_for_each(node, &adev->usecase_list) {
510 void platform_set_echo_reference(struct audio_device *adev, bool enable, audio_devices_t out_device)
512 struct platform_data *my_data = (struct platform_data *)adev->platform;
517 audio_route_reset_and_update_path(adev->audio_route, my_data->ec_ref_mixer_path);
523 snd_device = platform_get_output_snd_device(adev->platform, out_device);
524 platform_add_backend_name(adev->platform, my_data->ec_ref_mixer_path, snd_device);
528 audio_route_apply_and_update_path(adev->audio_route, my_data->ec_ref_mixer_path);
763 void get_cvd_version(char *cvd_version, struct audio_device *adev)
769 ctl = mixer_get_ctl_by_name(adev->mixer, CVD_VERSION_MIXER_CTL);
790 void *platform_init(struct audio_device *adev)
800 my_data->adev = adev;
808 adev->mixer = mixer_open(snd_card_num);
810 while (!adev->mixer && retry_num < RETRY_NUMBER) {
812 adev->mixer = mixer_open(snd_card_num);
816 if (!adev->mixer) {
824 snd_card_name = mixer_get_name(adev->mixer);
838 adev->audio_route = audio_route_init(snd_card_num, MIXER_XML_PATH);
839 if (!adev->audio_route) {
843 adev->snd_card = snd_card_num;
933 get_cvd_version(cvd_version, adev);
961 audio_extn_spkr_prot_init(adev);
963 audio_extn_hwdep_cal_send(adev->snd_card, my_data->acdb_handle);
1160 voice_is_in_call(my_data->adev)) {
1252 my_data->adev->acdb_settings);
1309 struct audio_device *adev = my_data->adev;
1323 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name);
1345 struct audio_device *adev = my_data->adev;
1353 if (adev->mode != AUDIO_MODE_IN_CALL)
1357 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name);
1379 struct audio_device *adev = my_data->adev;
1400 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name);
1460 struct audio_device *adev = my_data->adev;
1461 audio_mode_t mode = adev->mode;
1471 if (voice_is_in_call(adev) || adev->enable_voicerx) {
1475 if (voice_is_in_call(adev) &&
1476 (adev->voice.tty_mode == TTY_MODE_FULL))
1478 else if (voice_is_in_call(adev) &&
1479 (adev->voice.tty_mode == TTY_MODE_VCO))
1481 else if (voice_is_in_call(adev) &&
1482 (adev->voice.tty_mode == TTY_MODE_HCO))
1491 if (adev->bt_wb_speech_enabled) {
1499 if(adev->voice.hac)
1560 if (adev->bt_wb_speech_enabled) {
1569 if(adev->voice.hac)
1584 struct audio_device *adev = my_data->adev;
1585 audio_source_t source = (adev->active_input == NULL) ?
1586 AUDIO_SOURCE_DEFAULT : adev->active_input->source;
1588 audio_mode_t mode = adev->mode;
1589 audio_devices_t in_device = ((adev->active_input == NULL) ?
1590 AUDIO_DEVICE_NONE : adev->active_input->device)
1592 audio_channel_mask_t channel_mask = (adev->active_input == NULL) ?
1593 AUDIO_CHANNEL_IN_MONO : adev->active_input->channel_mask;
1599 if ((out_device != AUDIO_DEVICE_NONE) && voice_is_in_call(adev)) {
1600 if (adev->voice.tty_mode != TTY_MODE_OFF) {
1604 switch (adev->voice.tty_mode) {
1615 ALOGE("%s: Invalid TTY mode (%#x)", __func__, adev->voice.tty_mode);
1632 if (adev->bt_wb_speech_enabled) {
1633 if (adev->bluetooth_nrec)
1638 if (adev->bluetooth_nrec)
1666 adev->active_input->enable_ns)
1671 if (adev->active_input->enable_ns)
1680 if (adev->active_input) {
1681 if (adev->active_input->enable_aec &&
1682 adev->active_input->enable_ns) {
1699 platform_set_echo_reference(adev, true, out_device);
1700 } else if (adev->active_input->enable_aec) {
1717 platform_set_echo_reference(adev, true, out_device);
1718 } else if (adev->active_input->enable_ns) {
1762 if (adev->bt_wb_speech_enabled) {
1763 if (adev->bluetooth_nrec)
1768 if (adev->bluetooth_nrec)
1794 if (adev->bt_wb_speech_enabled) {
1795 if (adev->bluetooth_nrec)
1800 if (adev->bluetooth_nrec)
1821 struct audio_device *adev = my_data->adev;
1841 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name);
1855 struct audio_device *adev = my_data->adev;
1865 ctl = mixer_get_ctl_by_name(adev->mixer, AUDIO_DATA_BLOCK_MIXER_CTL);
1912 struct audio_device *adev = my_data->adev;
1918 ctl = mixer_get_ctl_by_name(adev->mixer, mixer_ctl_name);
2086 int platform_swap_lr_channels(struct audio_device *adev, bool swap_channels)
2091 struct platform_data *my_data = (struct platform_data *)adev->platform;
2096 list_for_each(node, &adev->usecase_list) {
2103 audio_route_apply_and_update_path(adev->audio_route, mixer_path);
2106 audio_route_apply_and_update_path(adev->audio_route, mixer_path);