I did as follows and it worked for me.
Store sound card settings.
sudo alsactl --file asound.state store
Edit asound.state file as per my requirement (eg. disabling speaker and enabling headset).
Copy the edited asound.state on the original configuration file.
cp asound.state /var/lib/alsa/asound.state
Reboot the system. And it worked.
I am still confused that when I used amixer commnads to disable speaker and enable headset, and after that I Store the configuration to asound.state file, then why I am getting the original configuration instead I should get the changed configuration with speaker disabled and headset enabled?
asound.state
?