From 2c06e95dc82b390041d32db52e04ae90f1a27e88 Mon Sep 17 00:00:00 2001 From: Don Turner Date: Wed, 21 Apr 2021 20:48:00 +0100 Subject: [PATCH] Add Exynos850 CPU to list of devices which supply stereo data in mono MMap stream --- src/common/QuirksManager.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/common/QuirksManager.cpp b/src/common/QuirksManager.cpp index 5d35c71b3..d12c3538d 100644 --- a/src/common/QuirksManager.cpp +++ b/src/common/QuirksManager.cpp @@ -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); } @@ -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 { @@ -116,6 +117,7 @@ class SamsungDeviceQuirks : public QuirksManager::DeviceQuirks { bool isExynos = false; bool isExynos9810 = false; bool isExynos990 = false; + bool isExynos850 = false; int mBuildChangelist = 0; };