Depends on the amp.
RF amps (Like my p500-2) use a knob that is literally a remote bass boost knob. It does not adjust gain.
I would suggest a pac LC-1 as such:
Head unit > sub outs > RCA > PAC LC-1 > RCA > SUB AMP
The pac lc1 is an RCA voltage adjuster that works with ANYTHING that uses RCA's. Your computer, home stereo, TV....you name it.
Forget buying those $25-$40 remote knobs *cough* sundown *cough* and just get one of these.
I bought one. I love it. Never looking back. The best part is that it works for amps that don't have a remote knob of sorts.
BTW I think the pac lc1 works as follows: will never output more than what your head unit is putting out.
So you set your gains as normal or maybe a little high. No matter where the knob is on the pac lc1 it won't change anything. the max setting will be your max gain and like there is no knob. turning it down will limit the voltage to the amp and thus making it quieter. so maybe set the gain with the knob at half. loud songs - turn it down. quiet songs - turn it up. choice is yours.
I got mine for $10 shipped lightly used on
ebay. Very nice little device.
This one is new. $12.30 shipped
Pac LC 1 Car Bass Amplifier Remote Level Control Knob | eBay