radxa-repo / rbuild

Radxa Image Builder (Maintenance mode)
https://radxa-repo.github.io/rbuild/
GNU General Public License v3.0
53 stars 43 forks source link

How to enable PDM audio capture card? #64

Open black-device opened 1 month ago

black-device commented 1 month ago

Hello, could someone tell me how to use the PDM capture audio card in rk3566?

We are using these pins for this purpose: image

The idea is to be able to use this: Voice Activity Detection(VAD)  Support read voice data from I2S/PDM  Support voice amplitude detection  Support Multi-Mic array data storing  Support a level combined interrupt

we are compiling with rbuild for cm3 and debian kde. I have tried to add dts for pdm with those pins but I can't see the audio card in any way.

RadxaYuntian commented 1 month ago

We have not worked with PDM before, but for I2S here is a sample overlay.

black-device commented 1 month ago

Ok thanks for the example!

I would like to use PDM over the extra cm3 pin bank, since I have i2c busy.. please if anyone knows how to do this, I would like to get it up and running.

Anyway, I will try on that i2c base, trying to adapt to pdm.

I've seen some approaches, but I can't get it to work: https://bbs.elecfans.com/m/jishu_2293712_1_1.html

Thnaks for reply Yuntian.

RadxaYuntian commented 1 month ago

This is I2S, not I2C. A different protocol specifically for audio.

The overlay is also only an example, since it is targetting RK3588 devices.