Fix MBHC wired headphone autodetection across all targets for a1125 (ampere)
Retain PM8909 MBHC digital debounce clock (DIG_CLK_CTL_D_MBHC_CLK_EN) and master bias (CDC_A_MASTER_BIAS_CTL = 0x30) across s2 standby gating while keeping the 100 uA button ISRC and button IRQs disabled when unplugged, check CDC_A_MBHC_RESULT_2 on boot/set_jack/switch IRQs with 3/4-pole FSM classification, fix iface=CARD jack queries, event coalescing, and stale unplugged Headphones boot fallback in bananarchy-soundmonitor and sxmo audio scripts, harden host tests against CPU contention, and rebuild all a1125 (ampere) target images.
This commit is contained in:
1 parent
aba38a58f2
commit
9619cc9541
19 files changed
+516
-93
No files matched your search
@@ -351,16 +351,24 @@ def main():
|
||||
knobs, _ = run_case(root, exe, {})
|
||||
try:
|
||||
knobs.send("LID CLOSED")
|
||||
if not knobs.wait_event("cmd fe 0 "):
|
||||
if not knobs.wait_event("frame lit=0"):
|
||||
return not check(False, "runtime-knob daemon did not init the panel")
|
||||
before = len([e for e in knobs.events() if e.startswith("cmd fe 0 ")])
|
||||
if before <= 0:
|
||||
return not check(False, "runtime-knob daemon logged no init stream")
|
||||
knobs.send("SET mux_closed_level 0")
|
||||
if not knobs.wait_event("release"):
|
||||
return not check(False, "SET polarity did not release the panel lines")
|
||||
deadline = time.time() + 5.0
|
||||
after = before
|
||||
while time.time() < deadline:
|
||||
after = len([e for e in knobs.events() if e.startswith("cmd fe 0 ")])
|
||||
if after > before and any(e == "gpio 0" for e in knobs.events()):
|
||||
break
|
||||
time.sleep(0.05)
|
||||
if not check(any(e == "gpio 0" for e in knobs.events()),
|
||||
"SET mux_closed_level was ignored"):
|
||||
return 1
|
||||
after = len([e for e in knobs.events() if e.startswith("cmd fe 0 ")])
|
||||
if after <= before:
|
||||
return not check(False, "SET polarity did not re-init the panel")
|
||||
knobs.send("SET backend none")
|
||||
|
||||
Reference in new issue
Block a user