fixup! add remote mic connect changed cb 74/322974/1
authoryangzhiwen <zw714.yang@samsung.com>
Mon, 21 Apr 2025 03:03:36 +0000 (11:03 +0800)
committeryangzhiwen <zw714.yang@samsung.com>
Mon, 21 Apr 2025 03:03:42 +0000 (11:03 +0800)
Mobile mic device connection change callback cosmos build error
Add the TIZEN_MOBILE_MICROPHONE macro to the function that calls the MSF callback.

Change-Id: Iff016e66ff9988d7e76948f882ce526163c278be
Signed-off-by: yangzhiwen <zw714.yang@samsung.com>
tizen_src/chromium_impl/media/audio/tizen/audio_device_listener_tizen.cc

index da8b47844d16e7c3c4ebde043e180f85e469b711..110b9556b8a343acd726ffee2014177e3644a15a 100644 (file)
@@ -6,7 +6,10 @@
 
 #include <bluetooth_product.h>
 #include <sound_manager.h>
+
+#if defined(TIZEN_MOBILE_MICROPHONE)
 #include <MSFVoiceInterface.h>
+#endif
 
 #include "base/logging.h"
 #include "base/system/system_monitor.h"
@@ -95,6 +98,7 @@ void AudioDeviceListenerTizen::RemoveBTConnectionChangedCb() {
     bt_hid_unset_smart_rc_connection_cb();
 }
 
+#if defined(TIZEN_MOBILE_MICROPHONE)
 void AudioDeviceListenerTizen::AddRemoteMicStateChangedCb(){
   LOG(INFO) << __func__;
   int ret = RegisterMSFConnectionStatus(&RemoteMicConnectionStateChanged, this);
@@ -111,5 +115,5 @@ void AudioDeviceListenerTizen::RemoveRemoteMicStateChangedCb(){
   if(remote_mic_state_change_cb_set_)
     UnRegisterMSFConnectionStatus();
 }
-
+#endif
 }  // namespace media