Both forms of cardamom are used to add flavor to both food and drink , as cooking spices and as a medicine . Both forms of cardamom are used as flavorings in both food and drink , as cooking spices and as a medicine .