sound tests: Fix format specified for kevent.data
Reported by: CI
Fixes: dd81b19ef236 ("sound tests: Test polling")
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
net-p2p/rtorrent: Fix pkg-message
Fix pkg-message since 7d8f99a (drop EXAMPLES, add rc.d script) and point
it to correct location.
Reported by: Jakob Breivik Grimstveit via e-mail
MFH: 2025Q4
(cherry picked from commit 2cf6092ce37d12311ddd14fd42c946a4dee47214)
net-p2p/rtorrent: Fix pkg-message
Fix pkg-message since 7d8f99a (drop EXAMPLES, add rc.d script) and point
it to correct location.
Reported by: Jakob Breivik Grimstveit via e-mail
MFH: 2025Q4
virtual_oss(8): Improve hw.snd.basename_clone handling
If we request a /dev/dsp virtual_oss(8) device, we have to replace the
sound(4) one by first disabling hw.snd.basename_clone. This sysctl tells
sound(4) to not create the /dev/dsp alias for the default device. There
are currently two issues with the way this is handled by virtual_oss(8),
however:
1. It uses system(3) instead of sysctlbyname(3).
2. It does not restore hw.snd.basename_clone to its original value, so
if prior to virtual_oss(8) running, hw.snd.basename_clone was enabled
(which is the case by default), and it is closed at some point,
hw.snd.basename_clone stays disabled, which is annoying, because
users have to manually restore it, otherwise applications that open
the default device (i.e., most) will not work.
Fix both issues.
Sponsored by: The FreeBSD Foundation
[3 lines not shown]
sound: Retire DSP_DEFAULT_SPEED
Only a few drivers use this, but this is not really our "default" speed.
And even those drivers most likely override that value at some point
once CHANNEL_SETSPEED() has been called.
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D53562
sound: Retire feeder_register_root()
We can now use feeder_register().
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D53560
sound: Retire unused feeder_printchain()
We can print it with "sndctl feederchain".
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D53559
sound: Remove unnecessary initializations in feeder_create()
We do not need to zero out fields since the struct is allocated with
M_ZERO. Also we no longer need to have a special case for the root
feeder.
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D53558
sound: Retire pcm_feederdesc->type
This is always accessed from pcm_feeder->desc->type. Instead of
duplicating this field, we can remove it from pcm_feederdesc, and access
it through pcm_feeder->class->type.
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D53557
sound: Retire feeder_class->desc
The only field we care about is pcm_feederdesc->type, so keep that one
only and do not embed the whole pcm_feederdesc.
While here, make the feeder type enum into a named one and use it as
feeder_class->type's type.
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D53556
sound: Retire feedertab_entry
Have an SLIST of feeder_class directly. This way we simplify the code,
and also avoid the additional malloc()/free() for each entry.
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D53554
sound: Simplify feeder_getclass()
With the parameters we provide feeder_getclass(), the only thing we
really care about is the feeder's class type. We can simplify (and make
the code more readable) that by simply passing the type to
feeder_getclass(). Apart from being simpler, we can now also retire
feedertab_entry->desc and cmpdesc().
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D53553
sound: Simplify pcm_feederdesc initialization
Currently we initialize a pcm_feederdesc array for every feeder, which
is then used by FEEDER_DECLARE(). However, there is no reason for this
to be an array, as each feeder has only one description. Additionally,
since the only thing we define in that array is the feeder type, remove
the pcm_feederdesc definitions altogether, and instead pass their type
to FEEDER_DECLARE() directly, which will then initialize the
pcm_feederdesc.
This also simplifies feeder_register().
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D53551