@ -3647,7 +3647,7 @@ AudioPolicyManager::AudioPolicyManager(AudioPolicyClientInterface *clientInterfa
sp < DeviceDescriptor > devDesc = mAvailableInputDevices [ index ] ;
sp < DeviceDescriptor > devDesc = mAvailableInputDevices [ index ] ;
if ( ! devDesc - > isAttached ( ) ) {
if ( ! devDesc - > isAttached ( ) ) {
devDesc - > attach ( mHwModules [ i ] ) ;
devDesc - > attach ( mHwModules [ i ] ) ;
devDesc - > importAudioPort ( inProfile );
devDesc - > importAudioPort ( inProfile , true );
}
}
}
}
}
}
@ -4010,8 +4010,8 @@ status_t AudioPolicyManager::checkOutputsForDevice(const sp<DeviceDescriptor>& d
continue ;
continue ;
}
}
ALOGV ( " opening output for device %08x with params %s profile %p " ,
ALOGV ( " opening output for device %08x with params %s profile %p name %s " ,
device , address . string ( ) , profile . get ( ) ) ;
device , address . string ( ) , profile . get ( ) , profile - > getName ( ) . string ( ) ) ;
desc = new SwAudioOutputDescriptor ( profile , mpClientInterface ) ;
desc = new SwAudioOutputDescriptor ( profile , mpClientInterface ) ;
desc - > mDevice = device ;
desc - > mDevice = device ;
audio_config_t config = AUDIO_CONFIG_INITIALIZER ;
audio_config_t config = AUDIO_CONFIG_INITIALIZER ;
@ -4260,6 +4260,10 @@ status_t AudioPolicyManager::checkInputsForDevice(const sp<DeviceDescriptor>& de
config . channel_mask = desc - > mChannelMask ;
config . channel_mask = desc - > mChannelMask ;
config . format = desc - > mFormat ;
config . format = desc - > mFormat ;
audio_io_handle_t input = AUDIO_IO_HANDLE_NONE ;
audio_io_handle_t input = AUDIO_IO_HANDLE_NONE ;
ALOGV ( " opening inputput for device %08x with params %s profile %p name %s " ,
desc - > mDevice , address . string ( ) , profile . get ( ) , profile - > getName ( ) . string ( ) ) ;
status_t status = mpClientInterface - > openInput ( profile - > getModuleHandle ( ) ,
status_t status = mpClientInterface - > openInput ( profile - > getModuleHandle ( ) ,
& input ,
& input ,
& config ,
& config ,