In a large pan, bring the milk, cream, onion, and garlic to a boil. Simmer gently for about 5 minutes. Remove the onion and garlic. Add the potatoes and salt. Bring to a boil and simmer very gently for about 15 minutes, stirring gently several times. Stir in the cheese and adjust the seasoning.