!!################################ !!ALSA Information Script v 0.4.64 !!################################ !!Script ran on: Thu Oct 3 04:25:07 UTC 2019 !!Linux Distribution !!------------------ ID_LIKE=debian !!DMI Information !!--------------- Manufacturer: Product Name: Product Version: Firmware Version: Board Vendor: Board Name: !!ACPI Device Status Information !!--------------- !!Kernel Information !!------------------ Kernel release: 4.19.75-v7l Operating System: GNU/Linux Architecture: armv7l Processor: unknown SMP Enabled: Yes !!ALSA Version !!------------ Driver version: k4.19.75-v7l Library version: 1.1.8 Utilities version: 1.1.8 !!Loaded ALSA modules !!------------------- snd_bcm2835 snd_usb_audio !!Sound Servers on this system !!---------------------------- No sound servers found. !!Soundcards recognised by ALSA !!----------------------------- 0 [ALSA ]: bcm2835_alsa - bcm2835 ALSA bcm2835 ALSA 1 [Device ]: USB-Audio - USB PnP Sound Device C-Media Electronics Inc. USB PnP Sound Device at usb-0000:01:00.0-1.2.2, full s !!PCI Soundcards installed in the system !!-------------------------------------- !!Advanced information - PCI Vendor/Device/Subsystem ID's !!------------------------------------------------------- !!Modprobe options (Sound related) !!-------------------------------- snd_pcsp: index=-2 snd_usb_audio: index=-2 snd_atiixp_modem: index=-2 snd_intel8x0m: index=-2 snd_via82xx_modem: index=-2 !!Loaded sound module options !!--------------------------- !!Module: snd_bcm2835 enable_compat_alsa : Y enable_hdmi : N enable_headphones : N force_bulk : N !!Module: snd_usb_audio autoclock : Y device_setup : 0,0,0,0,0,0,0,0 enable : Y,Y,Y,Y,Y,Y,Y,Y id : (null),(null),(null),(null),(null),(null),(null),(null) ignore_ctl_error : N index : -2,-1,-1,-1,-1,-1,-1,-1 pid : -1,-1,-1,-1,-1,-1,-1,-1 quirk_alias : (null),(null),(null),(null),(null),(null),(null),(null) use_vmalloc : Y vid : -1,-1,-1,-1,-1,-1,-1,-1 !!USB Mixer information !!--------------------- --startcollapse-- USB Mixer: usb_id=0x0d8c013c, ctrlif=0, ctlerr=0 Card: C-Media Electronics Inc. USB PnP Sound Device at usb-0000:01:00.0-1.2.2, full s Unit: 9 Control: name="PCM Playback Volume", index=0 Info: id=9, control=2, cmask=0x3, channels=2, type="S16" Volume: min=-7264, max=-16, dBmin=-2837, dBmax=-6 Unit: 9 Control: name="PCM Playback Switch", index=0 Info: id=9, control=1, cmask=0x0, channels=1, type="INV_BOOLEAN" Volume: min=0, max=1, dBmin=0, dBmax=0 Unit: 10 Control: name="Auto Gain Control", index=0 Info: id=10, control=7, cmask=0x0, channels=1, type="BOOLEAN" Volume: min=0, max=1, dBmin=0, dBmax=0 Unit: 10 Control: name="Mic Capture Volume", index=0 Info: id=10, control=2, cmask=0x0, channels=1, type="S16" Volume: min=0, max=6096, dBmin=0, dBmax=2381 Unit: 10 Control: name="Mic Capture Switch", index=0 Info: id=10, control=1, cmask=0x0, channels=1, type="INV_BOOLEAN" Volume: min=0, max=1, dBmin=0, dBmax=0 --endcollapse-- !!ALSA Device nodes !!----------------- crw-rw---- 1 root audio 116, 0 Oct 3 05:18 /dev/snd/controlC0 crw-rw---- 1 root audio 116, 32 Oct 3 06:20 /dev/snd/controlC1 crw-rw---- 1 root audio 116, 16 Oct 3 05:18 /dev/snd/pcmC0D0p crw-rw---- 1 root audio 116, 17 Oct 3 05:18 /dev/snd/pcmC0D1p crw-rw---- 1 root audio 116, 18 Oct 3 05:18 /dev/snd/pcmC0D2p crw-rw---- 1 root audio 116, 56 Oct 3 06:20 /dev/snd/pcmC1D0c crw-rw---- 1 root audio 116, 48 Oct 3 06:20 /dev/snd/pcmC1D0p crw-rw---- 1 root audio 116, 1 Oct 3 05:18 /dev/snd/seq crw-rw---- 1 root audio 116, 33 Oct 3 05:18 /dev/snd/timer /dev/snd/by-id: total 0 drwxr-xr-x 2 root root 60 Oct 3 06:20 . drwxr-xr-x 4 root root 260 Oct 3 06:20 .. lrwxrwxrwx 1 root root 12 Oct 3 06:20 usb-C-Media_Electronics_Inc._USB_PnP_Sound_Device-00 -> ../controlC1 /dev/snd/by-path: total 0 drwxr-xr-x 2 root root 80 Oct 3 06:20 . drwxr-xr-x 4 root root 260 Oct 3 06:20 .. lrwxrwxrwx 1 root root 12 Oct 3 06:20 platform-fd500000.pcie-pci-0000:01:00.0-usb-0:1.2.2:1.0 -> ../controlC1 lrwxrwxrwx 1 root root 12 Oct 3 05:18 platform-soc:audio -> ../controlC0 !!ALSA configuration files !!------------------------ !!System wide config file (/etc/asound.conf) # # Place your global alsa-lib configuration here... # # Quelle: http://wiki.ubuntuusers.de/.asoundrc # Info: http://www.alsa-project.org/main/index.php/Asoundrc #----- für Test ------------------------------------------------ #-- Falls man mehrere Ausgabegeräte besitzt ist es manchmal nötig ein Default-Gerät festzulegen. #-- Dazu gibt man die Karten über folgenden Befehl aus: cat /proc/asound/cards oder mit aplay --list-devices #-- /etc/modprobe.d/blacklist.conf und blacklist snd_bcm2835 einfügen #-- sudo reboot #-- /etc/rc.d/init.d/timidity stop #-- aplay -D plughw:0,0 /usr/share/sounds/alsa/Front_Center.wav #-- speaker-test -Dhw:0,0 -c2 -twav #pcm.!default { # type hw # card 0 # device 0 #} #-- und die unteren zwei daktivieren #--------------------------------------------------------------- pcm.snd_card { type hw card 0 device 0 } ctl.snd_card { type hw card 0 device 0 } #-- Das dmix-Plugin wird definiert. pcm.dmixer { type dmix ipc_key 1024 ipc_perm 0666 # Andere Benutzer können ebenfalls dmix gleichzeitig nutzen slave.pcm "snd_card" slave { # buffer_size kann bei Problemen der jeweiligen Karte angepasst werden. period_time 0 period_size 1024 buffer_size 4096 # bei Störungen kann die Konvertierung auf die Rate 44100 eingeschaltet werden. # rate 44100 # einige Soundkarten benötigen das exakte Datenformat (zB ice1712) # format S32_LE # Verfügbare Formate: S8 U8 S16_LE S16_BE U16_LE U16_BE S24_LE S24_BE U24_LE U24_BE # S32_LE S32_BE U32_LE U32_BE FLOAT_LE FLOAT_BE FLOAT64_LE FLOAT64_BE # IEC958_SUBFRAME_LE IEC958_SUBFRAME_BE MU_LAW A_LAW IMA_ADPCM MPEG GSM # Anzahl channels muss mit den bindings übereinstimmen channels 2 } bindings { 0 0 1 1 } } #-- Das dsnoop-Plugin, welches es erlaubt, mehrere Programme gleichzeitig aufnehmen zu lassen. pcm.dsnooper { type dsnoop ipc_key 2048 # must be unique for all dmix plugins!!!! ipc_perm 0666 slave.pcm "snd_card" slave { period_time 0 period_size 1024 buffer_size 4096 # bei Störungen kann die Konvertierung auf die Rate 44100 eingeschaltet werden. # rate 44100 # einige Soundkarten benötigen das exakte Datenformat (zB ice1712) # format S32_LE # Anzahl channels muss mit den bindings übereinstimmen channels 2 } bindings { 0 0 1 1 } } #-- Dies definiert unser Fullduplex-Plugin als Standard für alle ALSA-Programme. pcm.duplex { type asym playback.pcm "dmixer" capture.pcm "dsnooper" } #-- Man kann sehr schön erkennen, wie die Weiterleitung funktioniert: das default-Gerät nimmt alle Sound-Kanäle entgegen #-- und leitet sie an das "duplex"-Gerät weiter. Dieses wiederum verteilt sie an "dmixer" für die Wiedergabe und an #-- "dsnooper" für die Aufnahme. Das Gerät "dmixer" leitet die Kanäle direkt in das "dmix"-Plugin, welches das #-- eigentliche Zusammenmischen übernimmt. #-- Downmix #-- Mittels der .asoundrc kann man ein 5.1-Signal auf Stereo heruntermischen (5.1 auf 2.0): pcm.51to20 { type route slave.pcm surround51 #-- hier wurde das vordefinierte Gerät "surround51" verwendet #-- falls "dmixer" entsprechend konfiguriert wurde, kann man ihn als slave.pcm angeben slave.channels 6 ttable.0.0 1 #-- front links -> links ttable.1.1 1 #-- front rechts -> rechts ttable.2.0 0.707 #-- hinten links -> links, Dämpfung 3dB ttable.3.1 0.707 #-- hinten rechts -> rechts, Dämpfung 3dB ttable.4.0 0.5 #-- zentrum -> links, Dämpfung 6dB ttable.4.1 0.5 #-- zentrum -> rechts, Dämpfung 6dB ttable.5.0 0.5 #-- basskanal -> links, Dämpfung 6dB ttable.5.1 0.5 #-- basskanal -> rechts, Dämpfung 6dB } #-- Nun kann man z.B. XINE das oben definierte "51to20"-Gerät als Audio-Ausgang zuweisen. #-- Der Surround-Sound wird dadurch sauber auf ein Stereo-Signal heruntergemischt. Die erste Zahl nach ttable steht #-- dabei für die Eingangskanäle (0 bis 5), die zweite Zahl steht für den Ausgangskanal (0 und 1 für links und rechts), #-- die dritte Zahl steht für die Dämpfung des Eingang-Signals. #-- OSS #-- Es gibt noch viele Programme, die zur Sound-Ausgabe nur OSS (Open Sound System) unterstützen. #-- Damit auch diese Programme ihren Sound über ALSA und das "dmix"-Plugin laufen lassen können, muss noch #-- ein virtuelles OSS-Gerät definiert werden: #-- #-- DSP wird simuliert und benutzt das dmix-Plugin. pcm.dsp0 { type plug slave.pcm "duplex" } #-- OSS-Steuerung für dsp0 (falls es benötigt wird...) ctl.dsp0 { type plug slave.pcm "snd_card" } #-- OSS-Steuerung für dsp0 (falls es benötigt wird...) ctl.mixer0 { type plug slave.pcm "snd_card" } #-- JACK #-- Um eine Schnittstelle zu jack (Jack Audio Connection Kit) zu bekommen, muss die .asoundrc folgendermaßen ergänzt werden: pcm.jackplug12 { type plug slave { pcm "jack12" } } pcm.jack12 { type jack playback_ports { 0 alsa_pcm:playback_1 1 alsa_pcm:playback_2 } capture_ports { 0 alsa_pcm:capture_1 1 alsa_pcm:capture_2 } } #-- Programme, welche nur eine ALSA-Schnittstelle, aber keine direkte jack-Unterstützung haben, können nun über das #-- "jackplug12"-Gerät mit jack kommunizieren. In diesem konkreten Fall wurden die Mono-Hardware-Kanäle 1 und 2 zum #-- Stereo-Gerät "jackplug12" gebündelt. pcm.!default { type plug slave.pcm "duplex" } !!Aplay/Arecord output !!-------------------- APLAY **** List of PLAYBACK Hardware Devices **** card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA] Subdevices: 7/7 Subdevice #0: subdevice #0 Subdevice #1: subdevice #1 Subdevice #2: subdevice #2 Subdevice #3: subdevice #3 Subdevice #4: subdevice #4 Subdevice #5: subdevice #5 Subdevice #6: subdevice #6 card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 IEC958/HDMI [bcm2835 IEC958/HDMI] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: ALSA [bcm2835 ALSA], device 2: bcm2835 IEC958/HDMI1 [bcm2835 IEC958/HDMI1] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio] Subdevices: 1/1 Subdevice #0: subdevice #0 ARECORD **** List of CAPTURE Hardware Devices **** card 1: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio] Subdevices: 1/1 Subdevice #0: subdevice #0 !!Amixer output !!------------- !!-------Mixer controls for card 0 [ALSA] Card hw:0 'ALSA'/'bcm2835 ALSA' Mixer name : 'Broadcom Mixer' Components : '' Controls : 5 Simple ctrls : 1 Simple mixer control 'PCM',0 Capabilities: pvolume pvolume-joined pswitch pswitch-joined Playback channels: Mono Limits: Playback -10239 - 400 Mono: Playback -887 [88%] [-8.87dB] [on] !!-------Mixer controls for card 1 [Device] Card hw:1 'Device'/'C-Media Electronics Inc. USB PnP Sound Device at usb-0000:01:00.0-1.2.2, full s' Mixer name : 'USB Mixer' Components : 'USB0d8c:013c' Controls : 8 Simple ctrls : 3 Simple mixer control 'PCM',0 Capabilities: pvolume pswitch pswitch-joined Playback channels: Front Left - Front Right Limits: Playback 0 - 151 Mono: Front Left: Playback 116 [77%] [-6.63dB] [on] Front Right: Playback 116 [77%] [-6.63dB] [on] Simple mixer control 'Mic',0 Capabilities: cvolume cvolume-joined cswitch cswitch-joined Capture channels: Mono Limits: Capture 0 - 16 Mono: Capture 0 [0%] [0.00dB] [on] Simple mixer control 'Auto Gain Control',0 Capabilities: pswitch pswitch-joined Playback channels: Mono Mono: Playback [on] !!Alsactl output !!-------------- --startcollapse-- state.ALSA { control.1 { iface MIXER name 'PCM Playback Volume' value -887 comment { access 'read write' type INTEGER count 1 range '-10239 - 400' dbmin -9999999 dbmax 400 dbvalue.0 -887 } } control.2 { iface MIXER name 'PCM Playback Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.3 { iface MIXER name 'PCM Playback Route' value 0 comment { access 'read write' type INTEGER count 1 range '0 - 3' } } control.4 { iface PCM name 'IEC958 Playback Default' value '0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' comment { access 'read write' type IEC958 count 1 } } control.5 { iface PCM name 'IEC958 Playback Con Mask' value '0200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000' comment { access read type IEC958 count 1 } } } state.Device { control.1 { iface PCM name 'Playback Channel Map' value.0 0 value.1 0 comment { access read type INTEGER count 2 range '0 - 36' } } control.2 { iface PCM name 'Capture Channel Map' value 0 comment { access read type INTEGER count 1 range '0 - 36' } } control.3 { iface MIXER name 'PCM Playback Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.4 { iface MIXER name 'PCM Playback Volume' value.0 116 value.1 116 comment { access 'read write' type INTEGER count 2 range '0 - 151' dbmin -2837 dbmax -6 dbvalue.0 -663 dbvalue.1 -663 } } control.5 { iface MIXER name 'Mic Capture Switch' value true comment { access 'read write' type BOOLEAN count 1 } } control.6 { iface MIXER name 'Mic Capture Volume' value 0 comment { access 'read write' type INTEGER count 1 range '0 - 16' dbmin 0 dbmax 2381 dbvalue.0 0 } } control.7 { iface MIXER name 'Auto Gain Control' value true comment { access 'read write' type BOOLEAN count 1 } } control.8 { iface CARD name 'Keep Interface' value false comment { access 'read write' type BOOLEAN count 1 } } } --endcollapse-- !!All Loaded Modules !!------------------ Module fuse snd_usb_audio snd_hwdep snd_usbmidi_lib snd_rawmidi snd_seq_device em28xx_rc si2157 si2168 i2c_mux em28xx_dvb dvb_core em28xx tveeprom cmac bnep hci_uart btbcm serdev bluetooth ecdh_generic 8021q garp stp llc sg vc4 drm_kms_helper v3d gpu_sched snd_soc_core drm drm_panel_orientation_quirks snd_compress snd_pcm_dmaengine raspberrypi_hwmon hwmon syscopyarea sysfillrect sysimgblt fb_sys_fops snd_bcm2835 snd_pcm snd_timer brcmfmac snd brcmutil joydev sha256_generic cfg80211 rfkill bcm2835_codec v4l2_mem2mem bcm2835_v4l2 bcm2835_mmal_vchiq videobuf2_dma_contig v4l2_common videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_common videodev media vc_sm_cma rpivid_mem uio_pdrv_genirq uio fixed evdev ip_tables x_tables ipv6 !!ALSA/HDA dmesg !!-------------- [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 240960 [ 0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 cma=64M cma=256M video=HDMI-A-1:1920x1080M@60,margin_left=48,margin_right=48,margin_top=48,margin_bottom=48 smsc95xx.macaddr=DC:A6:32:15:B7:94 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 console=ttyS0,115200 console=tty1 root=PARTUUID=6c586e13-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) -- [ 4.468893] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' [ 4.540839] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned. [ 4.551573] bcm2835_audio soc:audio: card created with 8 channels -- [ 19.612039] hid-generic 0003:0D8C:013C.0004: input,hidraw3: USB HID v1.00 Device [C-Media Electronics Inc. USB PnP Sound Device] on usb-0000:01:00.0-1.2.2/input3 [ 19.768062] usbcore: registered new interface driver snd-usb-audio [ 183.007132] si2168 8-0064: downloading firmware from file 'dvb-demod-si2168-b40-01.fw'