My bitdepth implementation is a crude, simple one. Lowering analog gain registers from around 400(14bit) and then to 12/10bit values. If there are other values to tweak I don´t know how to do that. This modification was realized from an idea from Levas. Code in crop_rec.c:
if (bitdepth == 0x3)
{
/* 10bit roundtrip only not applied here with following set ups */
adtg_new[13] = (struct adtg_new) {6, 0x8882, 60 + reg_gain};
adtg_new[14] = (struct adtg_new) {6, 0x8884, 60 + reg_gain};
adtg_new[15] = (struct adtg_new) {6, 0x8886, 60 + reg_gain};
adtg_new[16] = (struct adtg_new) {6, 0x8888, 60 + reg_gain};
}
if (bitdepth == 0x4)
{
/* 12bit roundtrip only not applied here with following set ups */
adtg_new[13] = (struct adtg_new) {6, 0x8882, 250 + reg_gain};
adtg_new[14] = (struct adtg_new) {6, 0x8884, 250 + reg_gain};
adtg_new[15] = (struct adtg_new) {6, 0x8886, 250 + reg_gain};
adtg_new[16] = (struct adtg_new) {6, 0x8888, 250 + reg_gain};
}