This morning, I wrote a very quick external for PureData which allows it to read from an MCP3008 via pigpio.
This works well until the DAC is enabled, upon which PureData almost immediately crashes with an ALSA error:
restart alsa output
alsa xrun recovery apparently failed
pd: pcm.c:1168: snd_pcm_prepare: Assertion `pcm' failed.
2021-09-05 21:23:19 sigHandler: Unhandled signal 6, terminating
Looking at this post which suggested a possible cause, I added gpioCfgClock(5, 0, 0); before gpioInitialise(). When this is in place, PureData doesn't crash but I can only hear what sounds like a stream of data through the in-built headphone jack.
I am using CS 25, MISO 6, MOSI 16 and SCLK 5.
This is a mostly bog-standard Raspbian install. Also, I should be receiving a USB audio device soon - not sure if that will magically make the problem go away.