Re: freebsd hdmi audi

From: Steven Friedrich <freebsdlouisville_at_gmail.com>
Date: Thu, 04 Jul 2024 16:54:31 UTC
Here's a run of my testSound shell script:

testSound
Begin FreeBSD testSound on Envy
************************************************************
FreeBSD Audio Driver
Installed devices:
pcm0: <Realtek ALC671 (Rear Analog)> on hdaa0 (1p:1v/1r:1v)
         snddev flags=0x2e2<AUTOVCHAN,BUSY,MPSAFE,REGISTERED,VPC>
         [pcm0:play:dsp0.p0]: spd 48000, fmt 0x00200010, flags 
0x00002100, 0x00000004
         interrupts 0, underruns 0, feed 0, 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_play:dsp0.vp0]: spd 8000, fmt 
0x00100008, flags 0x10000000, 0x00000000
         interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:0/0/0]
         channel flags=0x10000000<VIRTUAL>
         {userland} -> feeder_root(0x00000000) -> {hardware}
         [pcm0:record:dsp0.r0]: spd 48000, fmt 0x00200010, flags 
0x00002100, 0x00000005
         interrupts 0, overruns 0, feed 0, 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_record:dsp0.vr0]: spd 8000, 
fmt 0x00100008, flags 0x10000000, 0x00000000
         interrupts 0, overruns 0, feed 0, hfree 0, sfree 0 
[b:0/0/0|bs:0/0/0]
         channel flags=0x10000000<VIRTUAL>
         {hardware} -> feeder_root(0x00000000) -> {userland}
pcm1: <Realtek ALC671 (Analog)> on hdaa0 (1p:1v/1r:1v)
         snddev flags=0x2e2<AUTOVCHAN,BUSY,MPSAFE,REGISTERED,VPC>
         [pcm1:play:dsp1.p0]: spd 48000, fmt 0x00200010, flags 
0x00002100, 0x00000004
         interrupts 0, underruns 0, feed 0, ready 0 
[b:2048/1024/2|bs:2048/1024/2]
         channel flags=0x2100<BUSY,HAS_VCHAN>
         {userland} -> feeder_mixer(0x00200010) -> {hardware}
         pcm1:play:dsp1.p0[pcm1:virtual_play:dsp1.vp0]: spd 8000, fmt 
0x00100008, flags 0x10000000, 0x00000000
         interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:0/0/0]
         channel flags=0x10000000<VIRTUAL>
         {userland} -> feeder_root(0x00000000) -> {hardware}
         [pcm1:record:dsp1.r0]: spd 48000, fmt 0x00200010, flags 
0x00002100, 0x00000005
         interrupts 0, overruns 0, feed 0, 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_record:dsp1.vr0]: spd 8000, 
fmt 0x00100008, flags 0x10000000, 0x00000000
         interrupts 0, overruns 0, feed 0, hfree 0, sfree 0 
[b:0/0/0|bs:0/0/0]
         channel flags=0x10000000<VIRTUAL>
         {hardware} -> feeder_root(0x00000000) -> {userland}
pcm2: <Intel Kaby Lake (HDMI/DP 8ch)> on hdaa1 (1p:1v/0r:0v) default
         snddev 
flags=0x2e7<SIMPLEX,AUTOVCHAN,SOFTPCMVOL,BUSY,MPSAFE,REGISTERED,VPC>
         [pcm2:play:dsp2.p0]: spd 48000, fmt 0x00200010, flags 
0x00006100, 0x00000004
         interrupts 0, underruns 0, feed 0, ready 0 
[b:2048/1024/2|bs:2048/1024/2]
         channel flags=0x6100<BUSY,HAS_VCHAN,VCHAN_PASSTHROUGH>
         {userland} -> feeder_mixer(0x00200010) -> {hardware}
         pcm2:play:dsp2.p0[pcm2:virtual_play:dsp2.vp0]: spd 8000, fmt 
0x00100008, flags 0x10000000, 0x00000000
         interrupts 0, underruns 0, feed 0, ready 0 [b:0/0/0|bs:0/0/0]
         channel flags=0x10000000<VIRTUAL>
         {userland} -> feeder_root(0x00000000) -> {hardware}
No devices installed from userspace.

Default Sound device=2

/dev/dsp2
vol.volume: 1.00:1.00 -> 1.00:1.00
rec.volume: 0.00:0.00 -> 0.00:0.00
pcm0:mixer: <Realtek ALC671 (Rear Analog)> on hdaa0 (play/rec)
     vol       = 1.00:1.00     pbk
     pcm       = 1.00:1.00     pbk
     speaker   = 0.58:0.58     rec
     line      = 0.01:0.01     rec src
     mix       = 0.74:0.74     rec
     rec       = 0.00:0.00     pbk
     igain     = 0.00:0.00     pbk
     ogain     = 1.00:1.00     pbk
vol.volume: 1.00:1.00 -> 1.00:1.00
mic.volume: 0.00:0.00 -> 0.00:0.00
rec.volume: 0.00:0.00 -> 0.00:0.00
pcm1:mixer: <Realtek ALC671 (Analog)> on hdaa0 (play/rec)
     vol       = 1.00:1.00     pbk
     pcm       = 1.00:1.00     pbk
     mic       = 0.00:0.00     rec src
     rec       = 0.00:0.00     pbk
     igain     = 0.00:0.00     pbk
     ogain     = 1.00:1.00     pbk
vol.volume: 1.00:1.00 -> 1.00:1.00
pcm2:mixer: <Intel Kaby Lake (HDMI/DP 8ch)> on hdaa1 (play) (default)
     vol       = 1.00:1.00     pbk
     pcm       = 1.00:1.00     pbk
pcm0: <Realtek ALC671 (Rear Analog)> on hdaa0 (1p:1v/1r:1v)
pcm1: <Realtek ALC671 (Analog)> on hdaa0 (1p:1v/1r:1v)
pcm2: <Intel Kaby Lake (HDMI/DP 8ch)> on hdaa1 (1p:1v/0r:0v) default
End   FreeBSD testSound on Envy
************************************************************

On 7/4/24 11:49, Dag-Erling Smørgrav wrote:
> Steven Friedrich <freebsdlouisville@gmail.com> writes:
>> Installed devices:
>> pcm0: <Realtek ALC671 (Rear Analog)> on hdaa0 (1p:1v/1r:1v)
>> [...]
>> pcm1: <Realtek ALC671 (Analog)> on hdaa0 (1p:1v/1r:1v)
>> [...]
>> pcm2: <Intel Kaby Lake (HDMI/DP 8ch)> on hdaa1 (1p:1v/0r:0v) default
>> [...]
> add
>
>      hw.snd.default_unit=2
>
> to /etc/sysctl.conf and reboot.
>
> DES