When both my son and daughter lived in dorms, they'd come home and their clothes would just smell incredibly funky. Not musty, but just weird. Yuck. Regular Tide would not get it out, even after several washes. I did try the vinegar but that didn't quite do it (admittedly, I didn't soak the garments because I had SO many).
What really helped was those stupid Tide or Gain scented beads you can buy now. I guess they are masking the odor, but I don't know. I used them once and, while the clothes were HEAVILY scented, the odor did not come back when I didn't use them.
Also, I made the mistake once of buying Tide with fabric softener built in. I washed one of my work sweaters in it. Oh my god, I could hardly stand myself that day. I reeked. I washed that sweater three more times before that scent would disappear, so I gotta believe something like that would work.