Skip to content

Commit

Permalink
Updating the qti backend with latest fixes (#805)
Browse files Browse the repository at this point in the history
  • Loading branch information
mohitmundhragithub authored Oct 18, 2023
1 parent 0f02c05 commit 7ec9020
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions mobile_back_qti/cpp/backend_qti/soc_utility.cc
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,11 @@ void Socs::soc_info_init() {
#endif

LOG(INFO) << "Soc ID: " << soc_id;
if (socDetails.find(soc_id) != socDetails.end()) {
if (soc_id != UNSUPPORTED_SOC_ID) {
if (socDetails.find(soc_id) == socDetails.end()) {
soc_id = UNSUPPORTED_SOC_ID;
}

m_soc_info = socDetails.find(soc_id)->second;
if (soc_id == UNSUPPORTED_SOC_ID) {
if (QTIBackendHelper::IsRuntimeAvailable(SNPE_DSP)) {
Expand Down Expand Up @@ -223,7 +227,6 @@ int Socs::soc_num_inits() {
}

bool Socs::isSnapDragon(const char *manufacturer) {
soc_info_init();
#ifdef __ANDROID__
bool is_qcom = false;
if (strncmp("QUALCOMM", manufacturer, 7) == 0) {
Expand Down

0 comments on commit 7ec9020

Please sign in to comment.