Meaning:
Quiet! Shut up! Silence!
Example:
\"You better put a sock in it! I am tired of hearing all your babbling!\"
\"Oh yeah? You and what army?\"
Origin:
Supposedly, the original record player, known as the Grammophone, has no
volume control. The only way to quiet the sound is to literally put a sock
in the speaker cone.