-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aop: 13.5 bring up + mics + als + generalize afk/epic #381
base: main
Are you sure you want to change the base?
Commits on Jan 9, 2024
-
m1n1.fw.aop: Fix 13.5 bootargs ABI break + rename
Move from __init__.py to base.py so it can be imported. Signed-off-by: Eileen Yoon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5f1f07d - Browse repository at this point
Copy the full SHA 5f1f07dView commit details
Commits on Jan 15, 2024
-
m1n1.fw.aop: Add aop client and ep boilerplate
Signed-off-by: Eileen Yoon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8ea4349 - Browse repository at this point
Copy the full SHA 8ea4349View commit details
Commits on Jan 19, 2024
-
m1n1.utils: Strip before splitting on chexundump()
Signed-off-by: Eileen Yoon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b563b5c - Browse repository at this point
Copy the full SHA b563b5cView commit details
Commits on Jan 20, 2024
-
m1n1.adt: Parse aop audio pdm ratios
Signed-off-by: Eileen Yoon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6c89389 - Browse repository at this point
Copy the full SHA 6c89389View commit details -
experiments/dcp: Make dcp*.py scripts run again
Signed-off-by: Eileen Yoon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3e51a0d - Browse repository at this point
Copy the full SHA 3e51a0dView commit details -
m1n1.fw.afk: Add more hello handlers used by aop
Signed-off-by: Eileen Yoon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 27390b8 - Browse repository at this point
Copy the full SHA 27390b8View commit details
Commits on Jan 23, 2024
-
afk.epic: Enum for EPICSubtype & service init v2
Consistently use an enum for EPICSubtype (used later) and support the v2 EPICService intializer protocol used by AOP. Signed-off-by: Eileen Yoon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 406714b - Browse repository at this point
Copy the full SHA 406714bView commit details -
afk.epic: Handle EPIC replies by subtype
DCP only gets two reply types: a u32 retcode or a command reply. It previously checked for retcode by checking length(data) == 4 and assuming command otherwise. AOP can get other reply types (e.g. STRING after probing device). It actually sends us the reply subtype in the EPICSubHeader, so use that information and handle replies accordingly. Signed-off-by: Eileen Yoon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5b8d870 - Browse repository at this point
Copy the full SHA 5b8d870View commit details -
afk.epic: Support sending direct notify messages
Much simpler than the command messages. We just write directly into the TX ringbuffer. Signed-off-by: Eileen Yoon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1ab1d82 - Browse repository at this point
Copy the full SHA 1ab1d82View commit details -
afk.epic: Create API to register report handlers
Because AOP gets a lot of reports ;) Signed-off-by: Eileen Yoon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for cb3071e - Browse repository at this point
Copy the full SHA cb3071eView commit details -
afk.epic: Support sending v2 EPIC subheader
Default to version=4 as to not break DCP Signed-off-by: Eileen Yoon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 153b7ad - Browse repository at this point
Copy the full SHA 153b7adView commit details -
afk.rbep: Bootstrap ringbuf block size at runtime
Make the ringbuffer class robust to various block sizes to generalize to both DCP and AOP. The first three blocks of the ringbuffer is reserved for exchanging size, rptr, wptr: ``` bufsize unk 00000000 00007e80 00070006 00000000 00000000 00000000 00000000 00000000 00000000 00000020 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000040 * rptr 00000080 00000600 00000000 00000000 00000000 00000000 00000000 00000000 00000000 000000a0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 000000c0 * wptr 00000100 00000680 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000120 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000140 * ``` Each block is spread out by some block_size multiple of 0x40 (step). The 0th block holds the size of the ringbuffer contents, the 1st block holds the rptr, and the 2nd block holds the wptr. The actual contents of the ringbuffer starts after the first three blocks, which will be collectively called the "header". However, this block_size isn't constant. DCP seems to consistently use 0x40, but AOP can use both 0x40/0x80. Since we're not given the block_size, so wemust bootstrap it. Recall we are given the total size of the rinbuffer in the mailbox message. Since we're always given the size of the ringbuffer `bufsize` at offset +block_size * 0 (or simply 0), and we can find the header size by subtracting `bufsize` from the total size. Since we also know that the header is always 3 blocks wide, we can divide the header size by 3 to obtain the block_size. Signed-off-by: Eileen Yoon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 93cbb1b - Browse repository at this point
Copy the full SHA 93cbb1bView commit details -
afk.rbep: s/BLOCK_SIZE/BLOCK_STEP/
Otherwise the previous commit is way too confusing. Signed-off-by: Eileen Yoon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4c32f8a - Browse repository at this point
Copy the full SHA 4c32f8aView commit details -
hv/trace_aop: Handle afk/epic API breakage
Signed-off-by: Eileen Yoon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6282d9c - Browse repository at this point
Copy the full SHA 6282d9cView commit details -
hv/trace_dcp: Fix afk/epic API breakage
Signed-off-by: Eileen Yoon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 87e7f88 - Browse repository at this point
Copy the full SHA 87e7f88View commit details
Commits on Jan 30, 2024
-
aop.ipc: Fill in more known audio config fields
Signed-off-by: Eileen Yoon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2907cd3 - Browse repository at this point
Copy the full SHA 2907cd3View commit details -
aop.ipc: Rename & fill in more property keys
Signed-off-by: Eileen Yoon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c149577 - Browse repository at this point
Copy the full SHA c149577View commit details -
aop.ipc: Use print as default logger
Signed-off-by: Eileen Yoon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 235da83 - Browse repository at this point
Copy the full SHA 235da83View commit details -
aop: Stream high-power mic samples to ADMAC
Output audio format still unknown, not sure if it's garbage (see lpai commit) or some weird packed float encoding I'm not figuring out. Signed-off-by: Eileen Yoon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3a5f62b - Browse repository at this point
Copy the full SHA 3a5f62bView commit details -
aop: Support Ambient Light Sensor (ALS) endpoint
``` [syslog] * [ALSCT720.cpp:967]updateDynamicIntegrationParameters allAbove=0, anyBelow=1, threshold hit=0, lev > 02:0x50000000000005 (TYPE=0x5, INDEX=0x5) < 24:0x85000000000000 [als.als] Report REPORT/0xc4 #0 [als.als] Container: unk0 = 0xEC sequence = 4 timestamp = 0x0000000019352268 red = 11 green = 18 blue = 11 clear = 40 lux = 7.277451038360596 unk_zero = 0 status = 3 gain = 256 unk3 = 68 unk4 = 35 unk5 = 17874 integration_time = 378080 < 02:0x50000000000006 [syslog] * [ALSCT720.cpp:454]handleInterrupt: result: 0 (status=0x3) > 02:0x50000000000006 (TYPE=0x5, INDEX=0x6) ``` Signed-off-by: Eileen Yoon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 42f8c3a - Browse repository at this point
Copy the full SHA 42f8c3aView commit details -
afk.epic: Expose ep function to call send_cmd()
Signed-off-by: Eileen Yoon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4b00d25 - Browse repository at this point
Copy the full SHA 4b00d25View commit details -
aop: Add lpai + voicetrigger test (doesn't work)
I'm getting garbage from the low-power audio input (lpai) mic which exists solely for voicetrigger. The garbage specifically is `61 7b` repeated. Obviously no voicetrigger report because there's nothing useful in lpai output. I'm suspecting its an mca/clock issue (maybe even SEP/permissions) because there's nothing suspicious from the aop RX/TX IPC side. ``` [audio.audio] Report REPORT/0xee #0 [audio.audio] unknown report: 0xee 00000000 c5 96 20 01 00 00 00 00 9c f5 10 00 00 00 00 00 |.. .............| 00000010 b8 07 00 00 20 30 6e 69 01 00 00 00 43 02 00 00 |.... 0ni....C...| 00000020 00 00 00 00 c5 96 20 01 00 00 00 00 00 00 00 00 |...... .........| 00000030 a4 07 00 00 9a 07 00 00 61 7b 61 7b 61 7b 61 7b |........a{a{a{a{| 00000040 61 7b 61 7b 61 7b 61 7b 61 7b 61 7b 61 7b 61 7b |a{a{a{a{a{a{a{a{| 00000050 * 000007b0 61 7b 61 7b 61 7b 61 7b |a{a{a{a{ | ``` Signed-off-by: Eileen Yoon <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 472796b - Browse repository at this point
Copy the full SHA 472796bView commit details