Don't limit width of DAC data to 16 bits (some platforms may support wider).
Extended dac_putsample() so it can write to multiple DAC channels simultaneously.