Engine noise sounds like alternator bearings were bad. Changed alternator but noise still there. Noise stops when you remove the oil filler cap. Noise starts again when you tighten oil filler cap.
RepairPal Certified shops can diagnose and repair your 2004 Volvo S40. They provide transparent pricing with a minimum 12-month or 12,000-mile warranty on repairs and services.