Does no one use good, old-fashioned ammonia in their wash?
Soak protein-based stains, such as dairy products, baby food and formula, bodily fluids and mud, for half an hour in cool water mixed with 1 tablespoon of household ammonia and 1/2 teaspoon of liquid laundry detergent designed for hand washables. Rinse the stained cloth in cold water both before soaking and after soaking it in the ammonia mixture. For protein stains consisting of bodily fluids, such as sweat and blood, patting the area with equal parts ammonia and water before washing is an alternative method.You can certainly use more than one teaspoon of ammonia, as long as you're in a well-ventilated area. Ammonia will not bleach your clothes. Just don't, under any circumstances, mix ammonia with bleach.
Since ammonia is a strong base, it breaks up the proteins that cause the sweat stains on clothes and kills the bacteria that cause the funk that you're describing. My gym clothes smell great after I wash them!