Digitally-controlled analog