It took me 1 hour to fix this problem. I hope this will come handy to you. To fix this issue you need to have the superuser/root access to your system. Because the file which needs be changed is a read only if you are not the super user.
Let us see what solves this issue:
If you are a new user follow the commands. If you arean advanced user pardon the details.
On the prompt Password: enter your password
2)your su username:~> vi /etc/modprobe.d/sound
This will open the file using vi. If you are not comfortable with vi use any of the text editors.
press "dd" and this will delete all the lines.
Now press "i" and type following lines.
options snd slots=snd-hda-intel
options snd-hda-intel enable_msi=1 model=hp-m4
alias snd-card-0 snd-hda-intel
Try your sound now. Chances are more that this will work now.