gs101: add audio uevent to report mic status for pixelstats am: d351a65154
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14444595 Change-Id: I5697e6446eeb1f9d8575ce078e9c0011bf191f3b
This commit is contained in:
commit
90a74f7ec1
1 changed files with 3 additions and 1 deletions
|
@ -40,10 +40,12 @@ const struct SysfsCollector::SysfsPaths sysfs_paths = {
|
|||
.CodecPath = "/sys/devices/platform/audiometrics/codec_state",
|
||||
};
|
||||
|
||||
const char *const kAudioUevent = "/devices/virtual/amcs/amcs";
|
||||
|
||||
int main() {
|
||||
LOG(INFO) << "starting PixelStats";
|
||||
|
||||
UeventListener ueventListener("");
|
||||
UeventListener ueventListener(kAudioUevent);
|
||||
std::thread listenThread(&UeventListener::ListenForever, &ueventListener);
|
||||
listenThread.detach();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue