[pulseaudio-discuss] Selecting PCM channel in arecord

Sietse Achterop s.achterop at rug.nl
Tue May 5 13:57:26 UTC 2020


   Hello List,

Having trouble setting the -D option in arecord to set the PCM by name.
If when I do "arecord -L"  I get:
   ...
plughw:CARD=PCH,DEV=0
     HDA Intel PCH, ALC1220 Analog
     Hardware device with all software conversions
   ...
What is the PCM name?  plughw?
I tried alot of names, but nothing is working. Well, "default" seems to be the only one.

I have two working sources, the sound device on the motherboard and a webcam here, 8 and 21, see below.
I using arecord in the default way, always data from the webcam is used.
If I try to select one with the -D option I get errors (no such file / device or resource busy)

If, using the configuration in pavucontrol, I turn one of the two off, than it works, but not
if both are active.

pactl list short sources
7	alsa_output.pci-0000_00_1f.3.analog-stereo.monitor	module-alsa-card.c	s16le 2ch 44100Hz	RUNNING
8	alsa_input.pci-0000_00_1f.3.analog-stereo	module-alsa-card.c	s16le 2ch 44100Hz	RUNNING
11	QuiskDigitalInput.monitor	module-null-sink.c	s16le 2ch 44100Hz	RUNNING
12	QuiskDigitalOutput.monitor	module-null-sink.c	s16le 2ch 44100Hz	RUNNING
21	alsa_input.usb-046d_09a4_07BDCE12-02.mono-fallback	module-alsa-card.c	s16le 1ch 16000Hz	RUNNING
23	alsa_output.pci-0000_65_00.1.hdmi-stereo.monitor	module-alsa-card.c	s16le 2ch 44100Hz	RUNNING

record -l
**** List of CAPTURE Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC1220 Analog [ALC1220 Analog]
   Subdevices: 0/1
   Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 2: ALC1220 Alt Analog [ALC1220 Alt Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
card 2: U0x46d0x9a4 [USB Device 0x46d:0x9a4], device 0: USB Audio [USB Audio]
   Subdevices: 0/1
   Subdevice #0: subdevice #0

So the question is how to select a source using the -D option.

   Thanks in advance,
        Sietse


More information about the pulseaudio-discuss mailing list