Есть компьютер Intel NUC8i3BEH. На нём Debian Buster (правда, не установленный, а перенесённый на диске из Intel NUC5i3RYH).
Установлен alsa-utils.
В какой-то момент (уже когда обнаружилась неработоспособность микрофона) была попытка поставить поверх этого pulseaudio и pavucontrol — в результате звук вообще пропал; после удаления и перезагрузки восстановился.
Есть звуковая карта:
Код: Выделить всё
$ cat /proc/asound/cards
0 [PCH ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0xc0a20000 irq 132
Код: Выделить всё
$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC233 Analog [ALC233 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
Код: Выделить всё
$ arecord -L
null
Discard all samples (playback) or generate zero samples (capture)
jack
JACK Audio Connection Kit
pulse
PulseAudio Sound Server
default:CARD=PCH
HDA Intel PCH, ALC233 Analog
Default Audio Device
sysdefault:CARD=PCH
HDA Intel PCH, ALC233 Analog
Default Audio Device
front:CARD=PCH,DEV=0
HDA Intel PCH, ALC233 Analog
Front speakers
dmix:CARD=PCH,DEV=0
HDA Intel PCH, ALC233 Analog
Direct sample mixing device
dsnoop:CARD=PCH,DEV=0
HDA Intel PCH, ALC233 Analog
Direct sample snooping device
hw:CARD=PCH,DEV=0
HDA Intel PCH, ALC233 Analog
Direct hardware device without any conversions
plughw:CARD=PCH,DEV=0
HDA Intel PCH, ALC233 Analog
Hardware device with all software conversions
usbstream:CARD=PCH
HDA Intel PCH
USB Stream Output
Но при попытке записать arecord говорит, что микрофон занят:
Код: Выделить всё
$ arecord -D plughw:0,0 record.wav
arecord: main:828: audio open error: Устройство или ресурс занято
Код: Выделить всё
$ arecord -D plughw:1,0 record.wav
ALSA lib pcm_hw.c:1822:(_snd_pcm_hw_open) Invalid value for card
arecord: main:828: audio open error: Нет такого файла или каталога
$ arecord -D plughw:0,1 record.wav
arecord: main:828: audio open error: Нет такого файла или каталога
А более высокоуровневые программы (audacity или актуальные сейчас Zoom и Discord) говорят, что у меня микрофона в принципе нет. В консоль обычно выводится примерно такой комментарий
Код: Выделить всё
ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave
Код: Выделить всё
$ cat /proc/asound/cards
0 [PCH ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0xc0a20000 irq 132
1 [Camera ]: USB-Audio - A4Tech Full HD 720P PC Camera
Sonix Technology Co., Ltd. A4Tech Full HD 720P PC Camera at usb-0000:00:14.0-4,
Код: Выделить всё
$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC233 Analog [ALC233 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Camera [A4Tech Full HD 720P PC Camera], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
Код: Выделить всё
$ arecord -L
null
Discard all samples (playback) or generate zero samples (capture)
jack
JACK Audio Connection Kit
pulse
PulseAudio Sound Server
default:CARD=PCH
HDA Intel PCH, ALC233 Analog
Default Audio Device
sysdefault:CARD=PCH
HDA Intel PCH, ALC233 Analog
Default Audio Device
front:CARD=PCH,DEV=0
HDA Intel PCH, ALC233 Analog
Front speakers
dmix:CARD=PCH,DEV=0
HDA Intel PCH, ALC233 Analog
Direct sample mixing device
dsnoop:CARD=PCH,DEV=0
HDA Intel PCH, ALC233 Analog
Direct sample snooping device
hw:CARD=PCH,DEV=0
HDA Intel PCH, ALC233 Analog
Direct hardware device without any conversions
plughw:CARD=PCH,DEV=0
HDA Intel PCH, ALC233 Analog
Hardware device with all software conversions
usbstream:CARD=PCH
HDA Intel PCH
USB Stream Output
default:CARD=Camera
Default Audio Device
sysdefault:CARD=Camera
Default Audio Device
front:CARD=Camera,DEV=0
A4Tech Full HD 720P PC Camera, USB Audio
Front speakers
surround21:CARD=Camera,DEV=0
A4Tech Full HD 720P PC Camera, USB Audio
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Camera,DEV=0
A4Tech Full HD 720P PC Camera, USB Audio
4.0 Surround output to Front and Rear speakers
surround41:CARD=Camera,DEV=0
A4Tech Full HD 720P PC Camera, USB Audio
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Camera,DEV=0
A4Tech Full HD 720P PC Camera, USB Audio
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Camera,DEV=0
A4Tech Full HD 720P PC Camera, USB Audio
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Camera,DEV=0
A4Tech Full HD 720P PC Camera, USB Audio
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Camera,DEV=0
A4Tech Full HD 720P PC Camera, USB Audio
IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=Camera,DEV=0
A4Tech Full HD 720P PC Camera, USB Audio
Direct sample mixing device
dsnoop:CARD=Camera,DEV=0
A4Tech Full HD 720P PC Camera, USB Audio
Direct sample snooping device
hw:CARD=Camera,DEV=0
A4Tech Full HD 720P PC Camera, USB Audio
Direct hardware device without any conversions
plughw:CARD=Camera,DEV=0
A4Tech Full HD 720P PC Camera, USB Audio
Hardware device with all software conversions
usbstream:CARD=Camera
A4Tech Full HD 720P PC Camera
USB Stream Output
Код: Выделить всё
$ arecord -D plughw:1,0 record.wav
arecord: main:828: audio open error: Устройство или ресурс занято
Файл /etc/asound.conf:
Код: Выделить всё
defaults.pcm.card 0
defaults.pcm.device 3
defaults.ctl.card 0
defaults.pcm.subdevice 1