FreeBSD/src 82a066bsys/conf files

snd_dummy: Fix sys/conf/files entry

Fixes:          72e85a4d977e ("snd_dummy: Add to sys/conf/files and sys/conf/NOTES")
Report by:      CI
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    emaste
Differential Revision:  https://reviews.freebsd.org/D56065
DeltaFile
+1-1sys/conf/files
+1-11 files

FreeBSD/src cbac897sys/netinet6 in6_mcast.c

in6_mcast: Acquire ref to ifp and exit epoch earlier in sysctl

This patch reduces the number of witness warnings during ifmcstat(8) calls.

Reviewed by: glebius, zlei
Differential Revision: https://reviews.freebsd.org/D56052
DeltaFile
+4-4sys/netinet6/in6_mcast.c
+4-41 files

FreeBSD/src e6a77f8sys/fs/cd9660 cd9660_rrip.c

cd9660: Partial style sweep of Rock Ridge code

This mostly just fixes indentation and continuations and adds spaces
after commas and around binary operators and parentheses around return
values, but cd9660_rrip_extref() was so egregiously unreadable I
rewrote it.  Note that this was done manually, so I may have missed a
few spots, and I made no attempt to fix over-long lines.

MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D55865
DeltaFile
+96-90sys/fs/cd9660/cd9660_rrip.c
+96-901 files

FreeBSD/src fa03f93contrib/file/magic/Magdir filesystems

file: Parse some UFS2 flags

This allows libmagic to recognize the FS_DOSOFTDEP, FS_SUJ, FS_GJOURNAL,
FS_ACLS, and FS_NFS4ACLS flags on a UFS2 file system.

Accepted upstream as 482259e5e952.

MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D56010
DeltaFile
+5-0contrib/file/magic/Magdir/filesystems
+5-01 files

FreeBSD/src 828de70usr.sbin/syslogd syslogd.c

syslogd: Allow killing when in foreground

Normally, syslogd reacts only to SIGTERM, and ignores SIGINT and SIGQUIT
unless in debug mode.  Extend that to also apply when running in the
foreground.  Take this opportunity to comment the event loop.

MFC after:      1 week
Reviewed by:    jfree
Differential Revision:  https://reviews.freebsd.org/D55886
DeltaFile
+8-2usr.sbin/syslogd/syslogd.c
+8-21 files

FreeBSD/src 2e1cf24sys/dev/sound/pcm channel.h

sound: Remove unimplemented chn_reinit() definition

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
DeltaFile
+0-1sys/dev/sound/pcm/channel.h
+0-11 files

FreeBSD/src d048cecsys/dev/sound/pcm ac97.c

sound: Remove dead code in pcm/ac97.c

ac97_uninitmixer() does not exist also.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D56045
DeltaFile
+0-4sys/dev/sound/pcm/ac97.c
+0-41 files

FreeBSD/src 72e85a4sys/conf NOTES files

snd_dummy: Add to sys/conf/files and sys/conf/NOTES

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D56040
DeltaFile
+2-0sys/conf/NOTES
+1-0sys/conf/files
+3-02 files

FreeBSD/src 127aa05sys/dev/sound/pcm channel.c matrix.h

sound: Retire CHN_SETVOLUME() and use chn_setvolume_matrix()

CHN_SETVOLUME() is just a wrapped around chn_setvolume_matrix() anyway,
so use it directly.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D55992
DeltaFile
+2-2sys/dev/sound/pcm/channel.c
+1-2sys/dev/sound/pcm/matrix.h
+0-2sys/dev/sound/pcm/channel.h
+3-63 files

FreeBSD/src f190fadsys/dev/sound sndstat.c, sys/dev/sound/pcm dsp.c mixer.c

sound: Retire CHN_GETVOLUME() and use chn_getvolume_matrix()

CHN_GETVOLUME() is just a wrapped around chn_getvolume_matrix() anyway,
so use it directly.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D55991
DeltaFile
+4-4sys/dev/sound/pcm/dsp.c
+2-2sys/dev/sound/pcm/mixer.c
+2-2sys/dev/sound/sndstat.c
+0-1sys/dev/sound/pcm/channel.h
+8-94 files

FreeBSD/src edad981sys/dev/sound/pcm ac97.c

sound: Address some XXX comments regarding AC'97 IDs

These seem harmless to address. Not sure why the original author did not
just assign the appropriate names if he knew they were wrong.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D56044
DeltaFile
+2-12sys/dev/sound/pcm/ac97.c
+2-121 files

FreeBSD/src 6b91c8dsys/dev/sound/pcm feeder_rate.c

sound: Retire Z_PARANOID

It is always defined.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D56042
DeltaFile
+0-6sys/dev/sound/pcm/feeder_rate.c
+0-61 files

FreeBSD/src 71c46c8sys/tools/sound emu10k1-mkalsa.sh

sound: Retire unused emu10k1-mkalsa.sh

It is a legacy script which is no longer used. Its utility is also
unknown.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D56043
DeltaFile
+0-20sys/tools/sound/emu10k1-mkalsa.sh
+0-201 files

FreeBSD/src 4324e0fsys/dev/sound/pcm buffer.c

sound: Remove SND_DIAGNOSTIC section in buffer.c

The purpose of this has not been documented, but it seems like it makes
it possible to view the maximum number of bytes that passed to
sndbuf_feed(), as well as the maximum number of cycles taken inside its
main loop. These do not seem particularly useful anymore.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D55989
DeltaFile
+0-26sys/dev/sound/pcm/buffer.c
+0-261 files

FreeBSD/src 0ee9515sys/dev/sound/pcm feeder_rate.c

sound: Remove most Z_RATE_* aliases

They introduce an extra level of abstraction for no reason at all.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D56041
DeltaFile
+13-24sys/dev/sound/pcm/feeder_rate.c
+13-241 files

FreeBSD/src d171d5bsys/dev/sound/pcm dsp.c channel.h

sound: Retire CHN_GETMUTE() and use chn_getmute_matrix()

chn_getmute_matrix() does what CHN_GETMUTE() does, but with a few
additional checks.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D55993
DeltaFile
+3-2sys/dev/sound/pcm/dsp.c
+0-2sys/dev/sound/pcm/channel.h
+3-42 files

FreeBSD/src 0b7f959sys/dev/sound/pcm channel.h

sound: Always use chn_getvolume_matrix()

There is no reason not to use it. We do it already with CHN_SETVOLUME().
chn_getvolume_matrix() is the same as the non-INVARIANTS
CHN_GETVOLUME(), just without the additional KASSERT
chn_getvolume_matrix() provides.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D55990
DeltaFile
+0-4sys/dev/sound/pcm/channel.h
+0-41 files

FreeBSD/src 6755f55sys/dev/sound/pcm feeder_rate.c feeder_volume.c

sound: Remove endianness checks for format table declarations

This a legacy thing that is not needed anymore. We can support all of
them just fine.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D55939
DeltaFile
+0-8sys/dev/sound/pcm/feeder_rate.c
+0-8sys/dev/sound/pcm/feeder_volume.c
+0-162 files

FreeBSD/src 712bd9bsys/dev/sound/pcm matrix.h

sound: Retire SND_MULTICHANNEL

SND_MULTICHANNEL is always defined, so SND_CHN_MAX will also always be
8. Apart from the fact that there is no other place in the code that
touches SND_MULTICHANNEL, there is also no good reason nowadays to set
SND_CHN_MAX to 2.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D55934
DeltaFile
+0-7sys/dev/sound/pcm/matrix.h
+0-71 files

FreeBSD/src a49e925sys/dev/sound/midi midi.c

sound: Match midi_write() return values with midi_read()

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D55920
DeltaFile
+1-1sys/dev/sound/midi/midi.c
+1-11 files

FreeBSD/src b9f9fc4sys/dev/sound/pcm channel.c

sound: Do not create root feeder in chn_init()

The feeder chain gets destroyed when feeder_chain() is called, which is
after the chn_reset() call in chn_init() further down for primary chans,
or vchan_create() for vchans. This makes the root feeder creation in
chn_init() essentially a no-op. Remove it altogether and let
feeder_chain() after chn_reset() take care of creating the feeder
properly. It creates the root one as well.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D55941
DeltaFile
+0-12sys/dev/sound/pcm/channel.c
+0-121 files

FreeBSD/src 9318336sys/conf NOTES, sys/dev/sound/pcm feeder.h feeder_rate.c

sound: Retire SND_FEEDER_MULTIFORMAT and SND_FEEDER_FULL_MULTIFORMAT

There is no reason to have these legacy controls anymore, all these
formats can be handled just fine nowadays.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D55937
DeltaFile
+0-18sys/dev/sound/pcm/feeder.h
+4-8sys/dev/sound/pcm/feeder_rate.c
+4-8sys/dev/sound/pcm/feeder_volume.c
+1-11sys/dev/sound/pcm/feeder_chain.c
+0-8sys/conf/NOTES
+0-3sys/dev/sound/pcm/feeder_mixer.c
+9-561 files not shown
+9-587 files

FreeBSD/src 1263305sys/dev/sound/pcm feeder_rate.c

sound: Retire unused Z_MULTIFORMAT

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
DeltaFile
+0-2sys/dev/sound/pcm/feeder_rate.c
+0-21 files

FreeBSD/src a2fd964sys/dev/sound/usb uaudio.c

snd_uaudio: Retire UAUDIO_MAX_CHAN()

It's a no-op.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D55924
DeltaFile
+2-4sys/dev/sound/usb/uaudio.c
+2-41 files

FreeBSD/src bf0e5d9sys/conf NOTES options, sys/dev/sound/pcm matrix.h

sound: Retire SND_OLDSTEREO

This is a legacy option and does not serve a good purpose anymore.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D55933
DeltaFile
+0-4sys/conf/NOTES
+0-3sys/dev/sound/pcm/matrix.h
+0-1sys/conf/options
+0-83 files

FreeBSD/src 5d311c7sys/conf NOTES options, sys/dev/sound/pcm feeder_mixer.c feeder_chain.c

sound: Retire SND_DEBUG

Not useful anymore.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D55932
DeltaFile
+0-16sys/dev/sound/pcm/feeder_mixer.c
+0-5sys/conf/NOTES
+1-1sys/dev/sound/pcm/feeder_chain.c
+0-1sys/conf/options
+1-234 files

FreeBSD/src e67dbccsys/dev/sound/usb uaudio.c

snd_uaudio: Rename umidi_probe() to umidi_attach()

This performs an attach, not probe.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D55900
DeltaFile
+3-3sys/dev/sound/usb/uaudio.c
+3-31 files

FreeBSD/src 039477dsys/dev/sound/usb uaudio.c

snd_uaudio: Simplify chan->curr_cable calculation in uaudio_bulk_write_callback()

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D55918
DeltaFile
+1-3sys/dev/sound/usb/uaudio.c
+1-31 files

FreeBSD/src 0a7749dsys/dev/sound/usb uaudio.c

snd_uaudio: Rename uaudio_hid_probe() to uaudio_hid_attach()

This makes more sense.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
DeltaFile
+3-3sys/dev/sound/usb/uaudio.c
+3-31 files

FreeBSD/src c09ccfclib/libc/db/hash hash_func.c extern.h

libc/db: Remove unused hash functions in hash_func.c

Prune unused code hidden behind 'notdef', bringing us in sync with
the changes in OpenBSD. Despite the `__default_hash` function pointer
having external linkage, no ABI change is expected since it was
never exported.

Sponsored by:   Klara, Inc.
Differential Revision:  https://reviews.freebsd.org/D55842
Reviewed by:    allanjude, des
MFC after:      2 weeks
DeltaFile
+1-106lib/libc/db/hash/hash_func.c
+1-1lib/libc/db/hash/extern.h
+2-1072 files