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