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

(cherry picked from commit 42fdcd9fd917764d84edcc43e252a90cade78f80)

Details

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