25 Jul
2007
25 Jul
'07
3:15 a.m.
Here are three patches for the CA0106 SPI DAC.
The first patch powers down the DACs (other than the front dac) when they are not in use. The front dac serves as the output for the line-in pass-through / capture feedback, so it's not powered down.
The second patch adds a bunch of symbol names for SPI registers, and converts the existing init sequence from magic numbers to these names. The sequence doesn't change at all.
The third patch cleans up some unnecessary repeated sets to the same registers in the SPI init sequence.
Of course, I have tested all these patches and they work.