Skip to content

Commit cd8b3ee

Browse files
Fixing the issue where other vendor devices fails (#804)
* Fixing the issue where other vendor devices fails Fixing the issue where other vendor devices fails to run because qti backend throws some error. * Fixing formatting
1 parent eefad4c commit cd8b3ee

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

mobile_back_qti/cpp/backend_qti/soc_utility.cc

100755100644
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,11 @@ void Socs::soc_info_init() {
181181
#endif
182182

183183
LOG(INFO) << "Soc ID: " << soc_id;
184-
if (socDetails.find(soc_id) != socDetails.end()) {
184+
if (soc_id != UNSUPPORTED_SOC_ID) {
185+
if (socDetails.find(soc_id) == socDetails.end()) {
186+
soc_id = UNSUPPORTED_SOC_ID;
187+
}
188+
185189
m_soc_info = socDetails.find(soc_id)->second;
186190
if (soc_id == UNSUPPORTED_SOC_ID) {
187191
if (QTIBackendHelper::IsRuntimeAvailable(SNPE_DSP)) {
@@ -223,7 +227,6 @@ int Socs::soc_num_inits() {
223227
}
224228

225229
bool Socs::isSnapDragon(const char *manufacturer) {
226-
soc_info_init();
227230
#ifdef __ANDROID__
228231
bool is_qcom = false;
229232
if (strncmp("QUALCOMM", manufacturer, 7) == 0) {

0 commit comments

Comments
 (0)