I have a headless machine running Ubuntu server 16.04. I am trying to record audio and video from a Hauppauge ImpactVCB-e PCI Express video capture card. Currently I can record video, but not audio. The audio input of the capture card is listed in /proc/asound/cards
,
cameron@server:~$ cat /proc/asound/cards
0 [NVidia ]: HDA-Intel - HDA NVidia
HDA NVidia at 0xd3000000 irq 16
1 [CX23885 ]: CX23885 - Conexant CX23885
Conexant CX23885 at cx23885[0]
cameron@server:~$ ls /proc/asound/card1
id pcm0c
but it is not listed when I run arecord -l
,
cameron@server:~$ arecord -l
arecord: device_list:268: no soundcards found...
Looking through dmesg
output I found the following in reference to the PCI card,
[ 0.370573] pci 0000:60:00.0: [14f1:8852] type 00 class 0x040000
[ 0.370625] pci 0000:60:00.0: reg 0x10: [mem 0xd3200000-0xd33fffff 64bit]
[ 0.370739] pci 0000:60:00.0: supports D1 D2
[ 0.370742] pci 0000:60:00.0: PME# supported from D0 D1 D2 D3hot
[ 0.370803] pci 0000:60:00.0: System wakeup disabled by ACPI
[ 0.370862] pci 0000:60:00.0: disabling ASPM on pre-1.1 PCIe device. You can enable it with 'pcie_aspm=force'
[ 0.423205] pci_bus 0000:60: resource 1 [mem 0xd3200000-0xd33fffff]
I expect this is an issue with my Alsa configuration, but I don't know how to fix it.
cat /proc/asound/cards
andls /proc/asound/card99
, replacing99
with the number of the Haupauge card shown in the first command. Also, look indmesg
after boot for any relevant messages that describe successful initialization, or problems. If you don't know how to do that, upload the wholedmesg
output to a pastebin etc., and edit question with link.pcm0c
, so I suspect the hardware drivers are ok. Funnily, you don't even getarecord -l
devices for card 0. Guess: It's an unusual card, so there's a regression that causes an error when ALSA goes through the hw driver list, hits card 1, and sets up the device and plugin list. I'd have to google how to debug this. Do you get anything withaplay -l
? Anything withamixer -c0 controls
oramixer -c1 controls
? (Exact output is not important, this is just to check if these are broken, too).aplay -l
produces the exact same output asarecord -l
. Bothamixer
commands outputInvalid card number
and theamixer
useage text.strace aplay -l
I noticed one line of the output,open("/dev/snd/controlC1", O_RDONLY|O_CLOEXEC) = -1 EACCES (Permission denied)
. Runningsudo stract aplay -l
fixed this issue and runningsudo arecord -l
shows my capture card. Looking at the contents of the/dev/snd
directory it appears the issue was that my user was not in theaudio
group. I will work on adding myself to theaudio
group and write up an answer for this question. Thank you for all your help.