Skip to content

Commit 7384fcd

Browse files
committed
Merge branch 'develop' into feature/RDKEMW-4309_remote_control_plugin_rf4ce_support
2 parents 0ae2e58 + 42ea52e commit 7384fcd

29 files changed

Lines changed: 43 additions & 231 deletions

CMakeLists.txt

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ option(GIT_BRANCH, "Repository Branch" OFF)
5555
option(IP_ENABLED "Enable IP" OFF)
5656
option(LOCAL_MIC "Local Microphone" OFF)
5757
option(LOCAL_MIC_DISABLE_VIA_PRIVACY "Use Privacy to disable microphone" OFF)
58-
option(MAC_POLLING "MAC polling" OFF)
5958
option(MEM_DEBUG "Enable memory debugging" OFF)
6059
option(MEMORY_LOCK "Memory Lock" OFF)
6160
option(MIC_TAP "Enable MIC_TAP" OFF)
@@ -67,7 +66,6 @@ option(THUNDER_SECURITY "Enable THUNDER_SECURITY" OFF)
6766
option(USE_SAFEC "Use safec" OFF)
6867
option(USE_IARM_POWER_MANAGER "Use IARM Power Manager" OFF)
6968
option(VOICE_KEYWORD_BEEP "Enable VOICE_KEYWORD_BEEP" OFF)
70-
option(VOICE_NEXTGEN_MAC "Enable VOICE_NEXTGEN_MAC" OFF)
7169
option(XRSR_HTTP "Enable XRSR_HTTP" OFF)
7270
option(XRSR_SDT "Enable XRSR_SDT" OFF)
7371
option(ENABLE_ASYNC_SRVR_MSG "Enable Asynchronous Server Messaging Feature" OFF)
@@ -218,7 +216,6 @@ if(AUTH_ENABLED)
218216
add_compile_definitions(AUTH_ACTIVATION_STATUS)
219217
endif()
220218
#By default disabled but can be enabled
221-
#add_compile_definitions(AUTH_RECEIVER_ID)
222219
#add_compile_definitions(AUTH_EXPERIENCE)
223220
target_link_libraries(controlMgr ctrlm-hal-certificate)
224221
else()
@@ -287,10 +284,6 @@ if(LOCAL_MIC)
287284
endif()
288285
endif()
289286

290-
if(MAC_POLLING)
291-
add_compile_definitions(MAC_POLLING)
292-
endif()
293-
294287
if(MEM_DEBUG)
295288
add_compile_definitions(MEM_DEBUG)
296289
endif()
@@ -347,10 +340,6 @@ if(VOICE_KEYWORD_BEEP)
347340
install(FILES ${CMAKE_SOURCE_DIR}/../${BEEP_ON_KWD_FILE} DESTINATION share )
348341
endif()
349342
350-
if(VOICE_NEXTGEN_MAC)
351-
add_compile_definitions(VOICE_NEXTGEN_MAC)
352-
endif()
353-
354343
if(USE_DEPRECATED_HDMI_INPUT_PLUGIN)
355344
add_compile_definitions(USE_DEPRECATED_HDMI_INPUT_PLUGIN)
356345
endif()

include/ctrlm_ipc.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@
157157
#define CTRLM_MAIN_MAX_BOUND_CONTROLLERS (9) ///< Maximum number of bound controllers
158158
#define CTRLM_MAIN_MAX_CHIPSET_LENGTH (16) ///< Maximum length of chipset name string (including null termination)
159159
#define CTRLM_MAIN_COMMIT_ID_MAX_LENGTH (48) ///< Maximum length of commit ID string (including null termination)
160-
#define CTRLM_MAIN_RECEIVER_ID_MAX_LENGTH (40) ///< Maximum length of receiver ID string (including null termination)
161160
#define CTRLM_MAIN_DEVICE_ID_MAX_LENGTH (24) ///< Maximum length of device ID string (including null termination)
162161

163162
#define CTRLM_PROPERTY_ACTIVE_PERIOD_BUTTON_VALUE_MIN (5000) ///< Minimum active period (in ms) for button binding.
@@ -499,7 +498,6 @@ typedef struct {
499498
char ctrlm_version[CTRLM_MAIN_VERSION_LENGTH]; ///< OUT - Software version of Control Manager
500499
char ctrlm_commit_id[CTRLM_MAIN_COMMIT_ID_MAX_LENGTH]; ///< OUT - Last commit ID of Control Manager
501500
char stb_device_id[CTRLM_MAIN_DEVICE_ID_MAX_LENGTH]; ///< OUT - Device ID obtained from the Set-Top Box
502-
char stb_receiver_id[CTRLM_MAIN_RECEIVER_ID_MAX_LENGTH]; ///< OUT - Receiver ID obtained from the Set-Top Box
503501
} ctrlm_main_iarm_call_status_t;
504502

505503
/// @brief RF Channel Structure

include/ctrlm_ipc_voice.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ typedef enum {
119119
CTRLM_VOICE_SESSION_ABORT_REASON_FAILURE = 3, ///< Session aborted for any other reason
120120
CTRLM_VOICE_SESSION_ABORT_REASON_VOICE_DISABLED = 4, ///< Session aborted because the voice feature is disabled
121121
CTRLM_VOICE_SESSION_ABORT_REASON_DEVICE_UPDATE = 5, ///< Session aborted due to device update in progress
122-
CTRLM_VOICE_SESSION_ABORT_REASON_NO_RECEIVER_ID = 6, ///< Session aborted because there is no receiver id
122+
CTRLM_VOICE_SESSION_ABORT_REASON_NO_AUTH_DATA = 6, ///< Session aborted due to missing authorization data
123123
CTRLM_VOICE_SESSION_ABORT_REASON_NEW_SESSION = 7, ///< Session aborted because the remote's previous session is still active
124124
CTRLM_VOICE_SESSION_ABORT_REASON_INVALID_CONTROLLER_ID = 8, ///< Session aborted because the controller id isn't valid
125125
CTRLM_VOICE_SESSION_ABORT_REASON_APPLICATION_RESTART = 9, ///< Session aborted due to restarting controlMgr.

src/auth/ctrlm_auth.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ class ctrlm_auth_t {
3131
virtual ~ctrlm_auth_t();
3232

3333
virtual bool is_ready() = 0;
34-
virtual bool get_receiver_id(std::string &receiver_id) = 0;
3534
virtual bool get_device_id(std::string &device_id) = 0;
3635
virtual bool get_account_id(std::string &account_id) = 0;
3736
virtual bool get_partner_id(std::string &partner_id) = 0;

src/auth/ctrlm_auth_thunder.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,6 @@ bool ctrlm_auth_thunder_t::is_ready() {
3333
return(ret);
3434
}
3535

36-
bool ctrlm_auth_thunder_t::get_receiver_id(std::string &receiver_id) {
37-
bool ret = this->plugin->get_receiver_id(receiver_id);
38-
return(ret);
39-
}
40-
4136
bool ctrlm_auth_thunder_t::get_device_id(std::string &device_id) {
4237
bool ret = this->plugin->get_device_id(device_id);
4338
return(ret);

src/auth/ctrlm_auth_thunder.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ class ctrlm_auth_thunder_t : public ctrlm_auth_t {
1010
virtual ~ctrlm_auth_thunder_t();
1111

1212
virtual bool is_ready();
13-
virtual bool get_receiver_id(std::string &receiver_id);
1413
virtual bool get_device_id(std::string &device_id);
1514
virtual bool get_account_id(std::string &account_id);
1615
virtual bool get_partner_id(std::string &partner_id);

src/auth/ctrlm_thunder_plugin_authservice.cpp

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -73,24 +73,6 @@ bool ctrlm_thunder_plugin_authservice_t::is_device_activated() {
7373
return(ret);
7474
}
7575

76-
bool ctrlm_thunder_plugin_authservice_t::get_receiver_id(std::string &receiver_id) {
77-
bool ret = false;
78-
JsonObject params, response;
79-
if(this->call_plugin("getDeviceId", (void *)&params, (void *)&response)) {
80-
if(response["success"].Boolean()) { // If success doesn't exist, it defaults to false which is fine.
81-
receiver_id = response["deviceId"].String();
82-
if(!receiver_id.empty()) {
83-
ret = true;
84-
}
85-
} else {
86-
XLOGD_WARN("Success for getDeviceId was false");
87-
}
88-
} else {
89-
XLOGD_WARN("Call for getDeviceId failed");
90-
}
91-
return(ret);
92-
}
93-
9476
bool ctrlm_thunder_plugin_authservice_t::get_device_id(std::string &device_id) {
9577
bool ret = false;
9678
JsonObject params, response;

src/auth/ctrlm_thunder_plugin_authservice.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,6 @@ class ctrlm_thunder_plugin_authservice_t : public Thunder::Plugin::ctrlm_thunder
5454
*/
5555
bool is_device_activated();
5656

57-
/**
58-
* Function that retrieves the Receiver ID from Authservice.
59-
* @param receiver_id The reference to a string which will contain the Receiver ID.
60-
* @return True on success otherwise False.
61-
*/
62-
bool get_receiver_id(std::string &receiver_id);
63-
6457
/**
6558
* Function that retrieves the Device ID from Authservice.
6659
* @param device_id The reference to a string which will contain the Device ID.

src/ble/ctrlm_ble_network.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2305,6 +2305,17 @@ void ctrlm_obj_network_ble_t::ind_process_voice_session_end(void *data, int size
23052305
XLOGD_ERROR("Controller object doesn't exist for controller id %u!", controller_id);
23062306
return;
23072307
}
2308+
2309+
unsigned long long ieee_address = controllers_[controller_id]->ieee_address_get().get_value();;
2310+
2311+
if (ble_rcu_interface_) {
2312+
int32_t audioDuration = -1;
2313+
if (!ble_rcu_interface_->stopAudioStreaming(ieee_address, audioDuration)) {
2314+
XLOGD_ERROR("failed to end voice session for controller id <%u>", controller_id);
2315+
} else {
2316+
XLOGD_INFO("voice session ended for controller id <%u>", controller_id);
2317+
}
2318+
}
23082319
}
23092320

23102321
// ==================================================================================================================================================================

src/ble/hal/configsettings/configmodelsettings.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ using namespace std;
3737
ConfigModelSettingsData::ConfigModelSettingsData()
3838
: m_valid(false)
3939
, m_disabled(false)
40+
, m_voiceKeyCodePresent(false)
4041
, m_typeZ(false)
4142
, m_hasConnParams(false)
4243
, m_servicesType(ConfigModelSettings::GattServiceType)
@@ -50,6 +51,8 @@ ConfigModelSettingsData::ConfigModelSettingsData(const ConfigModelSettingsData &
5051
, m_pairingNameFormat(other.m_pairingNameFormat)
5152
, m_otaProductName(other.m_otaProductName)
5253
, m_standbyMode(other.m_standbyMode)
54+
, m_voiceKeyCode(other.m_voiceKeyCode)
55+
, m_voiceKeyCodePresent(other.m_voiceKeyCodePresent)
5356
, m_typeZ(other.m_typeZ)
5457
, m_connParamUpdateBeforeOtaVersion(other.m_connParamUpdateBeforeOtaVersion)
5558
, m_upgradePauseVersion(other.m_upgradePauseVersion)
@@ -105,6 +108,7 @@ ConfigModelSettingsData::ConfigModelSettingsData(json_t *json)
105108
, m_pairingNameFormat("")
106109
, m_otaProductName("")
107110
, m_standbyMode("")
111+
, m_voiceKeyCodePresent(false)
108112
, m_typeZ(false)
109113
, m_connParamUpdateBeforeOtaVersion("")
110114
, m_upgradePauseVersion("")

0 commit comments

Comments
 (0)