Kevin, try creating upper-half driver (i.e. pwmaudio providing OSS
like /dev/dsp with ioctl interface to set sample format and sampling
frequency) that would be common for all platforms and lower-half
implementation that would leverage platform specific hardware features
that you need. When success
Thank you for responding!
That is a great suggestion and i will be looking into it.
However, I have a concern about receiving a PWM interface. For PWM audio to
work, the PWM interface must give a hardware address to its compare
register.
I haven't seen that the PWM interface is providing one.
This
Hi!
Tiago, since you are the audio guy, what do you think? Is it possible to
> create the "fake" audio codec that works with PWM and DMA the way I'm
> suggesting?
Yes, the audio subsystem is created in layers. It wouldn't be a codec by
itself (like PCM), but still can be understood as an *audio
Hi Kevin,
I think it is possible to create a generic audio using PWM and DMA, but it
will require two halves design (like many drivers in NuttX).
The top half will implement the high end driver to be present like an audio
codec to the application (this way we don't need to modify existing
applica
Well that's unfortunate. It feels that this kind of system will not fit in
this OS without a bit of hacking.
I think I will implement this at board logic. Use DMAC.h device and
directly use it on the PWM register addresses after initializing them the
proper way using the PWM.h device.
Maybe it's po
Many people think about this but no solid implementation so far.. have
you consider I2S audio codec?
Tomek
On Sun, Feb 23, 2025 at 12:07 AM Kevin Witteveen wrote:
>
> Thanks, however I'm specifically looking for audio. For example, music,
> samples, etc. A tone is not enough for what I'm looking
Thanks, however I'm specifically looking for audio. For example, music,
samples, etc. A tone is not enough for what I'm looking for.
Or did I miss something and the audio_tone is actually more than just a
tone?
Op za 22 feb 2025 om 22:05 schreef TimH :
> CONFIG_AUDIO_TONE?
>
> Not sure if that’s
CONFIG_AUDIO_TONE?
Not sure if that’s exactly what you’re after but could be?
> On 22 Feb 2025, at 17:12, Kevin Witteveen wrote:
>
> Hi nuttx,
>
> I need an audio device that can generate sound using PWM on the RP2040. It
> appears nothing already exists for this.
> What would be a good way t
Hi nuttx,
I need an audio device that can generate sound using PWM on the RP2040. It
appears nothing already exists for this.
What would be a good way to implement this?
My previous implementation outside NuttX was to use DMA to feed samples
into a PWM register. Relatively simple.
However, in Nut