summaryrefslogtreecommitdiff
path: root/x11/kdebase/files
diff options
context:
space:
mode:
authorhubertf <hubertf>1999-07-19 21:57:29 +0000
committerhubertf <hubertf>1999-07-19 21:57:29 +0000
commita7e1e34693cc441f778a73925fc7a22e43495a54 (patch)
tree927b2ebef76c2434ef9a36fbab3ec6dbc642f23b /x11/kdebase/files
parent5648610cde73ee8f734f69300d62fc13e960203d (diff)
downloadpkgsrc-a7e1e34693cc441f778a73925fc7a22e43495a54.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/kdebase/files')
-rw-r--r--x11/kdebase/files/info_netbsd.cpp24
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;
}