Skip to content

How can I identify which /dev file is associated with a specific device? (microphone)

I want to know what /dev file is associated with my front microphone jack, how can I do that?

Relevant information:

aplay -L
sysdefault:CARD=PCH
HDA Intel PCH, ALC892 Analog
Default Audio Device
front:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
Front speakers
ls /dev/snd
by-path/ controlC1 hwC1D0 pcmC0D0p pcmC0D2c 
pcmC1D7p pcmC1D9p timer controlC0  hwC0D2
pcmC0D0c pcmC0D1p pcmC1D3p pcmC1D8p seq
6 points9 comments
Open on Reddit
About this post
Posted
Archived
Score
6 · 100% up
Kind
Text
ID
424309

Author

5
posts
15
comments
2
media
View profile

9 comments

Assuming there is plug detection, could you just plug the mic in then dmesg?

3 points

Out of curiosity, what are you using the /dev entry for?

1 points

I wanted to try something like this and I wanted to see if I could do it with Gqrx.

I was trying to tell Gqrx from which device to get the input from

2 points
[parker@x3720 ~]$ ls /dev/snd/by-path/pci-0000\:0
pci-0000:00:05.0  pci-0000:02:00.1  

Relevant lspci

00:05.0 Audio device: NVIDIA Corporation MCP61 High Definition Audio (rev a2)
02:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Device aac0

The by-path entries symlink to the /dev/snd entry

[parker@x3720 ~]$ ls -lah /dev/snd/by-path/pci-0000\:00\:05.0 
lrwxrwxrwx 1 root root 12 Jan 22 18:58 /dev/snd/by-path/pci-0000:00:05.0 -> ../controlC0
1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.