You guessed right. Setting Ports to Analogue is one of your housekeeping jobs.