Hi Mannyrajput,
Thank you for visiting the HP Support Forums and Welcome. I have read your thread on your HP Pavilion g6-2297se Notebook and audio not working all the time. Here is a fix from Microsoft.
Speakers not working Windows.
1. Right click speaker icon (right hand corner)
2. Select Playback devices
3. Right click Speakers
4. Enable it and set as Default
5. Click Apply/Ok
Hope this helps.
Thanks.