Patent ID: 7123671

Claim:
A method for gain control in a digital subscriber line system comprising an analog front end with a plurality of interleaved gain and filter stages, comprising the sequential acts of: selecting and order for said gain stages to be considered; initializing each of said plurality of gain stages to respective minimal gain setting, wherein each gain stage has a plurality of incremental gain settings; and for a first iteration of each gain stage in said selected order; increasing a corresponding gain setting by one increment; determining a peak average of a plurality of data frames received by said analog front end for a present gain setting; and if said peak average is greater than a peak target, reduce said gain setting by one increment and proceed to a next gain stage in said selected gain stage order; otherwise increase said gain setting by one increment and return to said act of determining a current peak average, wherein said selecting an order for said gain stages to be considered further comprises; determining a loop type of said subscriber line system; and selecting a gain stage order corresponding to said loop type.