Phase and amplitude control of switching from positive to negative dispersion in superconducting quantum circuits