Commit Graph

2 Commits

Author SHA1 Message Date
rogerfang
86fe958f0c asoc: codec: add speaker impedance get functions
Add one of codec detection APIs.
This will show and get the impedance values of speaker
by floating format.

Bug:144901001
Test: manually test
ACTION_SPEAKER_IMPEDANCE
$ adb shell cat /sys/devices/platform/codec_detect/resistance_left_right
0,0

Change-Id: I6ffa471b07c5e7f435def82f407234d7d006806e
Signed-off-by: rogerfang <rogerfang@google.com>
2020-05-30 02:00:49 +08:00
yixuanjiang
d5ce00bddf asoc: codec: add statistics of codec hardware and dspspeech
Implement codec_state and wdsp_stat count records for hardware

model path: /sys/devices/platform/codec_detect

12-31 09:18:06.306   845   845 D pixelstats-vendor: SpeechDSP uptime 24821 downtime 0 crashcount 0 recovercount 0

Bug: 146539277
Change-Id: Iabd9912b21d2d6b8d126c21d2ffa3aa35a4f1c18
Signed-off-by: yixuanjiang <yixuanjiang@google.com>
2020-05-30 02:00:48 +08:00