diff options
author | hubertf <hubertf@pkgsrc.org> | 1999-07-19 21:57:29 +0000 |
---|---|---|
committer | hubertf <hubertf@pkgsrc.org> | 1999-07-19 21:57:29 +0000 |
commit | 7880b34461f345e2a3b2a36bc58e48791e6ba4b6 (patch) | |
tree | 927b2ebef76c2434ef9a36fbab3ec6dbc642f23b /x11 | |
parent | 0fce6909ebe00ab160e8e5facb5918a3bc4314b9 (diff) | |
download | pkgsrc-7880b34461f345e2a3b2a36bc58e48791e6ba4b6.tar.gz |
Give extended audio information. Instead of just ("grep audios
/var/run/dmesg.boot"):
audio0 at sb0: full duplex
we now get ("grep sb0" and all other devices found by above grep):
audio0 at sb0: full duplex
sb0 at isapnp0 port 0x220/16,0x330/2,0x388/4 irq 5 drq 1,5
sb0: Creative SB AWE64 PnP Audio: dsp v4.16
midi1 at sb0: <MPU-401 MIDI UART>
audio0 at sb0: full duplex
opl0 at sb0: model OPL3
Change written by myself(*) after inspecting Jaromir Dolecek's cool
patches.
(*) I would have _never_ believed to do any KDE hacking if one told me
a month ago! X-)
Diffstat (limited to 'x11')
-rw-r--r-- | x11/kdebase/files/info_netbsd.cpp | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/x11/kdebase/files/info_netbsd.cpp b/x11/kdebase/files/info_netbsd.cpp index fc0a27236b6..9daa0f1958a 100644 --- a/x11/kdebase/files/info_netbsd.cpp +++ b/x11/kdebase/files/info_netbsd.cpp @@ -1,5 +1,5 @@ /* - * $NetBSD: info_netbsd.cpp,v 1.2 1999/07/19 21:05:16 tron Exp $ + * $NetBSD: info_netbsd.cpp,v 1.3 1999/07/19 21:57:29 hubertf Exp $ * * info_netbsd.cpp is part of the KDE program kcminfo. This displays * various information about the NetBSD system it's running on. @@ -220,8 +220,30 @@ bool GetInfo_IO_Ports (KTabListBox *lbox) bool GetInfo_Sound (KTabListBox *lbox) { + int row; + if (!GetDmesgInfo(lbox, "audio", NULL)) lbox->insertItem(i18n("No audio devices found.")); + + // append information on any audio devices found + row = lbox->numRows(); + while (row>=0) { + char *s, *t, dev[20];; + + s = strstr(lbox->text(row), "at "); + if (s) { + t=dev; + s+=3; // skip "at " + while((*s!=':') && (*s!='\n')) + *t++ = *s++; + *t='\0'; + + GetDmesgInfo(lbox, dev, NULL); + } + + row--; + } + return true; } |