Skip to content

Instantly share code, notes, and snippets.

@tyru
Last active April 25, 2016 08:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tyru/4dc316782dcd65ed5188 to your computer and use it in GitHub Desktop.
Save tyru/4dc316782dcd65ed5188 to your computer and use it in GitHub Desktop.
ALSA settings in my Arch Linux box http://tyru.hatenablog.com/entry/2015/02/22/161333
# Set this to the correct number of cards.
options snd cards_limit=2
options snd-hda-intel id=PCH index=0
options snd-hda-intel id=HDMI index=1
# Use /etc/modprobe.d/alsa-base.conf to select a default(first) sound device.
# It also fixes a sound device number.
#pcm.!default {
# type hw
# card 1
#}
#
#ctl.!default {
# type hw
# card 1
#}
# Make sound device accessible by multiple applications.
pcm.dmixer {
type dmix
ipc_key 1024
ipc_key_add_uid 0
ipc_perm 0660
}
pcm.dsp {
type plug
slave.pcm "dmix"
}
$ LANG=C
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC887-VD Analog [ALC887-VD Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: HDMI [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: HDMI [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: HDMI [HDA Intel HDMI], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
$ cat /proc/asound/cards
0 [PCH ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0xf0610000 irq 27
1 [HDMI ]: HDA-Intel - HDA Intel HDMI
HDA Intel HDMI at 0xf0614000 irq 31
$ head -n1 /proc/asound/card*/codec*
==> /proc/asound/card0/codec#2 <==
Codec: Realtek ALC887-VD
==> /proc/asound/card1/codec#0 <==
Codec: Intel Haswell HDMI
$ lsmod | grep snd
snd_hda_codec_hdmi 49263 1
snd_hda_codec_realtek 63196 1
snd_hda_codec_generic 63087 1 snd_hda_codec_realtek
snd_hda_intel 26387 4
snd_hda_controller 26938 1 snd_hda_intel
snd_hda_codec 112621 5 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller
snd_hwdep 17244 1 snd_hda_codec
snd_pcm 88785 4 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_controller
snd_timer 26614 1 snd_pcm
snd 73436 16 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel
soundcore 13031 2 snd,snd_hda_codec
$ lspci | grep -i audio
00:03.0 Audio device: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller (rev 06)
00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 05)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment