Lines Matching refs:use_case

539 const char *use_case)  in check_devices_for_voice_call()  argument
544 if ((!strncmp(use_case, SND_USE_CASE_VERB_VOICECALL, in check_devices_for_voice_call()
546 (!strncmp(use_case, SND_USE_CASE_VERB_IP_VOICECALL, in check_devices_for_voice_call()
548 (!strncmp(use_case, SND_USE_CASE_MOD_PLAY_VOICE, in check_devices_for_voice_call()
550 (!strncmp(use_case, SND_USE_CASE_MOD_PLAY_VOIP, in check_devices_for_voice_call()
702 int get_use_case_index(snd_use_case_mgr_t *uc_mgr, const char *use_case, in get_use_case_index() argument
730 while(strncmp(ctrl_list[index].case_name, use_case, (strlen(use_case)+1))) { in get_use_case_index()
756 const char *use_case, int enable, int ctrl_list_type, int uc_index) in snd_use_case_apply_mixer_controls() argument
784 ALOGE("No valid use case found with the use case: %s", use_case); in snd_use_case_apply_mixer_controls()
792 (check_devices_for_voice_call(uc_mgr, use_case) != NULL)) in snd_use_case_apply_mixer_controls()
794 ALOGD("Set mixer controls for %s enable %d", use_case, enable); in snd_use_case_apply_mixer_controls()
822 ALOGE("No valid controls exist for this case: %s", use_case); in snd_use_case_apply_mixer_controls()
867 use_case); in snd_use_case_apply_mixer_controls()
961 char *current_device, use_case[MAX_UC_LEN]; in set_controls_of_usecase_for_all_devices() local
1011 strlcpy(use_case, ident, sizeof(use_case)); in set_controls_of_usecase_for_all_devices()
1012 strlcat(use_case, current_device, sizeof(use_case)); in set_controls_of_usecase_for_all_devices()
1013 ALOGV("Applying mixer controls for use case: %s", use_case); in set_controls_of_usecase_for_all_devices()
1015 get_use_case_index(uc_mgr, use_case, ctrl_list_type)) < 0) { in set_controls_of_usecase_for_all_devices()
1016 ALOGV("No valid use case found: %s", use_case); in set_controls_of_usecase_for_all_devices()
1021 ret = snd_use_case_apply_mixer_controls(uc_mgr, use_case, in set_controls_of_usecase_for_all_devices()
1025 use_case[0] = 0; in set_controls_of_usecase_for_all_devices()
1055 char use_case[MAX_UC_LEN]; in set_controls_of_usecase_for_device() local
1079 strlcpy(use_case, ident, sizeof(use_case)); in set_controls_of_usecase_for_device()
1080 strlcat(use_case, device, sizeof(use_case)); in set_controls_of_usecase_for_device()
1081 ALOGV("Applying mixer controls for use case: %s", use_case); in set_controls_of_usecase_for_device()
1082 if ((uc_index = get_use_case_index(uc_mgr, use_case, ctrl_list_type)) < 0) { in set_controls_of_usecase_for_device()
1083 ALOGV("No valid use case found: %s", use_case ); in set_controls_of_usecase_for_device()
1091 ret = snd_use_case_apply_mixer_controls(uc_mgr, use_case, enable, in set_controls_of_usecase_for_device()
1115 char *ident_value, use_case[MAX_UC_LEN]; in set_controls_of_device_for_all_usecases() local
1134 strlcpy(use_case, uc_mgr->card_ctxt_ptr->current_verb, in set_controls_of_device_for_all_usecases()
1135 sizeof(use_case)); in set_controls_of_device_for_all_usecases()
1136 strlcat(use_case, device, sizeof(use_case)); in set_controls_of_device_for_all_usecases()
1138 get_use_case_index(uc_mgr, use_case, CTRL_LIST_VERB)) < 0) { in set_controls_of_device_for_all_usecases()
1139 ALOGV("No valid use case found: %s", use_case); in set_controls_of_device_for_all_usecases()
1154 ALOGV("set %d for use case value: %s", enable, use_case); in set_controls_of_device_for_all_usecases()
1155 ret = snd_use_case_apply_mixer_controls(uc_mgr, use_case, in set_controls_of_device_for_all_usecases()
1159 %s, enable: %d", use_case, device, enable); in set_controls_of_device_for_all_usecases()
1175 use_case[0] = 0; in set_controls_of_device_for_all_usecases()
1176 strlcpy(use_case, uc_mgr->card_ctxt_ptr->current_verb, in set_controls_of_device_for_all_usecases()
1177 sizeof(use_case)); in set_controls_of_device_for_all_usecases()
1178 uc_index = get_use_case_index(uc_mgr, use_case, CTRL_LIST_VERB); in set_controls_of_device_for_all_usecases()
1184 ALOGV("set %d for use case value: %s", enable, use_case); in set_controls_of_device_for_all_usecases()
1185 ret = snd_use_case_apply_mixer_controls(uc_mgr, use_case, in set_controls_of_device_for_all_usecases()
1189 device %s, enable: %d", use_case, device, enable); in set_controls_of_device_for_all_usecases()
1193 use_case[0] = 0; in set_controls_of_device_for_all_usecases()
1206 strlcpy(use_case, ident_value, sizeof(use_case)); in set_controls_of_device_for_all_usecases()
1207 strlcat(use_case, device, sizeof(use_case)); in set_controls_of_device_for_all_usecases()
1208 if ((uc_index = get_use_case_index(uc_mgr, use_case, in set_controls_of_device_for_all_usecases()
1210 ALOGV("No valid use case found: %s", use_case); in set_controls_of_device_for_all_usecases()
1226 ALOGV("set %d for use case value: %s", enable, use_case); in set_controls_of_device_for_all_usecases()
1228 use_case, enable, CTRL_LIST_MODIFIER, uc_index); in set_controls_of_device_for_all_usecases()
1231 device %s, enable: %d", use_case, device, enable); in set_controls_of_device_for_all_usecases()
1247 use_case[0] = 0; in set_controls_of_device_for_all_usecases()
1248 strlcpy(use_case, ident_value, sizeof(use_case)); in set_controls_of_device_for_all_usecases()
1254 ALOGV("set %d for use case value: %s", enable, use_case); in set_controls_of_device_for_all_usecases()
1255 ret = snd_use_case_apply_mixer_controls(uc_mgr, use_case, in set_controls_of_device_for_all_usecases()
1259 device %s, enable: %d", use_case, device, enable); in set_controls_of_device_for_all_usecases()
1263 use_case[0] = 0; in set_controls_of_device_for_all_usecases()
1312 char use_case[MAX_UC_LEN]; in set_controls_of_device_for_usecase() local
1324 strlcpy(use_case, usecase, sizeof(use_case)); in set_controls_of_device_for_usecase()
1325 strlcat(use_case, device, sizeof(use_case)); in set_controls_of_device_for_usecase()
1326 if ((uc_index = get_use_case_index(uc_mgr, use_case, in set_controls_of_device_for_usecase()
1328 ALOGV("No valid use case found: %s", use_case); in set_controls_of_device_for_usecase()
1341 ALOGV("set %d for use case value: %s", enable, use_case); in set_controls_of_device_for_usecase()
1342 ret = snd_use_case_apply_mixer_controls(uc_mgr, use_case, enable, in set_controls_of_device_for_usecase()
1346 enable: %d", use_case, device, enable); in set_controls_of_device_for_usecase()
1348 use_case[0] = 0; in set_controls_of_device_for_usecase()