04 BASH – Dispositivi audio del PC visti da OpenSUSE
04 BASH – Scheda e dispositivi audio del PC visti da OpenSUSE Tumbleweed
I comandi:
inxi -SAxxx # Sistema Operativo e periferiche audio
aplay -l # Dispositivi hardware di PLAYBACK
dmesg|grep -i sound # Dispositivi audio ingresso e uscita
lspci | awk '$2 == "Audio" {system("lspci -ks " $1)}' # Lista schede Audio PCI
lspci -vs 00:1f.3 # Informazioni dispositivo PCI 00:1f.3
lsusb -vd 0d8c:0014|head -17 # Informazioni dispositivo USB (audio) avente vendor=0d8c e product=0014
pactl list short | grep alsa # Dispositivi ALSA connesse al PC
pactl list short sources # Dispositivi ALSA SOURCES connesse al PC
pactl list short sources | grep 'output' # Dispositivi ALSA SOURCES in grado di fornire un OUTPUT connesse al PC
sudo hwinfo --sound # Informazioni relative alla scheda audio
/usr/sbin/hwinfo --sound # Informazioni relative alla scheda audio
Esempi di output:
:~> inxi -SAxxx # Sistema Operativo e periferiche audio System: Host: 192.168.1.6 Kernel: 6.7.4-1-default arch: x86_64 bits: 64 compiler: gcc v: 13.2.1 clocksource: tsc Desktop: KDE Plasma v: 5.27.10 tk: Qt v: 5.15.12 wm: kwin_x11 vt: 2 dm: SDDM Distro: openSUSE Tumbleweed 20240216 Audio: Device-1: Intel Tiger Lake-LP Smart Sound Audio vendor: Realtek driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 chip-ID: 8086:a0c8 class-ID: 0403 Device-2: C-Media Audio Adapter (Unitek Y-247A) driver: cmedia_hs100b,snd-usb-audio,usbhid type: USB rev: 1.1 speed: 12 Mb/s lanes: 1 bus-ID: 1-5:4 chip-ID: 0d8c:0014 class-ID: 0300 API: ALSA v: k6.7.4-1-default status: kernel-api with: aoss type: oss-emulator Server-1: PipeWire v: 1.0.3 status: active with: 1: pipewire-pulse status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin 4: pw-jack type: plugin :~> aplay -l # Dispositivi hardware di PLAYBACK **** List of PLAYBACK Hardware Devices **** card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [MTC26T42] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [LCD TV] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: Device [USB Audio Device], device 0: USB Audio [USB Audio] Subdevices: 1/1 Subdevice #0: subdevice #0 :~> dmesg|grep -i sound # Dispositivi audio ingresso e uscita [ 3.586806] input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input11 [ 3.606603] input: HDA Intel PCH HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input12 [ 3.606661] input: HDA Intel PCH HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input13 [ 3.606787] input: HDA Intel PCH HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input14 :~> lspci | awk '$2 == "Audio" {system("lspci -ks " $1)}' # Lista schede Audio PCI 00:1f.3 Audio device: Intel Corporation Tiger Lake-LP Smart Sound Technology Audio Controller (rev 30) DeviceName: Onboard - Sound Subsystem: Realtek Semiconductor Co., Ltd. Device 3000 Kernel driver in use: snd_hda_intel Kernel modules: snd_hda_intel, snd_sof_pci_intel_tgl :~> lspci -vs 00:1f.3 # Informazioni relative a periferica PCI 00:1f.3 00:1f.3 Audio device: Intel Corporation Tiger Lake-LP Smart Sound Technology Audio Controller (rev 30) DeviceName: Onboard - Sound Subsystem: Realtek Semiconductor Co., Ltd. Device 3000 Flags: bus master, fast devsel, latency 32, IRQ 139 Memory at 6001118000 (64-bit, non-prefetchable) [size=16K] Memory at 6001000000 (64-bit, non-prefetchable) [size=1M] Capabilities: Kernel driver in use: snd_hda_intel Kernel modules: snd_hda_intel, snd_sof_pci_intel_tgl :~> lsusb -vd 0d8c:0014|head -17 # Informazioni periferica USB (audio) avente vendor=0d8c e product=0014 Couldn't open device, some information will be missing Bus 001 Device 004: ID 0d8c:0014 C-Media Electronics, Inc. Audio Adapter (Unitek Y-247A) Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 1.10 bDeviceClass 0 [unknown] bDeviceSubClass 0 [unknown] bDeviceProtocol 0 bMaxPacketSize0 8 idVendor 0x0d8c C-Media Electronics, Inc. idProduct 0x0014 Audio Adapter (Unitek Y-247A) bcdDevice 1.00 iManufacturer 1 C-Media Electronics Inc. iProduct 2 USB Audio Device iSerial 0 bNumConfigurations 1 :~> pactl list short | grep alsa # Mostra lista periferiche ALSA connesse al PC 43 alsa_output.usb-C-Media_Electronics_Inc._USB_Audio_Device-00.analog-stereo PipeWire s16le 2ch 48000Hz SUSPENDED 45 alsa_output.pci-0000_00_1f.3.hdmi-stereo PipeWire s32le 2ch 48000Hz SUSPENDED 43 alsa_output.usb-C-Media_Electronics_Inc._USB_Audio_Device-00.analog-stereo.monitor PipeWire s16le 2ch 48000Hz SUSPENDED 44 alsa_input.usb-C-Media_Electronics_Inc._USB_Audio_Device-00.mono-fallback PipeWire s16le 1ch 48000Hz SUSPENDED 45 alsa_output.pci-0000_00_1f.3.hdmi-stereo.monitor PipeWire s32le 2ch 48000Hz SUSPENDED 41 alsa_card.usb-C-Media_Electronics_Inc._USB_Audio_Device-00 alsa 42 alsa_card.pci-0000_00_1f.3 alsa :~> pactl list short sources # Mostra lista periferiche ALSA SOURCES connesse al PC 43 alsa_output.usb-C-Media_Electronics_Inc._USB_Audio_Device-00.analog-stereo.monitor PipeWire s16le 2ch 48000Hz SUSPENDED 44 alsa_input.usb-C-Media_Electronics_Inc._USB_Audio_Device-00.mono-fallback PipeWire s16le 1ch 48000Hz SUSPENDED 45 alsa_output.pci-0000_00_1f.3.hdmi-stereo.monitor PipeWire s32le 2ch 48000Hz SUSPENDED :~> pactl list short sources | grep 'output' # Mostra lista periferiche ALSA SOURCES in grado di fornire un OUTPUT connesse al PC 43 alsa_output.usb-C-Media_Electronics_Inc._USB_Audio_Device-00.analog-stereo.monitor PipeWire s16le 2ch 48000Hz SUSPENDED 45 alsa_output.pci-0000_00_1f.3.hdmi-stereo.monitor PipeWire s32le 2ch 48000Hz SUSPENDED :~> sudo hwinfo --sound # Informazioni relative alla scheda audio 19: PCI 1f.3: 0403 Audio device [Created at pci.386] Unique ID: nS1_.rdW+5BseEGE SysFS ID: /devices/pci0000:00/0000:00:1f.3 SysFS BusID: 0000:00:1f.3 Hardware Class: sound Device Name: "Onboard - Sound" Model: "Intel Tiger Lake-LP Smart Sound Technology Audio Controller" Vendor: pci 0x8086 "Intel Corporation" Device: pci 0xa0c8 "Tiger Lake-LP Smart Sound Technology Audio Controller" SubVendor: pci 0x10ec "Realtek Semiconductor Co., Ltd." SubDevice: pci 0x3000 Revision: 0x30 Driver: "snd_hda_intel" Driver Modules: "snd_hda_intel" Memory Range: 0x6001118000-0x600111bfff (rw,non-prefetchable) Memory Range: 0x6001000000-0x60010fffff (rw,non-prefetchable) IRQ: 139 (948 events) Module Alias: "pci:v00008086d0000A0C8sv000010ECsd00003000bc04sc03i00" Driver Info #0: Driver Status: snd_hda_intel is active Driver Activation Cmd: "modprobe snd_hda_intel" Driver Info #1: Driver Status: snd_sof_pci_intel_tgl is active Driver Activation Cmd: "modprobe snd_sof_pci_intel_tgl" Config Status: cfg=new, avail=yes, need=no, active=unknown 38: USB 00.1: 0401 Multimedia audio controller [Created at usb.122] Unique ID: NwzV.0zGQ5BCeC13 Parent ID: k4bc.2DFUsyrieMD SysFS ID: /devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.1 SysFS BusID: 1-5:1.1 Hardware Class: sound Model: "C-Media Electronics Audio Adapter (Unitek Y-247A)" Hotplug: USB Vendor: usb 0x0d8c "C-Media Electronics, Inc." Device: usb 0x0014 "Audio Adapter (Unitek Y-247A)" Revision: "1.00" Driver: "snd-usb-audio" Driver Modules: "snd_usb_audio" Speed: 12 Mbps Module Alias: "usb:v0D8Cp0014d0100dc00dsc00dp00ic01isc02ip00in01" Config Status: cfg=new, avail=yes, need=no, active=unknown Attached to: #44 (Hub) :~>