Here is audiodriver for monofying the DAC output of VS1010.
This driver can select left or right or calculate sum of the channels and send it to dac in phase or right channel inverted.
The differential output can be useful when driving single channel amplifier with both left and right DAC channels.
Unfortunately this code isn't the easiest to read, but it has a small memory footprint.
Code: Select all
auomono: [-r][-l][-rd][-ld][-d][-s] -r Select right channel and copy it to left (RIGHT_TO_MONO) -l Select left channel and copy it to right (LEFT_TO_MONO) -rd Select right channel and copy it to left and invert right output (RIGHT_TO_DIFF) -ld Select left channel and copy it to right inverted (LEFT_TO_DIFF) -d Sum left and right and invert right output (SUM_TO_DIFF) -s Sum left and right and copy to output (SUM_TO_MONO)
As always, if you have problems with this program, feel free to ask help.