iphone 4s mic not working during calling through loud speaker

in my iphone 4s the mic is not working when we speak through loudspeaker.
there is no problem when speak using hf speaker..
and when we record a video in this phone,the audio is not recording with the video. no problem in voice recording, only with video.
what will be the problem?:confused::confused: