I am unable to get my microphone properly working. The recorded sound is distorted. I used "arecord" to record sound.

With these sytaxes:

arecord -d 5 -c 2 -f dat test.wav

It should record for 5 seconds, in stereo, 16bit, 48000r

It records but the sound is distorted when I play it. (speakers are working fine)

Anyway to solve this ? Or did I forget something ?