Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F164286681
D43347.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D43347.diff
View Options
diff --git a/sys/dev/sound/usb/uaudio.c b/sys/dev/sound/usb/uaudio.c
--- a/sys/dev/sound/usb/uaudio.c
+++ b/sys/dev/sound/usb/uaudio.c
@@ -1171,7 +1171,7 @@
{
struct uaudio_softc *sc = device_get_softc(device_get_parent(dev));
unsigned i = uaudio_get_child_index_by_dev(sc, dev);
- char status[SND_STATUSLEN];
+ char status[SND_STATUSLEN], desc[128];
uaudio_mixer_init(sc, i);
@@ -1199,7 +1199,14 @@
mixer_hwvol_init(dev);
- snprintf(status, sizeof(status), "at ? %s", PCM_KLDSTRING(snd_uaudio));
+ snprintf(desc, sizeof(desc), "%s %s",
+ usb_get_manufacturer(sc->sc_udev),
+ usb_get_product(sc->sc_udev));
+ device_set_desc_copy(dev, desc);
+
+ snprintf(status, sizeof(status), "at %s %s",
+ device_get_nameunit(device_get_parent(dev)),
+ PCM_KLDSTRING(snd_uaudio));
if (pcm_register(dev, sc,
(sc->sc_play_chan[i].num_alt > 0) ? 1 : 0,
diff --git a/sys/dev/sound/usb/uaudio_pcm.c b/sys/dev/sound/usb/uaudio_pcm.c
--- a/sys/dev/sound/usb/uaudio_pcm.c
+++ b/sys/dev/sound/usb/uaudio_pcm.c
@@ -201,7 +201,6 @@
(func->func != SCF_PCM)) {
return (ENXIO);
}
- device_set_desc(dev, "USB audio");
return (BUS_PROBE_DEFAULT);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jul 31, 10:04 AM (16 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35780114
Default Alt Text
D43347.diff (1 KB)
Attached To
Mode
D43347: snd_uaudio: provide information about the device name and attached driver
Attached
Detach File
Event Timeline
Log In to Comment