I know this is an older post, but this might help future guys out....
Go to a local (or online) dive shop ... yes a SCUBA shop.
Buy a bottle of Sink the stink. should would for carpet as well.
Follow the directions.... you just wet the stuff down, let it soak etc.
This stuff is to get the funk out of a wet suit (for those that pee in theirs suit and it does not wash out.
The lil organisms eat away the stuff that causes a sinking smell.
Oh and its pretty inexpensive too!