PINE64
beep - playing PCM samples on PinePhone? - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: General Discussion on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=127)
+--- Thread: beep - playing PCM samples on PinePhone? (/showthread.php?tid=20105)



beep - playing PCM samples on PinePhone? - WhiteHexagon - 12-04-2025

Can someone help me with an overview of the steps I'd need to play a PCM sample from RAM via the PinePhone speaker please?  I want my bare-metal OS to have some beeps Smile

This is what I have so far:

LINEOUT to Speaker goes via component U800, audio amplifier, and link expired in the component list.  but seems to have an interesting connection to NAND. (PA-SHDN)

AC_PR Configuration Register mentioned (p362), but not sure of it's register address or usage, it mentions PRCM but doesnt explain how.  The register address in the diagram looks out of range for A64?  It seems I'll need this for access to : 0x05 LINEOUT Control Register, and maybe to un-mute the MIX channels.  

Looking at the data path diagram (page 280).  It looks like I should be able to send PCM over I2S, but sounds like there is a mode that reads direct from RAM?

As you can hear, I'm a bit lost down the rabbit hole at the moment!