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 <rogerfang@google.com>
Change-Id: I61a47ff963d7c9ed75d9c636b171c791f7ae7c38
diff --git a/pixelstats/service.cpp b/pixelstats/service.cpp
index 4201207..9c59be5 100644
--- a/pixelstats/service.cpp
+++ b/pixelstats/service.cpp
@@ -40,7 +40,12 @@
.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"};