Lines Matching refs:it
216 for(ALSAHandleList::iterator it = mDeviceList.begin(); in ~AudioHardwareALSA() local
217 it != mDeviceList.end(); ++it) { in ~AudioHardwareALSA()
218 it->useCase[0] = 0; in ~AudioHardwareALSA()
219 mDeviceList.erase(it); in ~AudioHardwareALSA()
640 ALSAHandleList::iterator it = mDeviceList.end(); in doRouting() local
641 it--; in doRouting()
642 mALSADevice->route(&(*it), (uint32_t)device, newMode); in doRouting()
651 ALSAHandleList::iterator it = mDeviceList.end(); in doRouting() local
652 it--; in doRouting()
653 mALSADevice->route(&(*it), AudioSystem::DEVICE_OUT_PROXY, in doRouting()
655 for(it = mDeviceList.begin(); it != mDeviceList.end(); ++it) { in doRouting()
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()
681 ALSAHandleList::iterator it = mDeviceList.end(); in doRouting() local
682 it--; in doRouting()
683 mALSADevice->route(&(*it), (uint32_t)device, newMode); in doRouting()
736 ALSAHandleList::iterator it; in openOutputStream() local
749 for(it = mDeviceList.begin(); in openOutputStream()
750 it != mDeviceList.end(); ++it) { in openOutputStream()
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()
753 ALOGD("openOutput: it->rxHandle %d it->handle %d",it->rxHandle,it->handle); in openOutputStream()
797 it = mDeviceList.end(); in openOutputStream()
798 it--; in openOutputStream()
799 … mALSADevice->route useCase %s mCurDevice %d mVoipStreamCount %d mode %d", it->useCase,mCurDevice,… in openOutputStream()
806 mALSADevice->route(&(*it), mCurDevice, AudioSystem::MODE_IN_COMMUNICATION); in openOutputStream()
814 mALSADevice->route(&(*it), mCurDevice, AudioSystem::MODE_IN_COMMUNICATION); in openOutputStream()
816 if(!strcmp(it->useCase, SND_USE_CASE_VERB_IP_VOICECALL)) { in openOutputStream()
821 err = mALSADevice->startVoipCall(&(*it)); in openOutputStream()
827 out = new AudioStreamOutALSA(this, &(*it)); in openOutputStream()
888 ALSAHandleList::iterator it = mDeviceList.end(); in openOutputStream() local
889 it--; in openOutputStream()
890 ALOGD("it->useCase %s", it->useCase); in openOutputStream()
891 mALSADevice->route(&(*it), devices, mode()); in openOutputStream()
892 if(!strcmp(it->useCase, SND_USE_CASE_VERB_HIFI2)) { in openOutputStream()
898 err = mALSADevice->open(&(*it)); in openOutputStream()
903 out = new AudioStreamOutALSA(this, &(*it)); in openOutputStream()
952 ALSAHandleList::iterator it = mDeviceList.end(); in openOutputStream() local
953 it--; in openOutputStream()
954 ALOGV("useCase %s", it->useCase); in openOutputStream()
962 mALSADevice->route(&(*it), devices, mode()); 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()
976 err = mALSADevice->open(&(*it)); in openOutputStream()
980 out = new AudioStreamOutALSA(this, &(*it)); in openOutputStream()
1045 ALSAHandleList::iterator it = mDeviceList.end(); in openOutputSession() local
1046 it--; in openOutputSession()
1047 ALOGD("useCase %s", it->useCase); in openOutputSession()
1053 mALSADevice->route(&(*it), devices, mode()); in openOutputSession()
1061 mALSADevice->route(&(*it), devices, mode()); 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()
1077 err = mALSADevice->open(&(*it)); in openOutputSession()
1078 out = new AudioStreamOutALSA(this, &(*it)); in openOutputSession()
1106 ALSAHandleList::iterator it; in openInputStream() local
1117 for(it = mDeviceList.begin(); in openInputStream()
1118 it != mDeviceList.end(); ++it) { in openInputStream()
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()
1121 ALOGD("openInput: it->rxHandle %p it->handle %p",it->rxHandle,it->handle); in openInputStream()
1164 it = mDeviceList.end(); in openInputStream()
1165 it--; in openInputStream()
1171 … mALSADevice->route(&(*it), AudioSystem::DEVICE_IN_PROXY, AudioSystem::MODE_IN_COMMUNICATION); in openInputStream()
1181 mALSADevice->route(&(*it),mCurDevice, AudioSystem::MODE_IN_COMMUNICATION); in openInputStream()
1183 if(!strcmp(it->useCase, SND_USE_CASE_VERB_IP_VOICECALL)) { in openInputStream()
1189 it->sampleRate = *sampleRate; in openInputStream()
1192 it->channels = AudioSystem::popCount(*channels); in openInputStream()
1193 err = mALSADevice->startVoipCall(&(*it)); in openInputStream()
1199 in = new AudioStreamInALSA(this, &(*it), acoustics); in openInputStream()
1307 ALSAHandleList::iterator it = mDeviceList.end(); in openInputStream() local
1308 it--; in openInputStream()
1311 it->channels = AudioSystem::popCount((*channels) & in openInputStream()
1318 it->channelMask = *channels; in openInputStream()
1320 it->channels, it->channelMask); in openInputStream()
1334 mALSADevice->route(&(*it), route_devices, mode()); in openInputStream()
1341 mALSADevice->route(&(*it), devices, mode()); in openInputStream()
1345 mALSADevice->route(&(*it), devices, mode()); 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()
1362 it->sampleRate = *sampleRate; 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()
1367 it->bufferSize = getInputBufferSize(it->sampleRate,*format,it->channels); in openInputStream()
1369 err = mALSADevice->open(&(*it)); in openInputStream()
1373 in = new AudioStreamInALSA(this, &(*it), acoustics); in openInputStream()
1462 ALSAHandleList::iterator it = mDeviceList.end(); in handleFm() local
1463 it--; in handleFm()
1470 mALSADevice->route(&(*it), (uint32_t)device, newMode); in handleFm()
1471 if(!strcmp(it->useCase, SND_USE_CASE_VERB_DIGITAL_RADIO)) { in handleFm()
1476 mALSADevice->startFm(&(*it)); in handleFm()
1486 for(ALSAHandleList::iterator it = mDeviceList.begin(); in handleFm() local
1487 it != mDeviceList.end(); ++it) { 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()
1490 mALSADevice->close(&(*it)); in handleFm()
1492 mDeviceList.erase(it); in handleFm()
1508 for(ALSAHandleList::iterator it = mDeviceList.begin(); in disableVoiceCall() local
1509 it != mDeviceList.end(); ++it) { in disableVoiceCall()
1510 if((!strcmp(it->useCase, verb)) || in disableVoiceCall()
1511 (!strcmp(it->useCase, modifier))) { in disableVoiceCall()
1513 mALSADevice->close(&(*it)); in disableVoiceCall()
1514 mALSADevice->route(&(*it), (uint32_t)device, mode); in disableVoiceCall()
1515 mDeviceList.erase(it); in disableVoiceCall()
1557 ALSAHandleList::iterator it = mDeviceList.end(); in enableVoiceCall() local
1558 it--; in enableVoiceCall()
1566 mALSADevice->route(&(*it), (uint32_t)device, mode); in enableVoiceCall()
1567 if (!strcmp(it->useCase, verb)) { in enableVoiceCall()
1572 mALSADevice->startVoiceCall(&(*it)); in enableVoiceCall()