From a555dec81e2e0733c9b4e16114442d9da9392202 Mon Sep 17 00:00:00 2001 From: Roger Fang Date: Mon, 23 Aug 2021 19:11:59 +0800 Subject: [PATCH] device: gs101: add speaker health stats Add the sysfs that required by the new ATOM of VendorSpeakerStatsReported. Bug: 175736081 Test: Manually test with ATOM Signed-off-by: Roger Fang Change-Id: I61a47ff963d7c9ed75d9c636b171c791f7ae7c38 --- pixelstats/service.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pixelstats/service.cpp b/pixelstats/service.cpp index 4201207b..9c59be5b 100644 --- a/pixelstats/service.cpp +++ b/pixelstats/service.cpp @@ -40,7 +40,12 @@ const struct SysfsCollector::SysfsPaths sysfs_paths = { .ImpedancePath = "/sys/devices/platform/audiometrics/speaker_impedance", .CodecPath = "/sys/devices/platform/audiometrics/codec_state", .EEPROMPath = "/dev/battery_history", - .MitigationPath = "/sys/devices/virtual/pmic/mitigation"}; + .MitigationPath = "/sys/devices/virtual/pmic/mitigation", + .SpeakerTemperaturePath = "/sys/devices/platform/audiometrics/speaker_temp", + .SpeakerExcursionPath = "/sys/devices/platform/audiometrics/speaker_excursion", + .SpeakerHeartBeatPath = "/sys/devices/platform/audiometrics/speaker_heartbeat" +}; + const struct UeventListener::UeventPaths ueventPaths = { .AudioUevent = "/devices/virtual/amcs/amcs", .WirelessChargerPtmcPath = "/sys/class/power_supply/wireless/device/ptmc_id"};