Lines Matching refs:useCase

218         it->useCase[0] = 0;  in ~AudioHardwareALSA()
656 if((!strcmp(it->useCase, SND_USE_CASE_VERB_HIFI_LOW_POWER)) || in doRouting()
657 (!strcmp(it->useCase, SND_USE_CASE_MOD_PLAY_LPA))) { in doRouting()
662 } else if((!strcmp(it->useCase, SND_USE_CASE_VERB_VOICECALL)) || in doRouting()
663 (!strcmp(it->useCase, SND_USE_CASE_MOD_PLAY_VOICE))) { in doRouting()
670 }else if((!strcmp(it->useCase, SND_USE_CASE_VERB_DIGITAL_RADIO)) || in doRouting()
671 (!strcmp(it->useCase, SND_USE_CASE_MOD_PLAY_FM))) { in doRouting()
751 if((!strcmp(it->useCase, SND_USE_CASE_VERB_IP_VOICECALL)) || in openOutputStream()
752 (!strcmp(it->useCase, SND_USE_CASE_MOD_PLAY_VOIP))) { in openOutputStream()
791 … strlcpy(alsa_handle.useCase, SND_USE_CASE_VERB_IP_VOICECALL, sizeof(alsa_handle.useCase)); in openOutputStream()
793 strlcpy(alsa_handle.useCase, SND_USE_CASE_MOD_PLAY_VOIP, sizeof(alsa_handle.useCase)); in openOutputStream()
799 …Device->route useCase %s mCurDevice %d mVoipStreamCount %d mode %d", it->useCase,mCurDevice,mVoipS… in openOutputStream()
816 if(!strcmp(it->useCase, SND_USE_CASE_VERB_IP_VOICECALL)) { in openOutputStream()
882 strlcpy(alsa_handle.useCase, SND_USE_CASE_VERB_HIFI2 , sizeof(alsa_handle.useCase)); in openOutputStream()
884 strlcpy(alsa_handle.useCase, SND_USE_CASE_MOD_PLAY_MUSIC2, sizeof(alsa_handle.useCase)); in openOutputStream()
890 ALOGD("it->useCase %s", it->useCase); in openOutputStream()
892 if(!strcmp(it->useCase, SND_USE_CASE_VERB_HIFI2)) { in openOutputStream()
936 strlcpy(alsa_handle.useCase, SND_USE_CASE_VERB_HIFI, sizeof(alsa_handle.useCase)); in openOutputStream()
938 … strlcpy(alsa_handle.useCase, SND_USE_CASE_MOD_PLAY_MUSIC, sizeof(alsa_handle.useCase)); in openOutputStream()
945 …strlcpy(alsa_handle.useCase, SND_USE_CASE_VERB_HIFI_LOWLATENCY_MUSIC, sizeof(alsa_handle.useCase)); in openOutputStream()
947 … strlcpy(alsa_handle.useCase, SND_USE_CASE_MOD_PLAY_LOWLATENCY_MUSIC, sizeof(alsa_handle.useCase)); in openOutputStream()
954 ALOGV("useCase %s", it->useCase); in openOutputStream()
964 if(!strcmp(it->useCase, SND_USE_CASE_VERB_HIFI)) { in openOutputStream()
970 if(!strcmp(it->useCase, SND_USE_CASE_VERB_HIFI_LOWLATENCY_MUSIC)) { in openOutputStream()
1031 … strlcpy(alsa_handle.useCase, SND_USE_CASE_VERB_HIFI_TUNNEL, sizeof(alsa_handle.useCase)); in openOutputSession()
1033 strlcpy(alsa_handle.useCase, SND_USE_CASE_MOD_PLAY_TUNNEL, sizeof(alsa_handle.useCase)); in openOutputSession()
1038 … strlcpy(alsa_handle.useCase, SND_USE_CASE_VERB_HIFI_LOW_POWER, sizeof(alsa_handle.useCase)); in openOutputSession()
1040 strlcpy(alsa_handle.useCase, SND_USE_CASE_MOD_PLAY_LPA, sizeof(alsa_handle.useCase)); in openOutputSession()
1047 ALOGD("useCase %s", it->useCase); in openOutputSession()
1064 if(!strcmp(it->useCase, SND_USE_CASE_VERB_HIFI_TUNNEL)) { in openOutputSession()
1071 if(!strcmp(it->useCase, SND_USE_CASE_VERB_HIFI_LOW_POWER)) { in openOutputSession()
1119 if((!strcmp(it->useCase, SND_USE_CASE_VERB_IP_VOICECALL)) || in openInputStream()
1120 (!strcmp(it->useCase, SND_USE_CASE_MOD_PLAY_VOIP))) { in openInputStream()
1158 … strlcpy(alsa_handle.useCase, SND_USE_CASE_MOD_PLAY_VOIP, sizeof(alsa_handle.useCase)); in openInputStream()
1160 … strlcpy(alsa_handle.useCase, SND_USE_CASE_VERB_IP_VOICECALL, sizeof(alsa_handle.useCase)); in openInputStream()
1183 if(!strcmp(it->useCase, SND_USE_CASE_VERB_IP_VOICECALL)) { in openInputStream()
1233 strlcpy(alsa_handle.useCase, SND_USE_CASE_MOD_CAPTURE_VOICE, in openInputStream()
1234 sizeof(alsa_handle.useCase)); in openInputStream()
1236 strlcpy(alsa_handle.useCase, SND_USE_CASE_MOD_CAPTURE_VOICE_UL_DL, in openInputStream()
1237 sizeof(alsa_handle.useCase)); in openInputStream()
1242 strlcpy(alsa_handle.useCase, SND_USE_CASE_MOD_CAPTURE_VOICE, in openInputStream()
1243 sizeof(alsa_handle.useCase)); in openInputStream()
1245 strlcpy(alsa_handle.useCase, SND_USE_CASE_MOD_CAPTURE_VOICE_DL, in openInputStream()
1246 sizeof(alsa_handle.useCase)); in openInputStream()
1251 … strlcpy(alsa_handle.useCase, SND_USE_CASE_MOD_CAPTURE_FM, sizeof(alsa_handle.useCase)); in openInputStream()
1253 … strlcpy(alsa_handle.useCase, SND_USE_CASE_MOD_CAPTURE_A2DP_FM, sizeof(alsa_handle.useCase)); in openInputStream()
1259 …strlcpy(alsa_handle.useCase, SND_USE_CASE_MOD_CAPTURE_LOWLATENCY_MUSIC, sizeof(alsa_handle.useCase in openInputStream()
1261 … strlcpy(alsa_handle.useCase, SND_USE_CASE_MOD_CAPTURE_MUSIC, sizeof(alsa_handle.useCase)); in openInputStream()
1273 strlcpy(alsa_handle.useCase, SND_USE_CASE_VERB_INCALL_REC, in openInputStream()
1274 sizeof(alsa_handle.useCase)); in openInputStream()
1276 strlcpy(alsa_handle.useCase, SND_USE_CASE_VERB_UL_DL_REC, in openInputStream()
1277 sizeof(alsa_handle.useCase)); in openInputStream()
1282 strlcpy(alsa_handle.useCase, SND_USE_CASE_VERB_INCALL_REC, in openInputStream()
1283 sizeof(alsa_handle.useCase)); in openInputStream()
1285 strlcpy(alsa_handle.useCase, SND_USE_CASE_VERB_DL_REC, in openInputStream()
1286 sizeof(alsa_handle.useCase)); in openInputStream()
1291 strlcpy(alsa_handle.useCase, SND_USE_CASE_VERB_FM_REC, sizeof(alsa_handle.useCase)); in openInputStream()
1293 … strlcpy(alsa_handle.useCase, SND_USE_CASE_VERB_FM_A2DP_REC, sizeof(alsa_handle.useCase)); in openInputStream()
1299 … strlcpy(alsa_handle.useCase, SND_USE_CASE_VERB_HIFI_LOWLATENCY_REC, sizeof(alsa_handle.useCase)); in openInputStream()
1301 … strlcpy(alsa_handle.useCase, SND_USE_CASE_VERB_HIFI_REC, sizeof(alsa_handle.useCase)); in openInputStream()
1348 if(!strcmp(it->useCase, SND_USE_CASE_VERB_HIFI_REC) || in openInputStream()
1349 !strcmp(it->useCase, SND_USE_CASE_VERB_HIFI_LOWLATENCY_REC) || in openInputStream()
1351 !strcmp(it->useCase, SND_USE_CASE_VERB_FM_REC) || in openInputStream()
1352 !strcmp(it->useCase, SND_USE_CASE_VERB_FM_A2DP_REC) || in openInputStream()
1354 !strcmp(it->useCase, SND_USE_CASE_VERB_DL_REC) || in openInputStream()
1355 !strcmp(it->useCase, SND_USE_CASE_VERB_UL_DL_REC) || in openInputStream()
1356 !strcmp(it->useCase, SND_USE_CASE_VERB_INCALL_REC)) { in openInputStream()
1357 snd_use_case_set(mUcMgr, "_verb", it->useCase); in openInputStream()
1359 snd_use_case_set(mUcMgr, "_enamod", it->useCase); in openInputStream()
1364 if (!strncmp(it->useCase, SND_USE_CASE_VERB_HIFI_REC, strlen(SND_USE_CASE_VERB_HIFI_REC)) in openInputStream()
1365 …|| !strncmp(it->useCase, SND_USE_CASE_MOD_CAPTURE_MUSIC, strlen(SND_USE_CASE_MOD_CAPTURE_MUSIC))) { in openInputStream()
1366 ALOGV("OpenInoutStream: Use larger buffer size for 5.1(%s) recording ", it->useCase); in openInputStream()
1441 … strlcpy(alsa_handle.useCase, SND_USE_CASE_VERB_DIGITAL_RADIO, sizeof(alsa_handle.useCase)); in handleFm()
1443 strlcpy(alsa_handle.useCase, SND_USE_CASE_MOD_PLAY_FM, sizeof(alsa_handle.useCase)); in handleFm()
1471 if(!strcmp(it->useCase, SND_USE_CASE_VERB_DIGITAL_RADIO)) { in handleFm()
1488 if((!strcmp(it->useCase, SND_USE_CASE_VERB_DIGITAL_RADIO)) || in handleFm()
1489 (!strcmp(it->useCase, SND_USE_CASE_MOD_PLAY_FM))) { in handleFm()
1510 if((!strcmp(it->useCase, verb)) || in disableVoiceCall()
1511 (!strcmp(it->useCase, modifier))) { in disableVoiceCall()
1537 strlcpy(alsa_handle.useCase, verb, sizeof(alsa_handle.useCase)); in enableVoiceCall()
1539 strlcpy(alsa_handle.useCase, modifier, sizeof(alsa_handle.useCase)); in enableVoiceCall()
1567 if (!strcmp(it->useCase, verb)) { in enableVoiceCall()
1610 if((!strncmp(vt_it->useCase, SND_USE_CASE_VERB_VOICECALL, in routeVoiceCall()
1612 (!strncmp(vt_it->useCase, SND_USE_CASE_MOD_PLAY_VOICE, in routeVoiceCall()
1629 if((!strncmp(vt_it->useCase, SND_USE_CASE_VERB_VOICECALL, in routeVoiceCall()
1631 (!strncmp(vt_it->useCase, SND_USE_CASE_MOD_PLAY_VOICE, in routeVoiceCall()
1671 if((!strncmp(vt_it->useCase, SND_USE_CASE_VERB_VOLTE, in routeVoLTECall()
1673 (!strncmp(vt_it->useCase, SND_USE_CASE_MOD_PLAY_VOLTE, in routeVoLTECall()
1690 if((!strncmp(vt_it->useCase, SND_USE_CASE_VERB_VOLTE, in routeVoLTECall()
1692 (!strncmp(vt_it->useCase, SND_USE_CASE_MOD_PLAY_VOLTE, in routeVoLTECall()