Skip to content

Commit

Permalink
Add Exynos850 CPU to list of devices which supply stereo data in mono…
Browse files Browse the repository at this point in the history
… MMap stream
  • Loading branch information
dturner committed Apr 21, 2021
1 parent 1b062e0 commit 2c06e95
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/common/QuirksManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ class SamsungDeviceQuirks : public QuirksManager::DeviceQuirks {
std::string chipname = getPropertyString("ro.hardware.chipname");
isExynos9810 = (chipname == "exynos9810");
isExynos990 = (chipname == "exynos990");
isExynos850 = (chipname == "exynos850");

mBuildChangelist = getPropertyInteger("ro.build.changelist", 0);
}
Expand All @@ -86,9 +87,9 @@ class SamsungDeviceQuirks : public QuirksManager::DeviceQuirks {
return kTopMargin;
}

// See Oboe issue #824 for more information.
// See Oboe issues #824 and #1247 for more information.
bool isMonoMMapActuallyStereo() const override {
return isExynos9810; // TODO We can make this version specific if it gets fixed.
return isExynos9810 || isExynos850; // TODO We can make this version specific if it gets fixed.
}

bool isAAudioMMapPossible(const AudioStreamBuilder &builder) const override {
Expand Down Expand Up @@ -116,6 +117,7 @@ class SamsungDeviceQuirks : public QuirksManager::DeviceQuirks {
bool isExynos = false;
bool isExynos9810 = false;
bool isExynos990 = false;
bool isExynos850 = false;
int mBuildChangelist = 0;
};

Expand Down

0 comments on commit 2c06e95

Please sign in to comment.