• Home
  • Raw
  • Download

Lines Matching refs:useCase

200 int getUseCaseType(const char *useCase);
226 strlcat(ident, handle->useCase, sizeof(ident)); in deviceName()
284 … if (!strncmp(handle->useCase, SND_USE_CASE_VERB_HIFI_REC, strlen(SND_USE_CASE_VERB_HIFI_REC)) in setHardwareParams()
285 …|| !strncmp(handle->useCase, SND_USE_CASE_MOD_CAPTURE_MUSIC, strlen(SND_USE_CASE_MOD_CAPTURE_MUSIC… in setHardwareParams()
286 ALOGV("HWParams: Use 4 channels in kernel for 5.1(%s) recording ", handle->useCase); in setHardwareParams()
334 if (strcmp(handle->useCase, SND_USE_CASE_VERB_HIFI_REC) && in setHardwareParams()
335 strcmp(handle->useCase, SND_USE_CASE_MOD_CAPTURE_MUSIC) && in setHardwareParams()
360 … if (!strncmp(handle->useCase, SND_USE_CASE_VERB_HIFI_REC, strlen(SND_USE_CASE_VERB_HIFI_REC)) in setSoftwareParams()
361 …|| !strncmp(handle->useCase, SND_USE_CASE_MOD_CAPTURE_MUSIC, strlen(SND_USE_CASE_MOD_CAPTURE_MUSIC… in setSoftwareParams()
362 ALOGV("SWParams: Use 4 channels in kernel for 5.1(%s) recording ", handle->useCase); in setSoftwareParams()
371 if(((!strcmp(handle->useCase,SND_USE_CASE_MOD_PLAY_VOIP)) || in setSoftwareParams()
372 (!strcmp(handle->useCase,SND_USE_CASE_VERB_IP_VOICECALL)))){ in setSoftwareParams()
456 … if (!strncmp(handle->useCase, SND_USE_CASE_VERB_HIFI_REC, strlen(SND_USE_CASE_VERB_HIFI_REC)) in switchDevice()
457 …|| !strncmp(handle->useCase, SND_USE_CASE_MOD_CAPTURE_MUSIC, strlen(SND_USE_CASE_MOD_CAPTURE_MUSIC… in switchDevice()
458 …OGV(" switchDevice , use ssr devices for channels:%d usecase:%s",handle->channels,handle->useCase); in switchDevice()
499 strlcpy(useCaseNode.useCase, use_case, MAX_STR_LEN); in switchDevice()
509 strlcpy(useCaseNode.useCase, mods_list[index], MAX_STR_LEN); in switchDevice()
526 strlcpy(useCaseNode.useCase, use_case, MAX_STR_LEN); in switchDevice()
536 strlcpy(useCaseNode.useCase, mods_list[index], MAX_STR_LEN); in switchDevice()
560 ALOGD("Route use case %s\n", it->useCase); in switchDevice()
562 strlen(SND_USE_CASE_VERB_INACTIVE))) && (!strncmp(use_case, it->useCase, MAX_UC_LEN))) { in switchDevice()
563 snd_use_case_set(handle->ucMgr, "_verb", it->useCase); in switchDevice()
565 snd_use_case_set(handle->ucMgr, "_enamod", it->useCase); in switchDevice()
643 …if((!strcmp(handle->useCase, SND_USE_CASE_VERB_HIFI_LOW_POWER)) || (!strcmp(handle->useCase, SND_U… in s_open()
644 …||(!strcmp(handle->useCase, SND_USE_CASE_VERB_HIFI_TUNNEL)) || (!strcmp(handle->useCase, SND_USE_C… in s_open()
659 if ((!strcmp(handle->useCase, SND_USE_CASE_VERB_HIFI_LOW_POWER)) || in s_open()
660 (!strcmp(handle->useCase, SND_USE_CASE_MOD_PLAY_LPA)) || in s_open()
661 (!strcmp(handle->useCase, SND_USE_CASE_VERB_HIFI_TUNNEL)) || in s_open()
662 (!strcmp(handle->useCase, SND_USE_CASE_MOD_PLAY_TUNNEL))) { in s_open()
666 } else if ((!strcmp(handle->useCase, SND_USE_CASE_VERB_HIFI)) || in s_open()
667 (!strcmp(handle->useCase, SND_USE_CASE_VERB_HIFI2)) || in s_open()
668 (!strcmp(handle->useCase, SND_USE_CASE_VERB_HIFI_LOWLATENCY_MUSIC)) || in s_open()
669 (!strcmp(handle->useCase, SND_USE_CASE_MOD_PLAY_LOWLATENCY_MUSIC)) || in s_open()
670 (!strcmp(handle->useCase, SND_USE_CASE_MOD_PLAY_MUSIC2)) || in s_open()
671 (!strcmp(handle->useCase, SND_USE_CASE_MOD_PLAY_MUSIC))) { in s_open()
684 … if (!strncmp(handle->useCase, SND_USE_CASE_VERB_HIFI_REC, strlen(SND_USE_CASE_VERB_HIFI_REC)) in s_open()
685 …|| !strncmp(handle->useCase, SND_USE_CASE_MOD_CAPTURE_MUSIC, strlen(SND_USE_CASE_MOD_CAPTURE_MUSIC… in s_open()
1098 if ((!strcmp(handle->useCase, SND_USE_CASE_VERB_VOICECALL) || in s_close()
1099 !strcmp(handle->useCase, SND_USE_CASE_MOD_PLAY_VOICE)) && in s_close()
1131 } else if((!strcmp(handle->useCase, SND_USE_CASE_VERB_HIFI_LOW_POWER)) || in s_close()
1132 (!strcmp(handle->useCase, SND_USE_CASE_MOD_PLAY_LPA)) || in s_close()
1133 (!strcmp(handle->useCase, SND_USE_CASE_VERB_HIFI_TUNNEL)) || in s_close()
1134 (!strcmp(handle->useCase, SND_USE_CASE_MOD_PLAY_TUNNEL))){ in s_close()
1172 } else if((!strcmp(handle->useCase, SND_USE_CASE_VERB_HIFI_LOW_POWER)) || in s_standby()
1173 (!strcmp(handle->useCase, SND_USE_CASE_MOD_PLAY_LPA)) || in s_standby()
1174 (!strcmp(handle->useCase, SND_USE_CASE_VERB_HIFI_TUNNEL)) || in s_standby()
1175 (!strcmp(handle->useCase, SND_USE_CASE_MOD_PLAY_TUNNEL))) { in s_standby()
1192 int getUseCaseType(const char *useCase) in getUseCaseType() argument
1194 ALOGD("use case is %s\n", useCase); in getUseCaseType()
1195 if (!strncmp(useCase, SND_USE_CASE_VERB_HIFI, in getUseCaseType()
1196 MAX_LEN(useCase,SND_USE_CASE_VERB_HIFI)) || in getUseCaseType()
1197 !strncmp(useCase, SND_USE_CASE_VERB_HIFI2, in getUseCaseType()
1198 MAX_LEN(useCase, SND_USE_CASE_VERB_HIFI2)) || in getUseCaseType()
1199 !strncmp(useCase, SND_USE_CASE_VERB_HIFI_LOWLATENCY_MUSIC, in getUseCaseType()
1200 MAX_LEN(useCase,SND_USE_CASE_VERB_HIFI_LOWLATENCY_MUSIC)) || in getUseCaseType()
1201 !strncmp(useCase, SND_USE_CASE_VERB_HIFI_LOW_POWER, in getUseCaseType()
1202 MAX_LEN(useCase,SND_USE_CASE_VERB_HIFI_LOW_POWER)) || in getUseCaseType()
1203 !strncmp(useCase, SND_USE_CASE_VERB_HIFI_TUNNEL, in getUseCaseType()
1204 MAX_LEN(useCase,SND_USE_CASE_VERB_HIFI_TUNNEL)) || in getUseCaseType()
1205 !strncmp(useCase, SND_USE_CASE_VERB_HIFI2, in getUseCaseType()
1206 MAX_LEN(useCase,SND_USE_CASE_VERB_HIFI2)) || in getUseCaseType()
1207 !strncmp(useCase, SND_USE_CASE_VERB_DIGITAL_RADIO, in getUseCaseType()
1208 MAX_LEN(useCase,SND_USE_CASE_VERB_DIGITAL_RADIO)) || in getUseCaseType()
1209 !strncmp(useCase, SND_USE_CASE_MOD_PLAY_MUSIC, in getUseCaseType()
1210 MAX_LEN(useCase,SND_USE_CASE_MOD_PLAY_MUSIC)) || in getUseCaseType()
1211 !strncmp(useCase, SND_USE_CASE_MOD_PLAY_MUSIC2, in getUseCaseType()
1212 MAX_LEN(useCase, SND_USE_CASE_MOD_PLAY_MUSIC2)) || in getUseCaseType()
1213 !strncmp(useCase, SND_USE_CASE_MOD_PLAY_LOWLATENCY_MUSIC, in getUseCaseType()
1214 MAX_LEN(useCase,SND_USE_CASE_MOD_PLAY_LOWLATENCY_MUSIC)) || in getUseCaseType()
1215 !strncmp(useCase, SND_USE_CASE_MOD_PLAY_MUSIC2, in getUseCaseType()
1216 MAX_LEN(useCase,SND_USE_CASE_MOD_PLAY_MUSIC2)) || in getUseCaseType()
1217 !strncmp(useCase, SND_USE_CASE_MOD_PLAY_LPA, in getUseCaseType()
1218 MAX_LEN(useCase,SND_USE_CASE_MOD_PLAY_LPA)) || in getUseCaseType()
1219 !strncmp(useCase, SND_USE_CASE_MOD_PLAY_TUNNEL, in getUseCaseType()
1220 MAX_LEN(useCase,SND_USE_CASE_MOD_PLAY_TUNNEL)) || in getUseCaseType()
1221 !strncmp(useCase, SND_USE_CASE_MOD_PLAY_FM, in getUseCaseType()
1222 MAX_LEN(useCase,SND_USE_CASE_MOD_PLAY_FM))) { in getUseCaseType()
1224 } else if (!strncmp(useCase, SND_USE_CASE_VERB_HIFI_REC, in getUseCaseType()
1225 MAX_LEN(useCase,SND_USE_CASE_VERB_HIFI_REC)) || in getUseCaseType()
1226 !strncmp(useCase, SND_USE_CASE_VERB_HIFI_LOWLATENCY_REC, in getUseCaseType()
1227 MAX_LEN(useCase,SND_USE_CASE_VERB_HIFI_LOWLATENCY_REC)) || in getUseCaseType()
1228 !strncmp(useCase, SND_USE_CASE_VERB_FM_REC, in getUseCaseType()
1229 MAX_LEN(useCase,SND_USE_CASE_VERB_FM_REC)) || in getUseCaseType()
1230 !strncmp(useCase, SND_USE_CASE_VERB_FM_A2DP_REC, in getUseCaseType()
1231 MAX_LEN(useCase,SND_USE_CASE_VERB_FM_A2DP_REC)) || in getUseCaseType()
1232 !strncmp(useCase, SND_USE_CASE_MOD_CAPTURE_MUSIC, in getUseCaseType()
1233 MAX_LEN(useCase,SND_USE_CASE_MOD_CAPTURE_MUSIC)) || in getUseCaseType()
1234 !strncmp(useCase, SND_USE_CASE_MOD_CAPTURE_LOWLATENCY_MUSIC, in getUseCaseType()
1235 MAX_LEN(useCase,SND_USE_CASE_MOD_CAPTURE_LOWLATENCY_MUSIC)) || in getUseCaseType()
1236 !strncmp(useCase, SND_USE_CASE_MOD_CAPTURE_FM, in getUseCaseType()
1237 MAX_LEN(useCase,SND_USE_CASE_MOD_CAPTURE_FM)) || in getUseCaseType()
1238 !strncmp(useCase, SND_USE_CASE_MOD_CAPTURE_A2DP_FM, in getUseCaseType()
1239 MAX_LEN(useCase,SND_USE_CASE_MOD_CAPTURE_A2DP_FM))) { in getUseCaseType()
1241 } else if (!strncmp(useCase, SND_USE_CASE_VERB_VOICECALL, in getUseCaseType()
1242 MAX_LEN(useCase,SND_USE_CASE_VERB_VOICECALL)) || in getUseCaseType()
1243 !strncmp(useCase, SND_USE_CASE_VERB_IP_VOICECALL, in getUseCaseType()
1244 MAX_LEN(useCase,SND_USE_CASE_VERB_IP_VOICECALL)) || in getUseCaseType()
1245 !strncmp(useCase, SND_USE_CASE_VERB_DL_REC, in getUseCaseType()
1246 MAX_LEN(useCase,SND_USE_CASE_VERB_DL_REC)) || in getUseCaseType()
1247 !strncmp(useCase, SND_USE_CASE_VERB_UL_DL_REC, in getUseCaseType()
1248 MAX_LEN(useCase,SND_USE_CASE_VERB_UL_DL_REC)) || in getUseCaseType()
1249 !strncmp(useCase, SND_USE_CASE_VERB_INCALL_REC, in getUseCaseType()
1250 MAX_LEN(useCase,SND_USE_CASE_VERB_INCALL_REC)) || in getUseCaseType()
1251 !strncmp(useCase, SND_USE_CASE_MOD_PLAY_VOICE, in getUseCaseType()
1252 MAX_LEN(useCase,SND_USE_CASE_MOD_PLAY_VOICE)) || in getUseCaseType()
1253 !strncmp(useCase, SND_USE_CASE_MOD_PLAY_VOIP, in getUseCaseType()
1254 MAX_LEN(useCase,SND_USE_CASE_MOD_PLAY_VOIP)) || in getUseCaseType()
1255 !strncmp(useCase, SND_USE_CASE_MOD_CAPTURE_VOICE_DL, in getUseCaseType()
1256 MAX_LEN(useCase,SND_USE_CASE_MOD_CAPTURE_VOICE_DL)) || in getUseCaseType()
1257 !strncmp(useCase, SND_USE_CASE_MOD_CAPTURE_VOICE_UL_DL, in getUseCaseType()
1258 MAX_LEN(useCase,SND_USE_CASE_MOD_CAPTURE_VOICE_UL_DL)) || in getUseCaseType()
1259 !strncmp(useCase, SND_USE_CASE_MOD_CAPTURE_VOICE, in getUseCaseType()
1260 MAX_LEN(useCase, SND_USE_CASE_MOD_CAPTURE_VOICE)) || in getUseCaseType()
1261 !strncmp(useCase, SND_USE_CASE_VERB_VOLTE, in getUseCaseType()
1262 MAX_LEN(useCase,SND_USE_CASE_VERB_VOLTE)) || in getUseCaseType()
1263 !strncmp(useCase, SND_USE_CASE_MOD_PLAY_VOLTE, in getUseCaseType()
1264 MAX_LEN(useCase, SND_USE_CASE_MOD_PLAY_VOLTE))) { in getUseCaseType()
1267 ALOGE("unknown use case %s\n", useCase); in getUseCaseType()
1276 char *useCase; in disableDevice() local
1279 snd_use_case_get(handle->ucMgr, "_verb", (const char **)&useCase); in disableDevice()
1280 if (useCase != NULL) { in disableDevice()
1281 if (!strncmp(useCase, handle->useCase, MAX_UC_LEN)) { in disableDevice()
1284 snd_use_case_set(handle->ucMgr, "_dismod", handle->useCase); in disableDevice()
1286 free(useCase); in disableDevice()
1287 snd_use_case_get(handle->ucMgr, "_verb", (const char **)&useCase); in disableDevice()
1288 if (strncmp(useCase, SND_USE_CASE_VERB_INACTIVE, in disableDevice()
1290 usecase_type |= getUseCaseType(useCase); in disableDevice()
1307 free(useCase); in disableDevice()