Determining Pulse Audio and ALSA Device Names - 2023.1 English

H.264/H.265 Video Codec Unit v1.2 Solutions LogiCORE IP Product Guide (PG252)

Document ID
PG252
Release Date
2023-05-16
Version
2023.1 English

The audio device name (to provide with -i option) of audio source and playback device (to provide with --audio-output) can be found using arecord and aplay utilities respectively.

ALSA sound device names for capture devices

arecord -l
**** List of CAPTURE Hardware Devices ****
card 1: C920 [HD Pro Webcam C920], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
In this example, card number of capture device is 1 and device id is 0 hence "hw:1,0" can be passed to alsasrc to refer to this capture device using -i option.

In this example, card number 0 is being used for playback device for display port channel 0 and device id is 0, so hw:0,0 can be used for selecting display port channel 0 as a playback device using the --audio-output option.

ALSA sound device names for playback devices

aplay -1
**** List of PLAYBACK Hardware Devices ****
card 0: monitor [DisplayPort monitor], device 0: (null) xilinx-dp-snd-codec-dai-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: monitor [DisplayPort monitor], device 1: (null) xilinx-dp-snd-codec-dai-1 []
Subdevices: 1/1
Subdevice #0: subdevice #0

In this example, card number 0 is being used for playback device for display port channel 0 and device id is 0, so hw:0,0 can be used for selecting display port channel 0 as a playback device using --audio-output option.

PulseAudio sound device names for capture devices

pactl list short sources 
alsa_input.usb-046d_HD_Pro_Webcam_C920_758B5BFF-02.analog-stereo ...

In this example, alsa_input.usb-046d_HD_Pro_Webcam_C920_758B5BFF-02.analog-stereo is the name of audio capture device which can be selected using -i option.

PulseAudio sound device names playback devices

pactl list short sinks
alsa_output.platform-fd4a0000.zynqmp-display_zynqmp_dp_snd_card. analog-stereo ...

In this example, alsa_output.platform-fd4a0000.zynqmp-display_zynqmp_dp_snd_card.analog-stereo is the name of audio playback device which can be selected using --audio-output option.