[Bug 174835] [uaudio] uaudio fails to create pcm/dsp device file

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 23 Oct 2024 15:39:08 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=174835

--- Comment #6 from Christos Margiolis <christos@freebsd.org> ---
(In reply to porok777 from comment #4)
I do not think there is anything wrong here. If I understand correctly, the
initial report stated that there is no /dev/dsp* device created for the uaudio
device. That's because at the time and up until recently [1], sound(4) would
create device nodes for each _channel_ opened (and alias them to /dev/dsp*
devices) on the fly, so not seeing any devices was to be expected.

Currently, however, we do create actual /dev/dsp* nodes during device attach,
one per-device (instead of one per-channel as was the case), so you should be
able to see them. In your case, /dev/dsp5 should correspond to the device in
question.

> pcm5:record:dsp5.r0 can be accessed and used to record (at least works with programs using  audio/miniaudio), but is not listed on mixer(8)

"pcm5:record:dsp5.r0" is an internal identifier for the channel being consumed.
The "devices" printed by mixer(8) (e.g "vol", "pcm") are used to control
different aspects of the sound device (e.g global volume, recording volume,
gain, etc.), and do not map to a specific channel.

In case I am misunderstanding your problem, please do elaborate further on what
the problem is exactly.


[1]
https://cgit.freebsd.org/src/commit/?id=e8c0d15a64fadb4a330f2da7244becaac161bb70

-- 
You are receiving this mail because:
You are the assignee for the bug.