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