Sound recording problem in acer aspire 5745 laptop

if the output of   cat /proc/asound/card0/codec#* | grep Codec on your machine is this :
Codec: Realtek ALC269
Codec: Intel G45 DEVIBX

(Solution Courtesy @nsisodiya)

following modules are present.
ALC269
======
  basic                Basic preset
  quanta        Quanta FL1
  eeepc-p703        ASUS Eeepc P703 P900A
  eeepc-p901        ASUS Eeepc P901 S101
  fujitsu        FSC Amilo
  lifebook        Fujitsu Lifebook S6420
  auto                auto-config reading BIOS (default)
It do not list acer laptop but auto should word which is default and not working
so
try something like
modprobe -r snd-hda-intel
modprobe snd-hda-intel model=basic

Or model=eeepc-p901 etc