[Bug 271574] PCM doesn't load audio device names from snd_uaudio

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 04 Feb 2024 18:45:48 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271574

--- Comment #2 from Graham Perrin <grahamperrin@gmail.com> ---
Committed to main then cherry-picked to stable/14:

- base 18d87fe4fe3b310796e138855016678453140423
- base 626d9b855302ac97809bb429cfe5ae0e4c99c1ac

<https://github.com/freebsd/freebsd-src/commit/18d87fe4fe3b310796e138855016678453140423>

<https://github.com/freebsd/freebsd-src/commit/626d9b855302ac97809bb429cfe5ae0e4c99c1ac>

snd_uaudio: provide information about the device name and attached driver

Unlike the other sound drivers, snd_uaudio(4) doesn't provide
information about the device's description and the driver it's attached
to. A side-effect of this is that applications such as mixer(8), that
fetch these strings through the OSS API's SNDCTL_CARDINFO ioctl will
show a USB audio device as:

pcm0:mixer: <USB Audio> at ? kld snd_uaudio

This patch replaces the generic "USB Audio" description with the
device's actual manufacturer and product strings, and the "at ?" string
with the driver it's attached to:

pcm0:mixer: <Focusrite Scarlett Solo USB> at uaudio0 kld snd_uaudio

Sponsored by:   The FreeBSD Foundation
MFC after:      2 weeks
Reviewed by:    markj, emaste
Differential Revision:  https://reviews.freebsd.org/D43347

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