The above is obviously the best course of action if its the carpets that are the problem. In my experience though its usually the sound deadening that causes the real smells due to previous damp problems. You will obviously need to remove this and properly dry it out, or replace it tbh as it falls apart usually.