summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merge tag 'android-10.0.0_r37' into ↵HEADlineage-17.1Kevin F. Haggerty2020-06-011-38/+38
|\ | | | | | | | | | | | | | | | | | | | | staging/lineage-17.1_merge-android-10.0.0_r37 Android 10.0.0 Release 37 (QQ3A.200605.001) * tag 'android-10.0.0_r37': sthal: update list during incall mode in recovery progress. Change-Id: I2c1ee618b0a7235e2e42310f46be1b4867cef74f
| * Snap for 6151764 from fea75f324c290ccbfbaa195b55cbbb4caad0fa12 to ↵android-build-team Robot2020-01-221-38/+38
| |\ | | | | | | | | | | | | | | | qt-qpr3-release Change-Id: I2a12a59419acd9572ec80ab5aba8f6ec44b613fe
| | * sthal: update list during incall mode in recovery progress.rioskao2020-01-201-38/+38
| |/ | | | | | | | | | | | | | | | | | | | | note: With STHAL not ready state, the event from AHAL doesn't update the recovery list during incall mode starting. Refine and check microphone flag when recovery for barge-in case. Bug: 141724113 Test: Manually test the specified scenario. Change-Id: I7debf7878c838003536fcb72c966492401b30b3f
* | Use generated kernel headersChirayu Desai2020-04-211-5/+20
| | | | | | | | Change-Id: I797b0ac4c6cdaae4d4cda0520846723e7467a19b
* | Snap for 6060206 from a827f05a9d111c4c07121de493ab18871a8126eb to ↵android-build-team Robot2019-12-101-22/+62
|\| | | | | | | | | | | qt-qpr2-release Change-Id: I39ed3cb3885e80cdbe7c8d300ab31248f6f3fc57
| * sthal: handle multiple rx stream for bargeinrioskao2019-12-051-22/+62
| | | | | | | | | | | | | | Bug: 144538590 Test: Verify the functionality and related use-cases regression validation by tester team. Change-Id: I0d0a9dd2fced840bb4060615f413e34802b3ed96
* | Snap for 6052638 from 17eede94d7b4865805dda60e298f8e1ec4bc79d6 to ↵android-build-team Robot2019-12-063-128/+113
|\| | | | | | | | | | | qt-qpr2-release Change-Id: I9b31eafe2c2a67641eaf1aa07d8a5e1f7f30f0eb
| * sthal: reset all route before handling crash recoveryrioskao2019-12-053-128/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | note: The active count sometimes unbalance inside libaudioroute when codec crash happened It should clean all count after codec crash to make sure the synchronized state in both sides. Bug: 144538590 Test: Manually test crash recovery and test team done the regression test for specified and related use-case. Change-Id: I63b2ecd02bcf311426b1a37825b83badec5d99eb
* | Snap for 5936642 from e29271563c307e355e0ebe990fc95eb274a6ae38 to ↵android-build-team Robot2019-10-122-2/+3
|\| | | | | | | | | | | qt-qpr2-release Change-Id: I680eb0b75db42bc4fef9a353491a4e5ea026aa5a
| * sthal: Adjust CHRE buffer threshold to 64000Max Shi2019-09-242-2/+3
|/ | | | | | Bug: 138461208 Test: Verified audio watchdog occurrence is reduced. Change-Id: I6d48b75876e66685cf5b0cb3de51dc23ee9f8987
* Merge "sthal: adjust priority for Oslo" into qt-qpr1-devVictor Liu2019-09-202-4/+6
|\
| * sthal: adjust priority for OsloRios Kao2019-09-112-4/+6
| | | | | | | | | | | | Bug: 138848272 Test: manually test Oslo Change-Id: I25e51b2f235386ffa0614dafec7ecc3bd7187b38
* | Merge "sthal: return right state to ST framework in incall mode" into ↵Jasmine Cha2019-09-181-2/+0
|\ \ | | | | | | | | | qt-qpr1-dev
| * | sthal: return right state to ST framework in incall modeJasmine Cha2019-09-091-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - SoundTrigger isn’t able to enable during voice/voip call. All request from soundtrigger framework will be saved into recover list, and all models will be resumed after ending call. - According to this sequence, soundtrigger hal shouldn’t return -EAGAIN when ST framework try to start/stop sound model during voice/voip call. Bug: 140710474 Test: soundtrigger function after killing audioserver and ending voice/voip call. Change-Id: I27ec61d9b27bc9382848267187a85a35f43a4ef5 Signed-off-by: Jasmine Cha <chajasmine@google.com>
* | | Merge "sthal: fix a race condition of recovery with recording" into qt-qpr1-devJasmine Cha2019-09-181-126/+114
|\ \ \ | |_|/ |/| |
| * | sthal: fix a race condition of recovery with recordingJasmine Cha2019-09-091-126/+114
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | - sthal mode is wrong when ahal is recording and sthal is doing recovery are concurrent. Wrong sthal mode will cause incorrect sample rate of amp-ref, and firmware will be crashed again. - sthal needs to know ahal status whatever firmware statis is, so update sthal mode before checking firmware status. - rename some parameter to increase readability. Bug: 140710474 Test: stress test Change-Id: I11643a3c082b2fb42c3931fd9c952c4ef807601c Signed-off-by: Jasmine Cha <chajasmine@google.com>
* | Merge "oslo_config_test: tx power calibration" into qt-r1-devJeffrey Carlyle2019-09-071-1/+76
|\ \ | |/ |/| | | | | | | am: e667dca026 Change-Id: I307647af921e9b93b0956e74cc020f32878c2632
| * Merge "oslo_config_test: tx power calibration" into qt-r1-devJeffrey Carlyle2019-09-061-1/+76
| |\
| | * oslo_config_test: tx power calibrationVictor Liu2019-08-201-1/+76
| | | | | | | | | | | | | | | | | | | | | Add interface to store oslo tx power calibration value to persist Bug:130313504 Change-Id: I8d053c93b5d291dbe992202c7ae7a4ce9c6325f0
* | | sthal: handle audio record case during voice/voip stoppedJasmine Cha2019-08-211-8/+22
|\| | | | | | | | | | | | | | | | | am: 7b07bdeb2a Change-Id: I8ec61abaa20c00e7b67ba0d54aa67ca4e9bdf856
| * | sthal: handle audio record case during voice/voip stoppedJasmine Cha2019-08-211-8/+22
| |/ | | | | | | | | | | | | | | | | | | | | | | | | - If recording is running between stop voice/voip usecase and set mode 0, inactive sequence of recording will not close voice/voip mode completely. - Add one flag to close voice/voip mode indeed Bug: 139670493 Test: issue sequece, Voice/VoIP call on hs/bt Change-Id: I2598947f064c82f07e3d48d71cfef45033c1687a Signed-off-by: Jasmine Cha <chajasmine@google.com>
* | Merge "sthal: using kernel header" into qt-r1-devAndrew Chant2019-08-0521-3167/+20
|\| | | | | | | | | | | am: 47893b63fe Change-Id: I168b499688db3bb7b42b3ba1653c866bee0ad457
| * Merge "sthal: using kernel header" into qt-r1-devAndrew Chant2019-08-0621-3167/+20
| |\
| | * sthal: using kernel headerJuyu Chen2019-08-0521-3167/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 138320651 Test: audio/soundtrigger/sensor/SSR/get_pwr_status works well Change-Id: I7752dd0c447c03d1b09e8bea583631dcc675ad27 Signed-off-by: yixuanjiang <yixuanjiang@google.com> This reverts commit d192ff15d4a67bbeb6ff015ec8a8c8cf9d96265e. Reason for revert: <In order to phase it on FRC, we will fix the build break later> Change-Id: I8f42e94ea004f6a4f8cc2929b34f3afdb096eafc
* | | Merge "sthal: fix race condition of amp-ref route" into qt-r1-devRios Kao2019-08-051-18/+11
|\| | | | | | | | | | | | | | | | | am: cc990608ba Change-Id: Ifc4ca033ef665119499102b0d7982c0aed754b41
| * | Merge "sthal: fix race condition of amp-ref route" into qt-r1-devRios Kao2019-08-051-18/+11
| |\ \ | | |/ | |/|
| | * sthal: fix race condition of amp-ref routeRios Kao2019-08-021-18/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | note: Race condition happend during STREAM_INACTIVE and DEVICE_INACTIVE, Application can start_reg during this period. That will cause 48K amp-ref route doesn't disable before enable 16K mic route. That causes crash. Bug:138081640 Test: manually test microphone concurrency and bargein scenario Change-Id: Iaca6de7b1847b9b40a65ddab6398b19489a84da1
* | | Revert "sthal: using kernel header"Xin Li2019-08-0521-20/+3167
|\| | | | | | | | | | | | | | | | | am: d192ff15d4 Change-Id: Idcc38f3c4e33add9a8298f4f29a4840dabab56ab
| * | Revert "sthal: using kernel header"Xin Li2019-08-0521-20/+3167
| | | | | | | | | | | | | | | | | | This reverts commit 3a4b0eaa376508cd1968fe1f6a886972666a0440. Change-Id: I2c97a43bf21b48304db4f7aec5009e397b96c005
* | | Merge "sthal: using kernel header" into qt-r1-devyixuanjiang2019-08-0521-3169/+22
|\| | | | | | | | | | | | | | | | | am: d9797ae61e Change-Id: I7ee9b60dcc97e6adc911c34095b011270b402a86
| * | Merge "sthal: using kernel header" into qt-r1-devTreeHugger Robot2019-08-0521-3169/+22
| |\ \ | | |/ | |/|
| | * sthal: using kernel headeryixuanjiang2019-07-2921-3169/+22
| | | | | | | | | | | | | | | | | | | | | Bug: 138320651 Test: audio/soundtrigger/sensor/SSR/get_pwr_status works well Change-Id: I7752dd0c447c03d1b09e8bea583631dcc675ad27 Signed-off-by: yixuanjiang <yixuanjiang@google.com>
* | | sthal: buffer ref count incorrect cause routing unbalanceRios Kao2019-07-311-2/+10
|\| | | | | | | | | | | | | | | | | am: 97f1412229 Change-Id: I186628297d2f6c42decd6f4abe0b16719d950326
| * | sthal: buffer ref count incorrect cause routing unbalanceRios Kao2019-07-311-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | note: If the crash happens during handle voice-call case, setup buffer had some trouble. Then the reference count will be unbalance. The abnormal audio_route setup would happen and can't recovery until reboot. Bug: 138557656 Test: manual simulate the same sequence to verify Change-Id: I2c35b7a06869a5355bd742da5d53df2e6075d1cd
* | | Merge "sthal: incorrect order of microphone SRC plugin" into qt-r1-devRios Kao2019-07-291-16/+20
|\| | | | | | | | | | | | | | | | | am: 03ff3215a9 Change-Id: I25f2acc388f935b38a48362a7a3cd188411eaa5b
| * | Merge "sthal: incorrect order of microphone SRC plugin" into qt-r1-devRios Kao2019-07-291-16/+20
| |\ \
| | * | sthal: incorrect order of microphone SRC pluginRios Kao2019-07-261-16/+20
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | note: During the recovery, the sequence of mic-src and EC plugin endpoint is incorrect, need to create the source(mic) before use it (EC). Test: manually test recovery sequence for bargein Bug: 135929701 Change-Id: I6429419e58a30472e70d5680e3853c4b165067a9
* | | sthal: fix chre package unload failed in callJJ Lee2019-07-291-26/+48
|\| | | | | | | | | | | | | | | | | am: f2a7fcbee8 Change-Id: Ie407a4fe69af4fe8f9c04d64b3dd79ed3640aba6
| * | sthal: fix chre package unload failed in callJJ Lee2019-07-261-26/+48
| |/ | | | | | | | | | | | | | | | | | | | | note: Skip destory chre buffer plugin during incall mode to avoid race condition when CHRE is active. Test: verify chre related task. Bug: 136425157 Change-Id: I68237c541a1724c23514a9083690a177679d47c1 Signed-off-by: JJ Lee <leejj@google.com>
* | sthal: match struct size for get statisticsyixuanjiang2019-07-241-0/+5
|\| | | | | | | | | | | am: 4d5652116f Change-Id: I8f35bba3def17cd1734e4dadb541e2b443a92645
| * sthal: match struct size for get statisticsyixuanjiang2019-07-241-0/+5
|/ | | | | | | | | | | | | Bug: 137949152 Test: adb shell get_pwr_stats -c sleepModeTimeStamp, Last time stamp value for Sleep : 12171 sleepModeCumulativeDur, Total cumulative sleep duration : 1857 POWER STATS COUNT succes Change-Id: I42f968cc65c6e73e9bc9d6c221101f002804ca32 Signed-off-by: yixuanjiang <yixuanjiang@google.com>
* Merge "sthal: Log crash and core-dump signature" into qt-r1-devSiyuan Zhou2019-07-185-38/+656
|\
| * sthal: Log crash and core-dump signatureShanmugam Vasudevan2019-07-185-38/+656
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | +Get the Crash reason as part of the crash_dump buffer from kernel and write it to file +Added crash_dump analyzer and concatenate the analyzer's output to the crash reason file. +Fix crash dump analyzer to parse 64-bit timestamp in FW logs. Bug: 135634349 Test: verify crash reason Change-Id: Iaccdb8eb10ed73ae2543c996e0840e2f4a5a2253 Signed-off-by: Shanmugam Vasudevan <Shanmugam.Vasudevan@knowles.com> Signed-off-by: Juyu Chen <juyuchen@google.com>
* | sthal: refine bargein sequenceRios Kao2019-07-171-70/+72
| | | | | | | | | | | | | | | | | | note: In old sequence, strm will process a little bit faster than plugin enabling. That randomly caused the incoming frame is not aligned for AEC algorithm. Test: stress test AEC sequence. Bug: 136098551 Change-Id: I760d28d611aadf0ec81d2cfa697f9cbfc63dd64c
* | sthal: make sure baregin enable only when mic enabledyixuanjiang2019-07-161-1/+2
|/ | | | | | | | | | it could cause abnormal if src package already unload then go baregin enable Bug: 137608819 Test: build pass Change-Id: Ie71765e3b631690439024b239d7d4b9e41540a86 Signed-off-by: yixuanjiang <yixuanjiang@google.com>
* Merge "sthal: add transit thread to change sound module control to async" ↵TreeHugger Robot2019-07-113-104/+158
|\ | | | | | | into qt-r1-dev
| * sthal: add transit thread to change sound module control to asyncyixuanjiang2019-07-103-104/+158
| | | | | | | | | | | | | | | | | | sound module control will block audio hal control during setup barge-in. Bug: 135729709 Change-Id: I0c3ef4c2bc6058a9f9543b859269c30bfd6f3ffe Signed-off-by: yixuanjiang <yixuanjiang@google.com>
* | sthal: handle voice case with bt-sco device usecaserioskao2019-07-101-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | note: In bt-sco case, state machine won't enable concurrency to pause soundtrigger route. During the device inactive sequence, the rule from AHAL that will set stream inactive with voice call first. But STHAL didn't setup voice progress before. Handle this usecase to avoid the state machine enter unexpected state. Test: Verify Voice/VOIP usecase with btsco, usb hs. Bug: 136700036 Change-Id: Ib3ab03a9186bd5d129782ec992ebeeaa7d740bb4
* | Merge changes Id4210e9b,I560e980f into qt-r1-devMax Shi2019-07-093-2/+56
|\ \ | | | | | | | | | | | | | | | * changes: sthal: subscribe to oslo data event sthal: add wakeup event from codec to host1
| * | sthal: subscribe to oslo data eventMax Shi2019-07-012-0/+17
| | | | | | | | | | | | | | | | | | Bug: 136101324 Test: sanity check on oslo and chre Change-Id: Id4210e9b49c72beb3e3f5ffda25a0110c6d66f56