How much will it cost to replace or repair the air compressor on 2010 Chevrolet Equinox

The compressor is knocking when the engine is cold

Asked by for the 2010 Chevrolet Equinox
Does it knock with all heat/ac controls turned off when started cold?? If so it aint the compressor! Out of warranty?