!!################################ !!ALSA Information Script v 0.4.65 !!################################ !!Script ran on: Sat May 23 17:01:46 UTC 2020 !!Linux Distribution !!------------------ VERSION_ID="generic_64-2019-10-04" !!DMI Information !!--------------- Manufacturer: Gigabyte Technology Co., Ltd. Product Name: 945GCM-S2C Product Version: Firmware Version: F6d Board Vendor: Gigabyte Technology Co., Ltd. Board Name: 945GCM-S2C !!ACPI Device Status Information !!--------------- /sys/bus/acpi/devices/PNP0303:00/status 15 /sys/bus/acpi/devices/PNP0400:00/status 15 /sys/bus/acpi/devices/PNP0501:00/status 15 /sys/bus/acpi/devices/PNP0700:00/status 15 /sys/bus/acpi/devices/PNP0A03:00/status 15 /sys/bus/acpi/devices/PNP0C0C:00/status 11 /sys/bus/acpi/devices/PNP0C0F:00/status 9 /sys/bus/acpi/devices/PNP0C0F:01/status 9 /sys/bus/acpi/devices/PNP0C0F:02/status 9 /sys/bus/acpi/devices/PNP0C0F:03/status 9 /sys/bus/acpi/devices/PNP0C0F:04/status 9 /sys/bus/acpi/devices/PNP0C0F:05/status 9 /sys/bus/acpi/devices/PNP0C0F:06/status 9 /sys/bus/acpi/devices/PNP0C0F:07/status 9 /sys/bus/acpi/devices/device:00/status 15 /sys/bus/acpi/devices/device:01/status 15 /sys/bus/acpi/devices/device:02/status 15 /sys/bus/acpi/devices/device:03/status 15 /sys/bus/acpi/devices/device:04/status 15 /sys/bus/acpi/devices/device:05/status 15 /sys/bus/acpi/devices/device:06/status 15 !!Kernel Information !!------------------ Kernel release: 4.19.27-gentoo-r1-area31-hackerspace Operating System: GNU/Linux Architecture: x86_64 Processor: Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz SMP Enabled: Yes !!ALSA Version !!------------ Driver version: Library version: 1.1.9 Utilities version: 1.1.9 !!Loaded ALSA modules !!------------------- !!Sound Servers on this system !!---------------------------- Pulseaudio: Installed - Yes (/usr/bin/pulseaudio) Running - Yes !!Soundcards recognised by ALSA !!----------------------------- !!PCI Soundcards installed in the system !!-------------------------------------- 00:1b.0 Audio device [0403]: Intel Corporation NM10/ICH7 Family High Definition Audio Controller [8086:27d8] (rev 01) Subsystem: Gigabyte Technology Co., Ltd GA-D525TUD (Realtek ALC887) [1458:a002] !!Loaded sound module options !!--------------------------- !!ALSA Device nodes !!----------------- crw-rw---- 1 root audio 116, 1 May 23 04:18 /dev/snd/seq !!ALSA configuration files !!------------------------ !!User specific config file (~/.asoundrc) # Dependencies (for gentoo) # echo "media-plugins/alsa-plugins libsamplerate speex mix" > /etc/portage/package.use/alsa # emerge -av tap-plugins swh-plugins libsamplerate ladspa-cmt caps-plugins ladspa-bs2b alsa-plugins # To find the card name: # cat /proc/asound/card*/id # If you experience skipping or distorted sound: # recompile kernel with change CONFIG_SND_HDA_PREALLOC_SIZE=2048 # and increase buffer_size bellow # For mpd, copy this file to /var/lib/mpd/.asoundrc # and set in audio_output { mixer_device "headphones", buffer_time "1000000" } # If problem with alsamixer for find your device, launch alsamixer with arg: # alsamixer -D "hw:Pro" # Rate converter are in /usr/lib64/alsa-lib/libasound_module_rate_.so # choose speexrate_best if your cpu is slow, samplerate_best else. #defaults.pcm.rate_converter "samplerate_best" defaults.pcm.rate_converter "samplerate_medium" # Default card # cat /proc/asound/card0/pcm0p/sub0/hw_params pcm_slave.sb1095 { pcm "hw:Pro" format S16_LE rate 48000 channels 6 period_time 0 period_size 1024 #buffer_size 8192 buffer_time 0 buffer_size 32768 } # -------------------------- # Volume # -------------------------- # The X-Fi USB doesn't have a hardware mixer, so i have to use softvol # https://github.com/opensrc/alsa/blob/master/lib/md/How_to_use_softvol_to_control_the_master_volume.md pcm.softvol { type softvol slave.pcm "asymed" control { name "Master" card Pro } } pcm.asymed { type asym playback.pcm "dmixer" capture.pcm "ain" } # Use custom dmix instead of default. pcm.dmixer { type asym playback.pcm { type dmix ipc_key 5678293 ipc_key_add_uid false ipc_perm 0666 # allow other users #ipc_gid audio slave sb1095 } } ctl.dmixer { type hw card Pro } pcm.duplicate { type plug slave.pcm "plug:softvol" slave.channels 6 route_policy duplicate } # -------------------------- # In (Record) # -------------------------- # https://bbs.archlinux.org/viewtopic.php?id=167275 pcm.ain { type dsnoop ipc_key 567830 ipc_key_add_uid false ipc_perm 0660 slave sb1095 } # -------------------------- # Pulseaudio # -------------------------- # https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/PerfectSetup/ # to test: speaker-test -D pulse -l2 -c2 -twav pcm.pulse { type pulse } ctl.pulse { type pulse } # -------------------------- # Downmix # -------------------------- pcm.surround20 { type route slave.pcm "softvol" ttable.0.0 1 ttable.1.1 1 } # aplay -Dch51dup 2ch-stereo.wav pcm.ch51dup { type route slave.pcm "softvol" slave.channels 6 ttable.0.0 1 ttable.1.1 1 ttable.0.2 1 ttable.1.3 1 ttable.0.4 0.5 ttable.1.4 0.5 ttable.0.5 0.5 ttable.1.5 0.5 } pcm.ch71dup { type route slave.pcm "softvol" slave.channels 6 ttable { 0.0 0.34 1.1 0.34 2.2 0.67 3.3 0.67 4.0 0.33 4.1 0.33 6.0 0.33 6.2 0.33 7.1 0.33 7.3 0.33 } } # -------------------------- # Ladspa # -------------------------- # Alternative to bs2b | music via Headphones # analyseplugin caps | grep -A14 Narrow # test: speaker-test -Dplug:narrower -c2 -t2 -twav pcm.narrower { type ladspa slave.pcm "surround20" #path "/usr/lib/ladspa" plugins { 0 { id 2595 input { controls [ 0 0.25 ] } } } } # source: http://bs2b.sourceforge.net/ # listplugins # analyseplugin bs2b # test: speaker-test -D plug:bs2b -c1 -t2 -twav pcm.bs2b { type ladspa slave.pcm "surround20" #path "/usr/lib/ladspa" plugins { 0 { id 4221 input { controls [ 700 6 ] } } } } # https://wiki.archlinux.org/index.php/Advanced_Linux_Sound_Architecture # mbeq # speaker-test -D plug:eq -c2 -t1 -twav pcm.eq { type ladspa slave.pcm "surround20" plugins [ { label mbeq id 1197 input { # The following setting is just an example, edit to your own taste: # bands: 50hz, 100hz, 156hz, 220hz, 311hz, 440hz, 622hz, 880hz, 1250hz, 1750hz, 25000hz, # 50000hz, 10000hz, 20000hz controls [ -5 -5 -5 -5 -5 -10 -20 -15 -10 -10 -10 -10 -10 -3 -2 ] } } ] } # speaker-test -Dheadphones -c2 -t1 -twav pcm.headphones { type rate slave { #pcm "plug:bs2b" #pcm "plug:narrower" pcm "plug:eq" rate 48000 } hint { show on description "Headphones" } } # -------------------------- # Overwrite existing devices # -------------------------- # speaker-test -D default -l2 -c2 -twav #pcm.!default { # type plug # slave.pcm "softvol" #} pcm.!default pulse ctl.!default pulse # speaker-test -D surround20 -l1 -c2 -twav pcm.!surround20 { type plug slave.pcm "softvol" } pcm.!surround50 { type plug slave.pcm "plug:ch51dup" } pcm.!surround51 { type plug slave.pcm "plug:ch51dup" } pcm.!surround71 { type plug slave.pcm "plug:ch71dup" } # https://github.com/opensrc/alsa/blob/master/lib/md/Dmix.md pcm.dsp { type plug slave.pcm "dmixer" } !!Aplay/Arecord output !!-------------------- APLAY aplay: device_list:272: no soundcards found... ARECORD arecord: device_list:272: no soundcards found... !!Amixer output !!------------- !!Alsactl output !!-------------- --startcollapse-- --endcollapse-- !!All Loaded Modules !!------------------ 8021q acpi_cpufreq af_packet ata_generic ata_piix binfmt_misc button cfg80211 coretemp drm drm_kms_helper ehci_hcd ehci_pci fb_sys_fops floppy fuse garp gpio_ich i2c_algo_bit i2c_i801 i915 iTCO_vendor_support iTCO_wdt ib_cm ib_core irqbypass iw_cm kvm kvm_intel kvmgt libphy llc lpc_ich mdev mrp nvme_fabrics nvme_rdma nvmet nvmet_rdma parport parport_pc pata_acpi pata_sis pcc_cpufreq pcspkr ppdev r8169 rdma_cm realtek rfkill sata_nv sata_promise sata_qstor sata_sil sata_sil24 sata_sis sata_svw sata_sx4 sata_uli sata_via sata_vsc serio_raw stp syscopyarea sysfillrect sysimgblt uhci_hcd usbcore usbhid vfio vfio_iommu_type1 vfio_mdev video !!ALSA/HDA dmesg !!-------------- [ 0.334991] ACPI: Added _OSI(Linux-Dell-Video) [ 0.334991] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio) [ 0.340756] ACPI: 2 ACPI AML tables successfully acquired and loaded