Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 75bda5b8 authored by Divya Narayanan Poojary's avatar Divya Narayanan Poojary Committed by Gerrit - the friendly Code Review server
Browse files

hal: Add ACDB support for 8x09 tasha lite

- Wrong ACDB files are picked for tasha lite
- Tasha lite using default acdb files, due to
  not having seperate ACDB files directory on target.
  Tasha & tasha lite should use same ACDB files

Change-Id: I2209307e01abd49b7639b760f91e2f436d21035f
parent 38ef088d
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -1763,6 +1763,15 @@ const char * get_snd_card_name_for_acdb_loader(const char *snd_card_name) {
        ALOGD("using tasha ACDB files for tasha-lite");
        return "sdm660-tasha-snd-card";
    }

    // Both tasha & tasha-lite uses tasha ACDB files
    // simulate sound card name for tasha lite, so that
    // ACDB module loads tasha ACDB files for tasha lite
    if(!strncmp(snd_card_name, "msm8x09-tasha9326-snd-card",
             sizeof("msm8x09-tasha9326-snd-card"))) {
       ALOGD("using tasha ACDB files for tasha-lite");
       return "msm8x09-tasha-snd-card";
   }
   return snd_card_name;
}