Method and apparatus for reducing audible noise in switching regulator