Wow, long time since i where in the circuit.
As "psynapse" pointed out here:
https://www.eevblog.com/forum/testgear/sainsmart-dds120-usb-oscilloscope-(buudai-bm102)/msg535995/#msg535995with the internal switch resistance, its going like this by combination of bits.
OK I have looked a bit more at the circuit and the internal resistance of the 4052 is critical. Allowing internal resistances of 380,500 or 400 ohms for the three states, Q2 is programmable to have a gain of 2,3 or 5 (1+(620+380)/1000), (1+ (1500+500)/1000), (1+(3600+400)/1000)
Odd gain figures, except we are driving the ADC differential, the other side being 1, the output of the unity gain buffer. So what the ADC sees is 2-1, 3-1 or 5-1 .... aka 1,2,4 .... It is kind of sweet in a chear cost cutting sort of way.
A quick LTspice confirms
So in summary, J3 is giving divide by two or divide by 10 (and if the divide by 2 is diode clamped, de facto divide by 10 is too)
Whilst J9 gives multiply by one, two or four
Put both together and you have, for the front end gain
x2
x1
x0.5
x0.4
x0.2
x0.1
So to sum this up:
#Channel A:
PC1=1; PC2=0; PC3= 0 -> Gain x0.1 = -20dB
PC1=1; PC2=0; PC3= 1 -> Gain x0.2 = -14dB
PC1=1; PC2=1; PC3= 0 -> Gain x0.4 = -8dB
PC1=0; PC2=0; PC3= 0 -> Gain x0.5 = -6dB
PC1=0; PC2=0; PC3= 1 -> Gain x1 = 0dB
PC1=0; PC2=1; PC3= 0 -> Gain x2 = +6dB
#Channel B:
PE1=1; PC4=0; PC5= 0 -> Gain x0.1 = -20dB
PE1=1; PC4=0; PC5= 1 -> Gain x0.2 = -14dB
PE1=1; PC4=1; PC5= 0 -> Gain x0.4 = -8dB
PE1=0; PC4=0; PC5= 0 -> Gain x0.5 = -6dB
PE1=0; PC4=0; PC5= 1 -> Gain x1 = 0dB
PE1=0; PC4=1; PC5= 0 -> Gain x2 = +6dB