During shifting, the line pressure is set to a level suitable for the input speed, input torque and the difference between the required and current gear speed.