Skip to content
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

How to enable PDM audio capture card? #64

Open
black-device opened this issue Jul 17, 2024 · 3 comments
Open

How to enable PDM audio capture card? #64

black-device opened this issue Jul 17, 2024 · 3 comments

Comments

@black-device
Copy link

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
Copy link
Member

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

@black-device
Copy link
Author

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
Copy link
Member

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants