Solving choppy and distorted sound while playing back video on Ubuntu 12.04 LTS (Precise Pangolin)

Since installing Ubuntu 12.04 LTS on my Core I5 computer, I’ve noticed that I’ve problem with Video/Audio playback on my computer.

It turns out that it only affects computer with Intel-based sound chip. To confirm that you have Intel based audio chip, you need to run this command:

sudo lshw -c multimedia

If Intel chip is present, then you should see something like this at the bottom of the output:
[bash]
configuration: driver=snd_hda_intel latency=32
resources: irq:16 memory:fe024000-fe027fff

[/bash]

To fix it, you need to add “options snd-had-intel model=generic” at the end of /etc/modprob.d/alsa-base.conf file.

This should fix the problem with choppy/laggy sound while playing video.