Jieli-Tech / fw-AC63_BT_SDK

Firmware for Generic Bluetooth SDK(AC63 series), Support AC631N/AC635N/AC636N/AC637N/AC632N, compatible with AC69 series without audio support.
Apache License 2.0
167 stars 97 forks source link

PLNK (PDM Link) doesn't seem to function at all on BR34 series (AC638) #188

Open ACCount12 opened 1 year ago

ACCount12 commented 1 year ago

SDK release: v2.2.0 Chip: AC6381A Question about: BR34, PDM, PLNK, digital audio Specific description of the problem: functions that launch PLNK don't work when called

Issue: There is a header for PLNK, the "PDM Link" peripheral. However, those functions (i.e. audio_plnk_open) don't work when called.

audio_plnk_open doesn't work when called from audio_enc.c, and it doesn't work when called from my own code. The callback output never gets called and there is no PDM SCLK clock on any of the IC lines. The same thing happens on AC6381A with this BT SDK v2.2.0, and on AD6983D ("audio enabled" BR34, PDM mic support listed in datasheet) with the TWS SDK, which share the BR34 core.

I investigated the media.a library, and it seems like much of the code relevant to PDM was simply missing or stubbed out from the pdm_link.c file when the library was built.

I found an AC638N register documentation file, but it does not describe the JL_PLNK registers. Can you provide either a fixed media.a lib, or a register documentation file that describes BR34 PLNK so that I can build my own PLNK driver?