Skip checking g_voice_key_pressed on voice key events
authorJi-hoon Lee <dalton.lee@samsung.com>
Tue, 10 Sep 2019 10:17:15 +0000 (19:17 +0900)
committerJi-hoon Lee <dalton.lee@samsung.com>
Tue, 10 Sep 2019 10:19:10 +0000 (19:19 +0900)
Change-Id: I6bcaf4d25081a11d9032e593f3326e6dab9787ce

plugins/wakeup-manager/dependency-tv/src/dependency_tv_audio.cpp

index 22aa987..ca55d9d 100644 (file)
@@ -79,15 +79,10 @@ static void _bt_hid_audio_data_receive_cb(bt_hid_voice_data_s *voice_data, void
        static int g_buffer_count = 0;
        if (nullptr == voice_data) return;
 
-       if (g_voice_key_pressed) {
-               set_audio_source_type(VC_AUDIO_ID_BLUETOOTH);
+       set_audio_source_type(VC_AUDIO_ID_BLUETOOTH);
 
-               g_proxy_interface.feed_audio_data(WAKEUP_SPEECH_STREAMING_EVENT_CONTINUE,
-                       voice_data->audio_buf, voice_data->length);
-       } else {
-               LOGE("[Recorder ERROR] voice key seems to be already released");
-               return;
-       }
+       g_proxy_interface.feed_audio_data(WAKEUP_SPEECH_STREAMING_EVENT_CONTINUE,
+               voice_data->audio_buf, voice_data->length);
 
 #ifdef BUF_SAVE_MODE
        /* write pcm buffer */