Lines Matching refs:devices

721 AudioHardwareALSA::openOutputStream(uint32_t devices,  in openOutputStream()  argument
729 devices, *channels, *sampleRate); in openOutputStream()
738 if (devices & (devices - 1)) { in openOutputStream()
746 if((devices == AudioSystem::DEVICE_OUT_DIRECTOUTPUT) && in openOutputStream()
775 alsa_handle.devices = devices; in openOutputStream()
805 alsa_handle.devices = AudioSystem::DEVICE_OUT_PROXY; in openOutputStream()
828 err = out->set(format, channels, sampleRate, devices); in openOutputStream()
838 (devices == AudioSystem::DEVICE_OUT_AUX_DIGITAL)) { in openOutputStream()
844 alsa_handle.devices = devices; in openOutputStream()
891 mALSADevice->route(&(*it), devices, mode()); in openOutputStream()
904 err = out->set(format, channels, sampleRate, devices); in openOutputStream()
918 alsa_handle.devices = devices; in openOutputStream()
956 if((devices & AudioSystem::DEVICE_OUT_ANLG_DOCK_HEADSET)|| in openOutputStream()
957 (devices & AudioSystem::DEVICE_OUT_DGTL_DOCK_HEADSET)){ in openOutputStream()
959 devices |= AudioSystem::DEVICE_OUT_PROXY; in openOutputStream()
962 mALSADevice->route(&(*it), devices, mode()); in openOutputStream()
981 err = out->set(format, channels, sampleRate, devices); in openOutputStream()
997 AudioHardwareALSA::openOutputSession(uint32_t devices, in openOutputSession() argument
1017 alsa_handle.devices = devices; in openOutputSession()
1049 if((devices & AudioSystem::DEVICE_OUT_ANLG_DOCK_HEADSET)|| in openOutputSession()
1050 (devices & AudioSystem::DEVICE_OUT_DGTL_DOCK_HEADSET)){ in openOutputSession()
1052 devices |= AudioSystem::DEVICE_OUT_PROXY; in openOutputSession()
1053 mALSADevice->route(&(*it), devices, mode()); in openOutputSession()
1054 devices = AudioSystem::DEVICE_OUT_ANLG_DOCK_HEADSET; in openOutputSession()
1061 mALSADevice->route(&(*it), devices, mode()); in openOutputSession()
1092 AudioHardwareALSA::openInputStream(uint32_t devices, in openInputStream() argument
1108 … ALOGD("openInputStream: devices 0x%x channels %d sampleRate %d", devices, *channels, *sampleRate); in openInputStream()
1109 if (devices & (devices - 1)) { in openInputStream()
1114 if((devices == AudioSystem::DEVICE_IN_COMMUNICATION) && in openInputStream()
1143 alsa_handle.devices = devices; in openInputStream()
1200 err = in->set(format, channels, sampleRate, devices); in openInputStream()
1214 alsa_handle.devices = devices; in openInputStream()
1225 if ((devices == AudioSystem::DEVICE_IN_VOICE_CALL) && in openInputStream()
1250 } else if((devices == AudioSystem::DEVICE_IN_FM_RX)) { in openInputStream()
1252 } else if(devices == AudioSystem::DEVICE_IN_FM_RX_A2DP) { in openInputStream()
1265 if ((devices == AudioSystem::DEVICE_IN_VOICE_CALL) && in openInputStream()
1290 } else if(devices == AudioSystem::DEVICE_IN_FM_RX) { in openInputStream()
1292 } else if (devices == AudioSystem::DEVICE_IN_FM_RX_A2DP) { in openInputStream()
1322 if (devices == AudioSystem::DEVICE_IN_VOICE_CALL){ in openInputStream()
1328 route_devices = devices | AudioSystem::DEVICE_IN_PROXY; in openInputStream()
1332 route_devices = devices | mCurDevice; in openInputStream()
1337 if(devices & AudioSystem::DEVICE_IN_ANLG_DOCK_HEADSET || in openInputStream()
1338 devices & AudioSystem::DEVICE_IN_PROXY) { in openInputStream()
1339 devices |= AudioSystem::DEVICE_IN_PROXY; in openInputStream()
1341 mALSADevice->route(&(*it), devices, mode()); in openInputStream()
1345 mALSADevice->route(&(*it), devices, mode()); in openInputStream()
1374 err = in->set(format, channels, sampleRate, devices); in openInputStream()
1451 alsa_handle.devices = device; in handleFm()
1467 alsa_handle.devices = AudioSystem::DEVICE_OUT_PROXY; in handleFm()
1547 alsa_handle.devices = device; in enableVoiceCall()
1563 alsa_handle.devices = device; in enableVoiceCall()