analog: updated AGC loops to have same interface; can init gain, max_gain defaults to 2e16, reset using set_max_gain.