summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2009-01-07 21:12:33 +0000
committermav <mav@FreeBSD.org>2009-01-07 21:12:33 +0000
commitf885f01ae19df45aece1f108bd6c756e6b12b4f4 (patch)
tree29ba430edbcbf9c18bd82c7bee6de677bec31553 /sys/dev/sound
parentabe6016909259942e4406e3f1ad00457ed92ad7b (diff)
downloadFreeBSD-src-f885f01ae19df45aece1f108bd6c756e6b12b4f4.zip
FreeBSD-src-f885f01ae19df45aece1f108bd6c756e6b12b4f4.tar.gz
Add some new oss_sysinfo structure fields from OSSv4.
Diffstat (limited to 'sys/dev/sound')
-rw-r--r--sys/dev/sound/pcm/sound.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/sound/pcm/sound.c b/sys/dev/sound/pcm/sound.c
index b842ae8..e9878a6 100644
--- a/sys/dev/sound/pcm/sound.c
+++ b/sys/dev/sound/pcm/sound.c
@@ -1405,6 +1405,7 @@ sound_oss_sysinfo(oss_sysinfo *si)
{
static char si_product[] = "FreeBSD native OSS ABI";
static char si_version[] = __XSTRING(__FreeBSD_version);
+ static char si_license[] = "BSD";
static int intnbits = sizeof(int) * 8; /* Better suited as macro?
Must pester a C guru. */
@@ -1417,6 +1418,7 @@ sound_oss_sysinfo(oss_sysinfo *si)
strlcpy(si->product, si_product, sizeof(si->product));
strlcpy(si->version, si_version, sizeof(si->version));
si->versionnum = SOUND_VERSION;
+ strlcpy(si->license, si_license, sizeof(si->license));
/*
* Iterate over PCM devices and their channels, gathering up data
@@ -1454,6 +1456,7 @@ sound_oss_sysinfo(oss_sysinfo *si)
pcm_unlock(d);
}
+ si->numaudioengines = si->numaudios;
si->numsynths = 0; /* OSSv4 docs: this field is obsolete */
/**
OpenPOWER on IntegriCloud