Sound Recording Problem

Noise is generated every time a sound is recorded.
So The sound is not saved properly.
I use the sound card
Is it because of sound card or because of alsa setting?

I can only guess, but perhaps there is a sample rate mismatch. On a TK1 (which might be the same as TX2) I used this for testing (this does not attempt to change sample rate):

SET AUDIO:
==========
amixer cset name="Stereo ADC MIXL ADC2 Switch" 0
amixer cset name="Stereo ADC MIXR ADC2 Switch" 0
amixer cset name="Int Mic Switch" 0
amixer cset name="ADC Capture Switch" 1
amixer cset name="RECMIXL BST1 Switch" 0
amixer cset name="RECMIXR BST1 Switch" 0
amixer cset name="RECMIXL BST2 Switch" 1
amixer cset name="RECMIXR BST2 Switch" 1
amixer cset name="Stereo ADC L1 Mux" "ADC"
amixer cset name="Stereo ADC R1 Mux" "ADC"
amixer cset name="Stereo ADC MIXL ADC1 Switch" 1
amixer cset name="Stereo ADC MIXR ADC1 Switch" 1
amixer cset name="Stereo ADC MIXL ADC2 Switch" 0
amixer cset name="Stereo ADC MIXR ADC2 Switch" 0
amixer cset name="IN1 Mode Control" "Single ended"
amixer cset name="IN2 Mode Control" "Single ended"
amixer cset name="Mic Jack Switch" 1


EXAMPLE:
arecord -t wav -c 1 -d 4 -v tmp.wav
aplay tmp.wav


DISPLAY AUDIO SETTINGS:
=======================
amixer cget name="Stereo ADC MIXL ADC2 Switch"
amixer cget name="Stereo ADC MIXR ADC2 Switch"
amixer cget name="Int Mic Switch"
amixer cget name="ADC Capture Switch"
amixer cget name="RECMIXL BST1 Switch"
amixer cget name="RECMIXR BST1 Switch"
amixer cget name="RECMIXL BST2 Switch"
amixer cget name="RECMIXR BST2 Switch"
amixer cget name="Stereo ADC L1 Mux"
amixer cget name="Stereo ADC R1 Mux"
amixer cget name="Stereo ADC MIXL AD1 Switch"
amixer cget name="Stereo ADC MIXR ADC1 Switch"
amixer cget name="Stereo ADC MIXL ADC2 Switch"
amixer cget name="Stereo ADC MIXR ADC2 Switch"
amixer cget name="IN1 Mode Control"
amixer cget name="Mic Jack Switch"

Hi HSB,
What is your sound card? Have you got the driver working?

Please show the information of ‘arecord -l’