Loading media/libaudiohal/impl/DeviceHalHidl.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -288,6 +288,10 @@ status_t DeviceHalHidl::openInputStream( if (status != OK) return status; sinkMetadata.tracks[0].destination.device(std::move(hidlOutputDevice)); } #endif #if MAJOR_VERSION <= 5 // Some flags were specific to framework and must not leak to the HAL. flags = static_cast<audio_input_flags_t>(flags & ~AUDIO_INPUT_FLAG_DIRECT); #endif Return<void> ret = mDevice->openInputStream( handle, Loading services/audioflinger/AudioFlinger.cpp +0 −3 Original line number Diff line number Diff line Loading @@ -2674,9 +2674,6 @@ sp<AudioFlinger::ThreadBase> AudioFlinger::openInput_l(audio_module_handle_t mod return 0; } // Some flags are specific to framework and must not leak to the HAL. flags = static_cast<audio_input_flags_t>(flags & ~AUDIO_INPUT_FRAMEWORK_FLAGS); // Audio Policy can request a specific handle for hardware hotword. // The goal here is not to re-open an already opened input. // It is to use a pre-assigned I/O handle. Loading services/audiopolicy/config/msd_audio_policy_configuration.xml +1 −1 Original line number Diff line number Diff line Loading @@ -40,7 +40,7 @@ channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_5POINT1,AUDIO_CHANNEL_OUT_7POINT1"/> </mixPort> <!-- The HW AV Sync flag is not required, but is recommended --> <mixPort name="ms12 output" role="sink" flags="AUDIO_INPUT_FLAG_HW_AV_SYNC"> <mixPort name="ms12 output" role="sink" flags="AUDIO_INPUT_FLAG_HW_AV_SYNC|AUDIO_INPUT_FLAG_DIRECT"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" samplingRates="48000" channelMasks="AUDIO_CHANNEL_IN_STEREO"/> <profile name="" format="AUDIO_FORMAT_AC3" Loading Loading
media/libaudiohal/impl/DeviceHalHidl.cpp +4 −0 Original line number Diff line number Diff line Loading @@ -288,6 +288,10 @@ status_t DeviceHalHidl::openInputStream( if (status != OK) return status; sinkMetadata.tracks[0].destination.device(std::move(hidlOutputDevice)); } #endif #if MAJOR_VERSION <= 5 // Some flags were specific to framework and must not leak to the HAL. flags = static_cast<audio_input_flags_t>(flags & ~AUDIO_INPUT_FLAG_DIRECT); #endif Return<void> ret = mDevice->openInputStream( handle, Loading
services/audioflinger/AudioFlinger.cpp +0 −3 Original line number Diff line number Diff line Loading @@ -2674,9 +2674,6 @@ sp<AudioFlinger::ThreadBase> AudioFlinger::openInput_l(audio_module_handle_t mod return 0; } // Some flags are specific to framework and must not leak to the HAL. flags = static_cast<audio_input_flags_t>(flags & ~AUDIO_INPUT_FRAMEWORK_FLAGS); // Audio Policy can request a specific handle for hardware hotword. // The goal here is not to re-open an already opened input. // It is to use a pre-assigned I/O handle. Loading
services/audiopolicy/config/msd_audio_policy_configuration.xml +1 −1 Original line number Diff line number Diff line Loading @@ -40,7 +40,7 @@ channelMasks="AUDIO_CHANNEL_OUT_MONO,AUDIO_CHANNEL_OUT_STEREO,AUDIO_CHANNEL_OUT_5POINT1,AUDIO_CHANNEL_OUT_7POINT1"/> </mixPort> <!-- The HW AV Sync flag is not required, but is recommended --> <mixPort name="ms12 output" role="sink" flags="AUDIO_INPUT_FLAG_HW_AV_SYNC"> <mixPort name="ms12 output" role="sink" flags="AUDIO_INPUT_FLAG_HW_AV_SYNC|AUDIO_INPUT_FLAG_DIRECT"> <profile name="" format="AUDIO_FORMAT_PCM_16_BIT" samplingRates="48000" channelMasks="AUDIO_CHANNEL_IN_STEREO"/> <profile name="" format="AUDIO_FORMAT_AC3" Loading