Audio/audioflinger/AudioPolicyService.cpp
// returns the audio_source_t enum corresponding to the input source name or
// AUDIO_SOURCE_CNT is no match found
returns the audio_source_t enum corresponding to the input source name or
AUDIO_SOURCE_CNT is no match found
returns the audio_source_t enum corresponding to the input source name or AUDIO_SOURCE_CNT is no match found
audio_source_t AudioPolicyService::inputSourceNameToEnum(const char *name)
{
    int i;
    for (i = AUDIO_SOURCE_MIC; i < AUDIO_SOURCE_CNT; i++) {
        if (strcmp(name, kInputSourceNames[i - AUDIO_SOURCE_MIC]) == 0) {
            ALOGV("inputSourceNameToEnum found source %s %d", name, i);
            break;
        }
    }
    return (audio_source_t)i;
}
audio_source_t AudioPolicyService :: inputSourceNameToEnum ( const char * name ) { int i ; for ( i = AUDIO_SOURCE_MIC ; i < AUDIO_SOURCE_CNT ; i ++ ) { if ( strcmp ( name , kInputSourceNames [ i - AUDIO_SOURCE_MIC ] ) == 0 ) { ALOGV ( " " , name , i ) ; break ; } } return ( audio_source_t ) i ; }
returns the audio_source_t enum corresponding to the input source name or
AUDIO_SOURCE_CNT is no match found
returns the audio_source_t enum corresponding to the input source name or AUDIO_SOURCE_CNT is no match found