aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/sound/pci/emu10kx-pcm.c
diff options
context:
space:
mode:
authorChristos Margiolis <christos@FreeBSD.org>2024-01-16 16:48:14 +0000
committerChristos Margiolis <christos@FreeBSD.org>2024-01-16 16:48:14 +0000
commit837cd192ebf2d0d4f5ded8883403ef11e6fa6438 (patch)
tree384bb3c6788c54da790fc821b92e274654ceb86d /sys/dev/sound/pci/emu10kx-pcm.c
parent18d87fe4fe3b310796e138855016678453140423 (diff)
downloadsrc-837cd192ebf2d0d4f5ded8883403ef11e6fa6438.tar.gz
src-837cd192ebf2d0d4f5ded8883403ef11e6fa6438.zip
sound: remove PCM_KLDSTRING() and fix status strings
PCM_KLDSTRING() prints the kernel module associated with a given audio device only when that module is not compiled in. Get rid of PCM_KLDSTRING() altogether and print the driver name (even for modules that are compiled in) instead, as it implies the module as well. While here, convert all status strings to the following dmesg-like format: [<port|mem> <irq>] on <driver> Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Reviewed by: markj, imp Differential Revision: https://reviews.freebsd.org/D43349
Diffstat (limited to 'sys/dev/sound/pci/emu10kx-pcm.c')
-rw-r--r--sys/dev/sound/pci/emu10kx-pcm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/sound/pci/emu10kx-pcm.c b/sys/dev/sound/pci/emu10kx-pcm.c
index 661d65165190..b4633efdddc7 100644
--- a/sys/dev/sound/pci/emu10kx-pcm.c
+++ b/sys/dev/sound/pci/emu10kx-pcm.c
@@ -1477,7 +1477,8 @@ emu_pcm_attach(device_t dev)
if (route == RT_MCHRECORD)
pcm_addchan(dev, PCMDIR_REC, &emufxrchan_class, sc);
- snprintf(status, SND_STATUSLEN, "on %s", device_get_nameunit(device_get_parent(dev)));
+ snprintf(status, SND_STATUSLEN, "on %s",
+ device_get_nameunit(device_get_parent(dev)));
pcm_setstatus(dev, status);
return (0);