gs101: add audio uevent to report mic status for pixelstats
ACTION=change DEVPATH=/devices/virtual/amcs/amcs MIC_BREAK_STATUS=1 Bug: 174994440 Test: Manually test passed Signed-off-by: Roger Fang <rogerfang@google.com> Change-Id: I2a478167960ea9b2e8cbe732e030fa38757204d7
This commit is contained in:
parent
df79b08139
commit
d351a65154
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