# # Setup Notes for Alsa snd_intel using # mercurial # source alsa-libs # source alsa-utils # source alsa-driver # source alsa-kernel # REFERENCE: http://forums.gentoo.org/viewtopic-t-568135-start-0-postdays-0-postorder-asc-highlight-.html # REFERENCE: http://gentoo-wiki.com/HOWTO_ALSA_sound_mixer_aka_dmix # REFERENCE: http://forums.gentoo.org/viewtopic-t-567773-highlight-t61.html # # KERNEL OPTIONS: # Device Drivers ---> # Sound ---> # Soundcard Support # Advanced Linux Sound Architecture ---> # < > Advanced Linux Sound Architecture # Open Sound System ---> # < > Open Sound System # # options to boot: # cat /proc/cmdline # root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda2 doscsi # # Set card type in make.conf # if [[ ! `grep ALSA_CARDS /etc/make.conf &>/dev/null` ]]; then cat >> /etc/make.conf <<'EOF' ALSA_CARDS="hda-intel" EOF else sed -i 's/\(ALSA_CARDS="\).*/\1hda-intel"/' /etc/make.conf fi # No asla packages installed eix -I alsa # # # For some reason this was makeing things not work later # rc-update delete alsasound # * 'alsasound' removed from the following runlevels: default rm -rf /etc/init.d/alsasound # # Install alsa stuff here # cd /usr/src # # Download alsa-lib and alsa-utils from http://www.alsa-project.org/ # wget ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.0.14a.tar.bz2 wget ftp://ftp.alsa-project.org/pub/utils/alsa-utils-1.0.14.tar.bz2 alsa-utils-1.0.14.tar.bz2 tar xvf alsa-lib* tar xvf alsa-utils* # # Build driver/module # cd /usr/src emerge --update --newuse --deep mercurial hg clone http://hg-mirror.alsa-project.org/alsa-driver alsa-driver cd alsa-driver hg clone http://hg-mirror.alsa-project.org/alsa-kernel alsa-kernel ./hgcompile && make install cd .. # # Search for the module # find /lib/modules/`uname -r` -name "snd-hda-inte*" # /lib/modules/2.6.21-gentoo-r4/kernel/sound/pci/hda/snd-hda-intel.ko # # Load module # modprobe snd-hda-intel # # Add snd-hda-intel to modules autoload if it doesn't exist # if [[ ! `grep snd-hda-intel /etc/modules.autoload.d/kernel-2.6 &> /dev/null` ]]; then cat >> /etc/modules.autoload.d/kernel-2.6 <<'EOF' # Sound Driver snd-hda-intel EOF fi # # Build libs and utils # cd alsa-lib* ./configure make && make install cd .. cd alsa-utils* ./configure make && make install alsaconf # Continue # hda-intel Intel Corporation 82801H (ICH8 Family) HD Audio Controller # # Configure snd-hda-intel. # Do you want to modify /etc/modules.d/alsa? # # OK, Sound driver is configured rmmod snd_pcm snd_timer rmmod snd snd_page_alloc lsmod |grep snd modprobe snd-hda-intel amixer set PCM 100 unmute # Simple mixer control 'PCM',0 # Capabilities: pvolume # Playback channels: Front Left - Front Right # Limits: Playback 0 - 39 # Mono: # Front Left: Playback 39 [100%] [0.00dB] # Front Right: Playback 39 [100%] [0.00dB] amixer set Speaker 100 unmute # Simple mixer control 'Speaker',0 # Capabilities: pswitch # Playback channels: Front Left - Front Right # Mono: # Front Left: Playback [on] # Front Right: Playback [on] # # Play song # cat /proc/interrupts # CPU0 CPU1 # 0: 239692 110 IO-APIC-edge timer # 1: 4811 5 IO-APIC-edge i8042 # 8: 0 0 IO-APIC-edge rtc # 9: 21146 7299 IO-APIC-fasteoi acpi # 12: 85830 119770 IO-APIC-edge i8042 # 14: 56 6 IO-APIC-edge ide0 # 16: 167612 1 IO-APIC-fasteoi uhci_hcd:usb5, yenta, nvidia # 17: 0 0 IO-APIC-fasteoi uhci_hcd:usb3 # 18: 0 0 IO-APIC-fasteoi uhci_hcd:usb4 # 19: 0 0 IO-APIC-fasteoi ehci_hcd:usb1 # 21: 17 1 IO-APIC-fasteoi ehci_hcd:usb2 # 22: 165145 28039 IO-APIC-fasteoi uhci_hcd:usb6, ohci1394, wifi0, HDA Intel # 23: 0 0 IO-APIC-fasteoi uhci_hcd:usb7 # 216: 32 1035 PCI-MSI-edge eth0 # 217: 8868 15145 PCI-MSI-edge libata # NMI: 0 0 # LOC: 17269 330436 # ERR: 0 # MIS: 0 # # Only the mute button works. Volume up and down only unmute, volume level doesn't change. #