I am using a Gateway M6862 laptop and the sound card worked pretty well under Ubuntu 8.04. However, after I installed a Ubuntu 9.10, the front headphone jack stop working. After troubleshooting for a while. The solution is quite simple.
Append the following line at the end of /etc/modprobe.d/alsa-base.conf
options snd-hda-intel model=eapd probe_mask=1 position_fix=1
The reason is quite simple. The latest ALSA driver update introduced new bugs. The consequence is that the drive can not correctly detect your sound card chip. Therefore, we have to tell the driver from modprobe.
aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 3: ATI HDMI [ATI HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0
lspci -v
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)
Subsystem: Gateway 2000 Device 0562
Flags: bus master, fast devsel, latency 0, IRQ 22
Memory at f3300000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: HDA Intel
Kernel modules: snd-hda-intel