HomeFreeBSD

snd_uaudio(4): Fix config detection with defaults set.

Description

snd_uaudio(4): Fix config detection with defaults set.

Let the USB audio descriptor iteration detect configurations with more
channels and larger sample size, even when the following global sysctl
tunables are set to a lower value:

hw.usb.uaudio.default_channels hw.usb.uaudio.default_bits

This improves utility and is closer to the meaning of default.

Also, do not create duplicate sample rate entries.

MFC after: 2 weeks
Reviewed by: christos
Differential Revision: https://reviews.freebsd.org/D43679

Details

Provenance
dev_submerge.chAuthored on Feb 12 2024, 11:05 AM
christosCommitted on Feb 12 2024, 11:07 AM
Reviewer
christos
Differential Revision
D43679: snd_uaudio(4): Fix config detection with defaults set.
Parents
rGb2e97edffdab: snd_uaudio(4): Adapt buffer length to buffer_ms tunable.
Branches
Unknown
Tags
Unknown