Lines Matching refs:useCase
877 int getUseCaseType(const char *useCase) in getUseCaseType() argument
879 ALOGV("getUseCaseType: use case is %s\n", useCase); in getUseCaseType()
880 if (!strncmp(useCase, SND_USE_CASE_VERB_HIFI, in getUseCaseType()
881 MAX_LEN(useCase,SND_USE_CASE_VERB_HIFI)) || in getUseCaseType()
882 !strncmp(useCase, SND_USE_CASE_VERB_HIFI_LOWLATENCY_MUSIC, in getUseCaseType()
883 MAX_LEN(useCase,SND_USE_CASE_VERB_HIFI_LOWLATENCY_MUSIC)) || in getUseCaseType()
884 !strncmp(useCase, SND_USE_CASE_VERB_HIFI_LOW_POWER, in getUseCaseType()
885 MAX_LEN(useCase,SND_USE_CASE_VERB_HIFI_LOW_POWER)) || in getUseCaseType()
886 !strncmp(useCase, SND_USE_CASE_VERB_HIFI_TUNNEL, in getUseCaseType()
887 MAX_LEN(useCase,SND_USE_CASE_VERB_HIFI_TUNNEL)) || in getUseCaseType()
888 !strncmp(useCase, SND_USE_CASE_VERB_HIFI2, in getUseCaseType()
889 MAX_LEN(useCase,SND_USE_CASE_VERB_HIFI2)) || in getUseCaseType()
890 !strncmp(useCase, SND_USE_CASE_VERB_DIGITAL_RADIO, in getUseCaseType()
891 MAX_LEN(useCase,SND_USE_CASE_VERB_DIGITAL_RADIO)) || in getUseCaseType()
892 !strncmp(useCase, SND_USE_CASE_MOD_PLAY_MUSIC, in getUseCaseType()
893 MAX_LEN(useCase,SND_USE_CASE_MOD_PLAY_MUSIC)) || in getUseCaseType()
894 !strncmp(useCase, SND_USE_CASE_MOD_PLAY_LOWLATENCY_MUSIC, in getUseCaseType()
895 MAX_LEN(useCase,SND_USE_CASE_MOD_PLAY_LOWLATENCY_MUSIC)) || in getUseCaseType()
896 !strncmp(useCase, SND_USE_CASE_MOD_PLAY_MUSIC2, in getUseCaseType()
897 MAX_LEN(useCase,SND_USE_CASE_MOD_PLAY_MUSIC2)) || in getUseCaseType()
898 !strncmp(useCase, SND_USE_CASE_MOD_PLAY_LPA, in getUseCaseType()
899 MAX_LEN(useCase,SND_USE_CASE_MOD_PLAY_LPA)) || in getUseCaseType()
900 !strncmp(useCase, SND_USE_CASE_MOD_PLAY_TUNNEL, in getUseCaseType()
901 MAX_LEN(useCase,SND_USE_CASE_MOD_PLAY_TUNNEL)) || in getUseCaseType()
902 !strncmp(useCase, SND_USE_CASE_MOD_PLAY_FM, in getUseCaseType()
903 MAX_LEN(useCase,SND_USE_CASE_MOD_PLAY_FM))) { in getUseCaseType()
905 } else if (!strncmp(useCase, SND_USE_CASE_VERB_HIFI_REC, in getUseCaseType()
906 MAX_LEN(useCase,SND_USE_CASE_VERB_HIFI_REC)) || in getUseCaseType()
907 !strncmp(useCase, SND_USE_CASE_VERB_FM_REC, in getUseCaseType()
908 MAX_LEN(useCase,SND_USE_CASE_VERB_FM_REC)) || in getUseCaseType()
909 !strncmp(useCase, SND_USE_CASE_VERB_FM_A2DP_REC, in getUseCaseType()
910 MAX_LEN(useCase,SND_USE_CASE_VERB_FM_A2DP_REC)) || in getUseCaseType()
911 !strncmp(useCase, SND_USE_CASE_MOD_CAPTURE_MUSIC, in getUseCaseType()
912 MAX_LEN(useCase,SND_USE_CASE_MOD_CAPTURE_MUSIC)) || in getUseCaseType()
913 !strncmp(useCase, SND_USE_CASE_VERB_HIFI_LOWLATENCY_REC, in getUseCaseType()
914 MAX_LEN(useCase,SND_USE_CASE_VERB_HIFI_LOWLATENCY_REC)) || in getUseCaseType()
915 !strncmp(useCase, SND_USE_CASE_MOD_CAPTURE_LOWLATENCY_MUSIC, in getUseCaseType()
916 MAX_LEN(useCase,SND_USE_CASE_MOD_CAPTURE_LOWLATENCY_MUSIC)) || in getUseCaseType()
917 !strncmp(useCase, SND_USE_CASE_MOD_CAPTURE_FM, in getUseCaseType()
918 MAX_LEN(useCase,SND_USE_CASE_MOD_CAPTURE_FM)) || in getUseCaseType()
919 !strncmp(useCase, SND_USE_CASE_MOD_CAPTURE_A2DP_FM, in getUseCaseType()
920 MAX_LEN(useCase,SND_USE_CASE_MOD_CAPTURE_A2DP_FM))) { in getUseCaseType()
922 } else if (!strncmp(useCase, SND_USE_CASE_VERB_VOICECALL, in getUseCaseType()
923 MAX_LEN(useCase,SND_USE_CASE_VERB_VOICECALL)) || in getUseCaseType()
924 !strncmp(useCase, SND_USE_CASE_VERB_IP_VOICECALL, in getUseCaseType()
925 MAX_LEN(useCase,SND_USE_CASE_VERB_IP_VOICECALL)) || in getUseCaseType()
926 !strncmp(useCase, SND_USE_CASE_VERB_DL_REC, in getUseCaseType()
927 MAX_LEN(useCase,SND_USE_CASE_VERB_DL_REC)) || in getUseCaseType()
928 !strncmp(useCase, SND_USE_CASE_VERB_UL_DL_REC, in getUseCaseType()
929 MAX_LEN(useCase,SND_USE_CASE_VERB_UL_DL_REC)) || in getUseCaseType()
930 !strncmp(useCase, SND_USE_CASE_VERB_INCALL_REC, in getUseCaseType()
931 MAX_LEN(useCase,SND_USE_CASE_VERB_INCALL_REC)) || in getUseCaseType()
932 !strncmp(useCase, SND_USE_CASE_MOD_PLAY_VOICE, in getUseCaseType()
933 MAX_LEN(useCase,SND_USE_CASE_MOD_PLAY_VOICE)) || in getUseCaseType()
934 !strncmp(useCase, SND_USE_CASE_MOD_PLAY_VOIP, in getUseCaseType()
935 MAX_LEN(useCase,SND_USE_CASE_MOD_PLAY_VOIP)) || in getUseCaseType()
936 !strncmp(useCase, SND_USE_CASE_MOD_CAPTURE_VOICE_DL, in getUseCaseType()
937 MAX_LEN(useCase,SND_USE_CASE_MOD_CAPTURE_VOICE_DL)) || in getUseCaseType()
938 !strncmp(useCase, SND_USE_CASE_MOD_CAPTURE_VOICE_UL_DL, in getUseCaseType()
939 MAX_LEN(useCase,SND_USE_CASE_MOD_CAPTURE_VOICE_UL_DL)) || in getUseCaseType()
940 !strncmp(useCase, SND_USE_CASE_VERB_VOLTE, in getUseCaseType()
941 MAX_LEN(useCase,SND_USE_CASE_VERB_VOLTE)) || in getUseCaseType()
942 !strncmp(useCase, SND_USE_CASE_MOD_PLAY_VOLTE, in getUseCaseType()
943 MAX_LEN(useCase, SND_USE_CASE_MOD_PLAY_VOLTE))) { in getUseCaseType()
946 ALOGE("unknown use case %s, returning voice capablity", useCase); in getUseCaseType()