Skip to content

Instantly share code, notes, and snippets.

@mizhka
Created September 23, 2020 11:26
Show Gist options
  • Save mizhka/730a8efb7d7b5f25d8f2f7c9e4a7520b to your computer and use it in GitHub Desktop.
Save mizhka/730a8efb7d7b5f25d8f2f7c9e4a7520b to your computer and use it in GitHub Desktop.
% sysctl dev.pcm
dev.pcm.1.bitperfect: 0
dev.pcm.1.buffersize: 65536
dev.pcm.1.rec.vchanformat: s16le:2.0
dev.pcm.1.rec.vchanrate: 48000
dev.pcm.1.rec.vchanmode: fixed
dev.pcm.1.rec.vchans: 1
dev.pcm.1.rec.autosrc: 2
dev.pcm.1.rec.32bit: 24
dev.pcm.1.%parent: hdaa0
dev.pcm.1.%pnpinfo:
dev.pcm.1.%location: nid=18
dev.pcm.1.%driver: pcm
dev.pcm.1.%desc: Realtek ALC269 (Internal Analog Mic)
dev.pcm.0.bitperfect: 0
dev.pcm.0.buffersize: 65536
dev.pcm.0.rec.vchanformat: s16le:2.0
dev.pcm.0.rec.vchanrate: 48000
dev.pcm.0.rec.vchanmode: fixed
dev.pcm.0.rec.vchans: 1
dev.pcm.0.rec.autosrc: 2
dev.pcm.0.rec.32bit: 24
dev.pcm.0.play.vchanformat: s16le:2.0
dev.pcm.0.play.vchanrate: 48000
dev.pcm.0.play.vchanmode: fixed
dev.pcm.0.play.vchans: 3
dev.pcm.0.play.32bit: 24
dev.pcm.0.%parent: hdaa0
dev.pcm.0.%pnpinfo:
dev.pcm.0.%location: nid=20,21,24
dev.pcm.0.%driver: pcm
dev.pcm.0.%desc: Realtek ALC269 (Analog 2.0+HP/2.0)
dev.pcm.%parent:
hdac0 pnpinfo vendor=0x8086 device=0x1e20 subvendor=0x17aa subdevice=0x21f6 class=0x040300 at slot=27 function=0 dbsf=pci0:0:27:0 handle=\_SB_.PCI0.HDEF
Interrupt request lines:
0x22
I/O memory addresses:
0xf3a30000-0xf3a33fff
hdacc0 pnpinfo vendor=0x10ec device=0x0269 revision=0x02 stepping=0x03 at cad=0
hdaa0 pnpinfo type=0x01 subsystem=0x17aa21f6 at nid=1
pcm0 at nid=20,21,24
pcm1 at nid=18
dev.hdaa.0.init_clear: 0
dev.hdaa.0.reconfig: 0
dev.hdaa.0.gpo_config:
dev.hdaa.0.gpo_state:
dev.hdaa.0.gpio_config: 0=keep 1=keep
dev.hdaa.0.gpio_state: 0=disabled 1=disabled
dev.hdaa.0.gpi_state:
dev.hdaa.0.config: forcestereo,ivref50,ivref80,ivref100,ivref,vref
dev.hdaa.0.nid35: audio mixer
Widget cap: 0x0020010b STEREO
Association: 1 (0x0001)
OSS: speaker, mic, mix
Input amp: 0x80000000 mute=1 step=0 size=0 offset=0 (0/0dB)
Connections: 6
+ <- nid=24 [pin: Mic (Black Jack)]
+ [DISABLED] <- nid=25 [pin: Speaker (None)] [DISABLED]
+ [DISABLED] <- nid=26 [pin: Speaker (None)] [DISABLED]
+ [DISABLED] <- nid=27 [pin: Speaker (None)] [DISABLED]
+ <- nid=29 [beep widget]
+ <- nid=11 [audio mixer]
dev.hdaa.0.nid34: audio mixer
Widget cap: 0x0020010b STEREO
Association: 2 (0x0001)
OSS: speaker, monitor
Input amp: 0x80000000 mute=1 step=0 size=0 offset=0 (0/0dB)
Connections: 7
+ [DISABLED] <- nid=24 [pin: Mic (Black Jack)]
+ [DISABLED] <- nid=25 [pin: Speaker (None)] [DISABLED]
+ [DISABLED] <- nid=26 [pin: Speaker (None)] [DISABLED]
+ [DISABLED] <- nid=27 [pin: Speaker (None)] [DISABLED]
+ <- nid=29 [beep widget]
+ [DISABLED] <- nid=11 [audio mixer]
+ <- nid=18 [pin: Mic (Fixed)]
dev.hdaa.0.nid33: vendor widget [DISABLED]
Widget cap: 0x00f00000
dev.hdaa.0.nid32: vendor widget [DISABLED]
Widget cap: 0x00f00040 PROC
dev.hdaa.0.nid31: vendor widget [DISABLED]
Widget cap: 0x00f00000
dev.hdaa.0.nid30_original: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
dev.hdaa.0.nid30_config: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
dev.hdaa.0.nid30: pin: Speaker (None) [DISABLED]
Widget cap: 0x00400781 PWR DIGITAL UNSOL STEREO
Pin cap: 0x00000014 PDC OUT
Pin config: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
Pin control: 0x00000040 OUT
Connections: 1
+ <- nid=6 [audio output] [DISABLED]
dev.hdaa.0.nid29_original: 0x40138205 as=0 seq=5 device=Speaker conn=None ctype=ATAPI loc=0x00 color=Purple misc=2
dev.hdaa.0.nid29_config: 0x40138205 as=0 seq=5 device=Speaker conn=None ctype=ATAPI loc=0x00 color=Purple misc=2
dev.hdaa.0.nid29: beep widget
Widget cap: 0x00700400 PWR
Association: -2 (0x0000)
OSS: speaker (speaker)
Pin cap: 0x00000020 IN
Pin config: 0x40138205 as=0 seq=5 device=Speaker conn=None ctype=ATAPI loc=0x00 color=Purple misc=2
Pin control: 0x00000020 IN
dev.hdaa.0.nid28: vendor widget [DISABLED]
Widget cap: 0x00f00000
dev.hdaa.0.nid27_original: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
dev.hdaa.0.nid27_config: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
dev.hdaa.0.nid27: pin: Speaker (None) [DISABLED]
Widget cap: 0x0040058f PWR UNSOL STEREO
Pin cap: 0x00003734 PDC OUT IN VREF[ 50 80 100 GROUND HIZ ]
Pin config: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
Pin control: 0x00000020 IN
Output amp: 0x80000000 mute=1 step=0 size=0 offset=0 (0/0dB)
Input amp: 0x00270300 mute=0 step=3 size=39 offset=0 (0/30dB)
Connections: 2
+ [DISABLED] <- nid=12 [audio mixer] (selected)
+ <- nid=13 [audio mixer] [DISABLED]
dev.hdaa.0.nid26_original: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
dev.hdaa.0.nid26_config: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
dev.hdaa.0.nid26: pin: Speaker (None) [DISABLED]
Widget cap: 0x0040058f PWR UNSOL STEREO
Pin cap: 0x0000373c PDC HP OUT IN VREF[ 50 80 100 GROUND HIZ ]
Pin config: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
Pin control: 0x00000020 IN
Output amp: 0x80000000 mute=1 step=0 size=0 offset=0 (0/0dB)
Input amp: 0x00270300 mute=0 step=3 size=39 offset=0 (0/30dB)
Connections: 2
+ [DISABLED] <- nid=12 [audio mixer] (selected)
+ <- nid=13 [audio mixer] [DISABLED]
dev.hdaa.0.nid25_original: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
dev.hdaa.0.nid25_config: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
dev.hdaa.0.nid25: pin: Speaker (None) [DISABLED]
Widget cap: 0x0040058f PWR UNSOL STEREO
Pin cap: 0x00003734 PDC OUT IN VREF[ 50 80 100 GROUND HIZ ]
Pin config: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
Pin control: 0x00000020 IN
Output amp: 0x80000000 mute=1 step=0 size=0 offset=0 (0/0dB)
Input amp: 0x00270300 mute=0 step=3 size=39 offset=0 (0/30dB)
Connections: 2
+ [DISABLED] <- nid=12 [audio mixer] (selected)
+ <- nid=13 [audio mixer] [DISABLED]
dev.hdaa.0.nid24_original: 0x03a11830 as=3 seq=0 device=Mic conn=Jack ctype=1/8 loc=Left color=Black misc=8
dev.hdaa.0.nid24_config: 0x03a11830 as=3 seq=0 device=Mic conn=Jack ctype=1/8 loc=Left color=Black misc=8
dev.hdaa.0.nid24: pin: Mic (Black Jack)
Widget cap: 0x0040058f PWR UNSOL STEREO
Association: 1 (0x0001)
OSS: mic (mic)
Pin cap: 0x00003734 PDC OUT IN VREF[ 50 80 100 GROUND HIZ ]
Pin config: 0x03a11830 as=3 seq=0 device=Mic conn=Jack ctype=1/8 loc=Left color=Black misc=8
Pin control: 0x00000025 IN VREFs
Output amp: 0x80000000 mute=1 step=0 size=0 offset=0 (0/0dB)
Input amp: 0x00270300 mute=0 step=3 size=39 offset=0 (0/30dB)
Connections: 2
+ [DISABLED] <- nid=12 [audio mixer] (selected)
+ [DISABLED] <- nid=13 [audio mixer] [DISABLED]
dev.hdaa.0.nid23_original: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
dev.hdaa.0.nid23_config: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
dev.hdaa.0.nid23: pin: Speaker (None) [DISABLED]
Widget cap: 0x0040050c PWR
Pin cap: 0x00000010 OUT
Pin config: 0x411111f0 as=15 seq=0 device=Speaker conn=None ctype=1/8 loc=Rear color=Black misc=1
Pin control: 0x00000000
Output amp: 0x80000000 mute=1 step=0 size=0 offset=0 (0/0dB)
Connections: 1
+ [DISABLED] <- nid=15 [audio mixer] [DISABLED]
dev.hdaa.0.nid22: vendor widget [DISABLED]
Widget cap: 0x00f00000
dev.hdaa.0.nid21_original: 0x03211020 as=2 seq=0 device=Headphones conn=Jack ctype=1/8 loc=Left color=Black misc=0
dev.hdaa.0.nid21_config: 0x0321101f as=1 seq=15 device=Headphones conn=Jack ctype=1/8 loc=Left color=Black misc=0
dev.hdaa.0.nid21: pin: Headphones (Black Jack)
Widget cap: 0x0040058d PWR UNSOL STEREO
Association: 0 (0x8000)
Pin cap: 0x0001001c PDC HP OUT EAPD
Pin config: 0x0321101f as=1 seq=15 device=Headphones conn=Jack ctype=1/8 loc=Left color=Black misc=0
Pin control: 0x000000c0 HP OUT
EAPD: 0x00000002 EAPD
Output amp: 0x80000000 mute=1 step=0 size=0 offset=0 (0/0dB)
Connections: 2
+ <- nid=12 [audio mixer] (selected)
+ [DISABLED] <- nid=13 [audio mixer] [DISABLED]
dev.hdaa.0.nid20_original: 0x90170110 as=1 seq=0 device=Speaker conn=Fixed ctype=Analog loc=Internal color=Unknown misc=1
dev.hdaa.0.nid20_config: 0x90170110 as=1 seq=0 device=Speaker conn=Fixed ctype=Analog loc=Internal color=Unknown misc=1
dev.hdaa.0.nid20: pin: Speaker (Fixed)
Widget cap: 0x0040058d PWR UNSOL STEREO
Association: 0 (0x0001)
Pin cap: 0x00010014 PDC OUT EAPD
Pin config: 0x90170110 as=1 seq=0 device=Speaker conn=Fixed ctype=Analog loc=Internal color=Unknown misc=1
Pin control: 0x00000040 OUT
EAPD: 0x00000002 EAPD
Output amp: 0x80000000 mute=1 step=0 size=0 offset=0 (0/0dB)
Connections: 2
+ <- nid=12 [audio mixer] (selected)
+ [DISABLED] <- nid=13 [audio mixer] [DISABLED]
dev.hdaa.0.nid19: vendor widget [DISABLED]
Widget cap: 0x00f00000
dev.hdaa.0.nid18_original: 0x90a60140 as=4 seq=0 device=Mic conn=Fixed ctype=Digital loc=Internal color=Unknown misc=1
dev.hdaa.0.nid18_config: 0x90a60140 as=4 seq=0 device=Mic conn=Fixed ctype=Digital loc=Internal color=Unknown misc=1
dev.hdaa.0.nid18: pin: Mic (Fixed)
Widget cap: 0x0040040b PWR STEREO
Association: 2 (0x0001)
OSS: monitor (monitor)
Pin cap: 0x00000020 IN
Pin config: 0x90a60140 as=4 seq=0 device=Mic conn=Fixed ctype=Digital loc=Internal color=Unknown misc=1
Pin control: 0x00000020 IN
Input amp: 0x00270300 mute=0 step=3 size=39 offset=0 (0/30dB)
dev.hdaa.0.nid17: vendor widget [DISABLED]
Widget cap: 0x00f00000
dev.hdaa.0.nid16: vendor widget [DISABLED]
Widget cap: 0x00f00000
dev.hdaa.0.nid15: audio mixer [DISABLED]
Widget cap: 0x0020010a
Input amp: 0x80000000 mute=1 step=0 size=0 offset=0 (0/0dB)
Connections: 2
+ [DISABLED] <- nid=2 [audio output]
+ [DISABLED] <- nid=11 [audio mixer]
dev.hdaa.0.nid14: vendor widget [DISABLED]
Widget cap: 0x00f00000
dev.hdaa.0.nid13: audio mixer [DISABLED]
Widget cap: 0x0020010b STEREO
Association: -2 (0x0000)
Input amp: 0x80000000 mute=1 step=0 size=0 offset=0 (0/0dB)
Connections: 2
+ [DISABLED] <- nid=3 [audio output] [DISABLED]
+ [DISABLED] <- nid=11 [audio mixer]
dev.hdaa.0.nid12: audio mixer
Widget cap: 0x0020010b STEREO
Association: 0 (0x8001)
OSS: pcm, mix
Input amp: 0x80000000 mute=1 step=0 size=0 offset=0 (0/0dB)
Connections: 2
+ <- nid=2 [audio output]
+ <- nid=11 [audio mixer]
dev.hdaa.0.nid11: audio mixer
Widget cap: 0x0020010b STEREO
Association: 1 (0x0001)
OSS: mix (mix)
Input amp: 0x80051f17 mute=1 step=31 size=5 offset=23 (-34/12dB)
Connections: 5
+ <- nid=24 [pin: Mic (Black Jack)]
+ [DISABLED] <- nid=25 [pin: Speaker (None)] [DISABLED]
+ [DISABLED] <- nid=26 [pin: Speaker (None)] [DISABLED]
+ [DISABLED] <- nid=27 [pin: Speaker (None)] [DISABLED]
+ <- nid=29 [beep widget]
dev.hdaa.0.nid10: vendor widget [DISABLED]
Widget cap: 0x00f00000
dev.hdaa.0.nid9: audio input
Widget cap: 0x0010051b PWR STEREO
Association: 2 (0x0001)
Stream cap: 0x00000001 PCM
PCM cap: 0x000e0560 16 20 24 bits, 44 48 96 192 KHz
Input amp: 0x80023f17 mute=1 step=63 size=2 offset=23 (-17/30dB)
Connections: 1
+ <- nid=34 [audio mixer]
dev.hdaa.0.nid8: audio input
Widget cap: 0x0010051b PWR STEREO
Association: 1 (0x0001)
Stream cap: 0x00000001 PCM
PCM cap: 0x000e0560 16 20 24 bits, 44 48 96 192 KHz
Input amp: 0x80023f17 mute=1 step=63 size=2 offset=23 (-17/30dB)
Connections: 1
+ <- nid=35 [audio mixer]
dev.hdaa.0.nid7: vendor widget [DISABLED]
Widget cap: 0x00f00000
dev.hdaa.0.nid6: audio output [DISABLED]
Widget cap: 0x00000611 PWR DIGITAL STEREO
Stream cap: 0x00000001 PCM
PCM cap: 0x000e05f0 16 20 24 bits, 32 44 48 88 96 192 KHz
dev.hdaa.0.nid5: vendor widget [DISABLED]
Widget cap: 0x00f00000
dev.hdaa.0.nid4: vendor widget [DISABLED]
Widget cap: 0x00f00000
dev.hdaa.0.nid3: audio output [DISABLED]
Widget cap: 0x0000041d PWR STEREO
Stream cap: 0x00000001 PCM
PCM cap: 0x000e0560 16 20 24 bits, 44 48 96 192 KHz
Output amp: 0x00025757 mute=0 step=87 size=2 offset=87 (-65/0dB)
dev.hdaa.0.nid2: audio output
Widget cap: 0x0000041d PWR STEREO
Association: 0 (0x8001)
OSS: pcm (pcm)
Stream cap: 0x00000001 PCM
PCM cap: 0x000e0560 16 20 24 bits, 44 48 96 192 KHz
Output amp: 0x00025757 mute=0 step=87 size=2 offset=87 (-65/0dB)
dev.hdaa.0.%parent: hdacc0
dev.hdaa.0.%pnpinfo: type=0x01 subsystem=0x17aa21f6
dev.hdaa.0.%location: nid=1
dev.hdaa.0.%driver: hdaa
dev.hdaa.0.%desc: Realtek ALC269 Audio Function Group
dev.hdaa.%parent:
# cat /dev/sndstat
FreeBSD Audio Driver (64bit 2009061500/amd64)
Installed devices:
pcm0: <Realtek ALC269 (Analog 2.0+HP/2.0)> on hdaa0 (1p:3v/1r:1v) default
snddev flags=0x2e2<AUTOVCHAN,BUSY,MPSAFE,REGISTERED,VPC>
[pcm0:play:dsp0.p0]: spd 48000, fmt 0x00200010, flags 0x00002100, 0x00000004
interrupts 1414, underruns 0, feed 1414, ready 0 [b:2048/1024/2|bs:2048/1024/2]
channel flags=0x2100<BUSY,HAS_VCHAN>
{userland} -> feeder_mixer(0x00200010) -> {hardware}
pcm0:play:dsp0.p0[pcm0:virtual:dsp0.vp0]: spd 44100/48000, fmt 0x00200010, flags 0x10000000, 0x00000029
interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:8192/1024/8]
channel flags=0x10000000<VIRTUAL>
{userland} -> feeder_root(0x00200010) -> feeder_volume(0x00200010) -> feeder_rate(0x00200010 q:1 44100 -> 48000) -> {hardware}
pcm0:play:dsp0.p0[pcm0:virtual:dsp0.vp1]: spd 44100/48000, fmt 0x00200010, flags 0x10000000, 0x00000029
interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:8192/1024/8]
channel flags=0x10000000<VIRTUAL>
{userland} -> feeder_root(0x00200010) -> feeder_volume(0x00200010) -> feeder_rate(0x00200010 q:1 44100 -> 48000) -> {hardware}
pcm0:play:dsp0.p0[pcm0:virtual:dsp0.vp2]: spd 48000, fmt 0x00200010, flags 0x10000000, 0x00000021
interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:8192/1024/8]
channel flags=0x10000000<VIRTUAL>
{userland} -> feeder_root(0x00200010) -> feeder_volume(0x00200010) -> {hardware}
[pcm0:record:dsp0.r0]: spd 48000, fmt 0x00200010, flags 0x00002100, 0x00000005
interrupts 1242, overruns 0, feed 2484, hfree 512, sfree 512 [b:512/256/2|bs:512/256/2]
channel flags=0x2100<BUSY,HAS_VCHAN>
{hardware} -> feeder_root(0x00200010) -> feeder_mixer(0x00200010) -> {userland}
pcm0:record:dsp0.r0[pcm0:virtual:dsp0.vr0]: spd 44100/48000, fmt 0x00200010, flags 0x10000000, 0x00000029
interrupts 0, overruns 0, feed 0, hfree 0, sfree 32768 [b:0/0/0|bs:32768/256/128]
channel flags=0x10000000<VIRTUAL>
{hardware} -> feeder_root(0x00200010) -> feeder_rate(0x00200010 q:1 48000 -> 44100) -> feeder_volume(0x00200010) -> {userland}
pcm1: <Realtek ALC269 (Internal Analog Mic)> on hdaa0 (0p:0v/1r:1v)
snddev flags=0x2e3<SIMPLEX,AUTOVCHAN,BUSY,MPSAFE,REGISTERED,VPC>
[pcm1:record:dsp1.r0]: spd 48000, fmt 0x00200010, flags 0x00002100, 0x00000005
interrupts 31105, overruns 0, feed 62210, hfree 512, sfree 512 [b:512/256/2|bs:512/256/2]
channel flags=0x2100<BUSY,HAS_VCHAN>
{hardware} -> feeder_root(0x00200010) -> feeder_mixer(0x00200010) -> {userland}
pcm1:record:dsp1.r0[pcm1:virtual:dsp1.vr0]: spd 44100/48000, fmt 0x00200010, flags 0x10000000, 0x00000029
interrupts 0, overruns 0, feed 0, hfree 0, sfree 32768 [b:0/0/0|bs:32768/256/128]
channel flags=0x10000000<VIRTUAL>
{hardware} -> feeder_root(0x00200010) -> feeder_rate(0x00200010 q:1 48000 -> 44100) -> feeder_volume(0x00200010) -> {userland}
No devices installed from userspace.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment