Thanks Gregory. I looked at that but it produces tones using PWM. The ClassD of the SAMA5D2 is a PCM device, so not an immediately obvious match?
On 26/08/2023 23:17, Gregory Nutt wrote: > >>> But I want to play simple audio tones, from a sine look-up table, >>> and filling a buffer and enqueuing it seems over the top. > > If you just want to plane simple audio tones, maybe something > drivers/audio/tone.c is what you need? That is a character driver > with a custom tone interface. >