Sound on HP Pavilion dv7 laptop with Fedora 11

I really like to work in Fedora 11. It’s much quicker than Vista OS which was preinstalled.
However the common problem of the HP laptop is the detection of the sound card. In my case I had several situations:
1. There’s no sound at all
2. The sound works through the headphones, but not through the headphones
3. The sound works through the speakers, but not through the headphones

The behaviour was rather random after every boot.

Finally I’ve found the solution. I needed to change the default settings in /etc/modprobe.d/modprobe.conf

Now it looks like:
options snd-hda-intel model=hp-dv5 enable_msi=1

Now I can plug and unplug headphones and everything works properly.

I’m happy!