Loading bluetooth/audio/utils/aidl_session/HidlToAidlMiddleware.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -651,6 +651,12 @@ size_t HidlToAidlMiddleware_2_0::OutWritePcmData( from_session_type_2_0(session_type), buffer, bytes); } size_t HidlToAidlMiddleware_2_0::InReadPcmData( const SessionType_2_0& session_type, void* buffer, size_t bytes) { return BluetoothAudioSessionControl::InReadPcmData( from_session_type_2_0(session_type), buffer, bytes); } bool HidlToAidlMiddleware_2_0::IsAidlAvailable() { return BluetoothAudioSession::IsAidlAvailable(); } Loading bluetooth/audio/utils/aidl_session/HidlToAidlMiddleware_2_0.h +3 −0 Original line number Diff line number Diff line Loading @@ -64,6 +64,9 @@ class HidlToAidlMiddleware_2_0 { static size_t OutWritePcmData(const SessionType_2_0& session_type, const void* buffer, size_t bytes); static size_t InReadPcmData(const SessionType_2_0& session_type, void* buffer, size_t bytes); }; } // namespace audio Loading bluetooth/audio/utils/session/BluetoothAudioSession.cpp +3 −0 Original line number Diff line number Diff line Loading @@ -437,6 +437,9 @@ size_t BluetoothAudioSession::OutWritePcmData(const void* buffer, // The control function reads stream from FMQ size_t BluetoothAudioSession::InReadPcmData(void* buffer, size_t bytes) { if (HidlToAidlMiddleware_2_0::IsAidlAvailable()) return HidlToAidlMiddleware_2_0::InReadPcmData(session_type_, buffer, bytes); if (buffer == nullptr || !bytes) return 0; size_t totalRead = 0; int ms_timeout = kFmqReceiveTimeoutMs; Loading Loading
bluetooth/audio/utils/aidl_session/HidlToAidlMiddleware.cpp +6 −0 Original line number Diff line number Diff line Loading @@ -651,6 +651,12 @@ size_t HidlToAidlMiddleware_2_0::OutWritePcmData( from_session_type_2_0(session_type), buffer, bytes); } size_t HidlToAidlMiddleware_2_0::InReadPcmData( const SessionType_2_0& session_type, void* buffer, size_t bytes) { return BluetoothAudioSessionControl::InReadPcmData( from_session_type_2_0(session_type), buffer, bytes); } bool HidlToAidlMiddleware_2_0::IsAidlAvailable() { return BluetoothAudioSession::IsAidlAvailable(); } Loading
bluetooth/audio/utils/aidl_session/HidlToAidlMiddleware_2_0.h +3 −0 Original line number Diff line number Diff line Loading @@ -64,6 +64,9 @@ class HidlToAidlMiddleware_2_0 { static size_t OutWritePcmData(const SessionType_2_0& session_type, const void* buffer, size_t bytes); static size_t InReadPcmData(const SessionType_2_0& session_type, void* buffer, size_t bytes); }; } // namespace audio Loading
bluetooth/audio/utils/session/BluetoothAudioSession.cpp +3 −0 Original line number Diff line number Diff line Loading @@ -437,6 +437,9 @@ size_t BluetoothAudioSession::OutWritePcmData(const void* buffer, // The control function reads stream from FMQ size_t BluetoothAudioSession::InReadPcmData(void* buffer, size_t bytes) { if (HidlToAidlMiddleware_2_0::IsAidlAvailable()) return HidlToAidlMiddleware_2_0::InReadPcmData(session_type_, buffer, bytes); if (buffer == nullptr || !bytes) return 0; size_t totalRead = 0; int ms_timeout = kFmqReceiveTimeoutMs; Loading