We're testing the DAC+ DSP card using our own C code using the Alsa driver on a Raspberry Pi 5 opening the device as:
plughw:CARD=sndrpihifiberry,DEV=0
We are using our own C code to generate sine waves at different frequencies and we get extremely good results from the HiFi Berry DAC+ ADC Pro card which gives a very flat frequency response.
However, when we test the TOSLink output on the DAC+ DSP card connected to the TOSLink input we get a poor frequency which varies by +/-7dB as shown in the frequency response plot below.
It appears that there may be a default filter that is processing the output from our code before outputting via TOSLink. We also find the analogue output on the card gives the same result.
If this is the case, is there a way to disable this filter please?
Do we need to use DSP Toolkit?
Is it correct to use the plughw: interface or is that imposing a filter please?
I hope you can help as we have been delighted with the performance of the DAC+ ADC Pro card and was hoping to see similar results from the digital card.
Hope you can help,