It seems that not only me, but also the majority of newly installed Ubuntu Gutsy on mothers with integrated sound on the MCP51 chip (defined on most of them as snd-hda-intel) have problems with sound - the card is simply not defined.
Firstly, there are several sources that I used, but there are two main ones, the first one is
Ubuntu Answers and the second one is
Hda Intel Sound How to .
Secondly, everything described below looks like a huge change to the system as a whole, the kernel or the packages in particular, but believe me, this will only add new functionality, but it won't break even if you try sooo (without fanaticism, please! :).
')
Third, do not forget to turn on the sound in BIOS! I stepped on it and killed a little time, but enough :)
Now in order:
1) Add the necessary for the assembly alsa'y packages in the system:
$ sudo apt-get install build-essential ncurses-dev gettext
$ sudo apt-get install linux-headers-`uname -r`
3) Download the latest versions of the
drivers ,
libraries and
utilities from the alsa site:
$ sudo mkdir -p / usr / src / alsa
$ cd / usr / src / alsa
$ wget ftp.alsa-project.org/pub/driver/alsa-driver-1.0.15rc3.tar.bz2
$ wget ftp.alsa-project.org/pub/lib/alsa-lib-1.0.15rc3.tar.bz2
$ wget ftp.alsa-project.org/pub/utils/alsa-utils-1.0.15rc1.tar.bz2
$ sudo tar xjf alsa-driver * .bz2
$ sudo tar xjf alsa-lib * .tar.bz2
$ sudo tar xjf alsa-utils * .tar.bz2
4) Compile and install the driver (pay attention to the key!), Libraries and utilities:
$ cd ../alsa-driver-1.0.15rc3
$ sudo ./configure --with-cards = hda-intel
$ sudo make
$ sudo make install
$ cd ../alsa-lib-1.0.15rc3
$ sudo ./configure
$ sudo make
$ sudo make install
$ cd ../alsa-utils-1.0.15rc1
$ sudo ./configure
$ sudo make
$ sudo make install
5) Reboot.
6) After a reboot, a card should appear in / proc, look at it:
$ sudo cat / proc / asound / card0 / codec # * | grep codec
Codec: Analog Devices AD1986A
7) Go to this
link , look for the card and see which mode to set. In my case, this is 3stack.
8) Add one line to alsa config:
$ sudo vim /etc/modprobe.d/alsa-base
i
options snd-hda-intel position_fix = 1 model = 3stack
:
wq
9) Again we reboot.
10) Configure alsa:
$ sudo alsaconf
there must be a “card”, for example, in my case it is hda-intel
11) Check the setting:
$ sudo aplay --list-devices
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: AD198x Analog [AD198x Analog]
Subdevices: 1/1
Subdevice # 0: subdevice # 0
card 0: NVidia [HDA NVidia], device 1: AD198x Digital [AD198x Digital]
Subdevices: 1/1
Subdevice # 0: subdevice # 0
12) And finally, how to play:
$ aplay -vv ./alsa-utils-1.0.15rc1/speaker-test/samples/Noise.wav
The method described above was successfully tested on three identical machines, but on different ubuntas: Feisty, Gutsy and Edgy.