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

Commit f18155e0 authored by Yumi Yukimura's avatar Yumi Yukimura
Browse files

audio: aidl: default: primary: Read LatencyMs from prop

Change-Id: I5d6a52c5f761db52f787eac06aabb2c1d94aa2bf
parent 27f13c15
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -63,7 +63,8 @@ int32_t ModulePrimary::getNominalLatencyMs(const AudioPortConfig&) {
    // the virtual Android device implementation to pass CTS. Hardware implementations
    // should have significantly lower latency.
    static constexpr int32_t kLatencyMs = 85;
    return kLatencyMs;
    static constexpr char kLatencyMsProp[] = "persist.vendor.audio.primary.latency_ms";
    return ::android::base::GetIntProperty(kLatencyMsProp, kLatencyMs);
}

}  // namespace aidl::android::hardware::audio::core