freebsd-nq/sys
Alexander Leidinger ce356b7017 - fix compatibility with newer versions of FreeBSD
- fix all warnings during compilation
- fix obvious bugs
- add support for more cards

Now supported:
 - M-Audio Delta Dio 2496
 - M-Audio Audiophile 2496
 - Terratec DMX 6fire

Known bugs (detected by Nokolas and Stefan):
 - $ kldunload snd_ak452x.ko
   Warning: memory type ak452x leaked memory on destroy (1 allocations,
   64 bytes leaked).
 - No sound in KDE: Everything works fine at the console but when I load KDE
   (3.5.3) the sound stutters and plays at less then 1/2 speed.
 - 'mixer: WRITE_MIXER: Device not configured' The message repeats x
   times at system startup, x = whatever hw.snd.maxautovchans is set to.
   (this is because only vol, pcm and line are supported, but the driver
   shows more than those mixer devices and setting those additional mixers
   results in this error message)
 - vchans don't work
 - 24 bit playback not supported (only 16/32 bit)
 - after kld(un)loading some times, the card fails to be probed until reboot

Datasheets are available from:
	http://www.nbritton.org/uploads/envy24/
	http://www.asahi-kasei.co.jp/akm/en/product/ak4528/ak4528_f01e.pdf
	http://www.asahi-kasei.co.jp/akm/en/product/ak4528/ekd4528-01.pdf
	http://www.asahi-kasei.co.jp/akm/en/product/ak4524/ak4524_f03e.pdf
	http://www.asahi-kasei.co.jp/akm/en/product/ak4524/ekd4524.pdf
	http://www.wolfson.co.uk/uploads/documents/en/WM8728.pdf
	http://www.richtech.co.kr/down/richtek/RT9131.pdf
	http://xkodi.svobodno.com/xkodi/space71.html
	http://people.freebsd.org/~lofi/envy24.pdf
	http://people.freebsd.org/~lofi/4524.pdf

Submitted by:	Konstantin Dimitrov <kosio.dimitrov@gmail.com>
Tested by:	Nikolas Britton <nikolas.britton@gmail.com>
		Stefan Ehmann <shoesoft@gmx.net>
2006-06-17 15:11:36 +00:00
..
amd64 Remove COMPAT_43 from GENERIC (and other kernel configs). For amd64 there's 2006-06-15 19:58:53 +00:00
arm Remove COMPAT_43 from GENERIC (and other kernel configs). For amd64 there's 2006-06-15 19:58:53 +00:00
boot Increment the disk block offset after writing, not before. This 2006-05-31 09:05:49 +00:00
bsm Merge OpenBSM 1.0 alpha 6 version of audit_record.h to src/sys: 2006-06-05 13:00:52 +00:00
cam Add PIM_SEQSCAN for HBA misc flags and code that understands 2006-06-05 22:22:14 +00:00
coda Since DELAY() was moved, most <machine/clock.h> #includes have been 2006-05-16 14:37:58 +00:00
compat Forcefully turn off GPROF in this file if it is enabled as GPROF's 2006-06-12 20:35:59 +00:00
conf Unbreak build on platforms that don't have uart_sab82532 and uart_z8530 2006-06-14 03:03:08 +00:00
contrib Fix pfsync w/o carp compilation. 2006-06-16 10:25:06 +00:00
crypto Fix gratuitous compiler warning. 2006-06-08 17:40:02 +00:00
ddb Never zero-out db_last_symtab. Whan backtraces are done 2006-06-16 16:17:52 +00:00
dev - fix compatibility with newer versions of FreeBSD 2006-06-17 15:11:36 +00:00
doc Add a disclaimer regarding public/internal functions to every subsystem for 2006-05-28 15:25:18 +00:00
fs Upon further review, DES prefers this change over that in revision 1.13 2006-06-05 16:41:27 +00:00
gdb Convert to new console api 2006-05-26 13:54:27 +00:00
geom Allow to use the old -a option to specify an encryption algorithm to use 2006-06-06 22:06:24 +00:00
gnu Implement vnode operations for setting and removing extended attributes. 2006-06-11 03:32:50 +00:00
i4b Since DELAY() was moved, most <machine/clock.h> #includes have been 2006-05-16 14:37:58 +00:00
i386 Unbreak tinderbox- fix device_printf arg to accomodate different sizes 2006-06-16 14:04:21 +00:00
ia64 Remove COMPAT_43 from GENERIC (and other kernel configs). For amd64 there's 2006-06-15 19:58:53 +00:00
isa Make the ISAPNP code optional and only enable it on i386 and pc98 (used 2006-06-12 21:07:13 +00:00
isofs/cd9660 Remove calls to vfs_export() for exporting a filesystem for NFS mounting 2006-05-26 00:32:21 +00:00
kern Add a description for sysctl -d. 2006-06-17 02:58:18 +00:00
libkern First pass at removing Alpha kernel support. 2006-05-11 22:25:28 +00:00
modules dd the envy24 driver as is to the tree. It's not connected to the build 2006-06-17 14:36:44 +00:00
net Since we are doing some bpf(4) clean up, change a couple of function prototypes 2006-06-15 15:39:12 +00:00
net80211 Use kern_kldload() and kern_kldunload() to load and unload modules when 2006-06-13 21:36:23 +00:00
netatalk Update global copyright statement for netatalk, as I claim copyright 2006-06-08 22:13:52 +00:00
netatm Chance protocol switch method pru_detach() so that it returns void 2006-04-01 15:42:02 +00:00
netgraph Use kern_kldload() and kern_kldunload() to load and unload modules when 2006-06-13 21:36:23 +00:00
netinet Add support of 'tablearg' feature for: 2006-06-15 09:39:22 +00:00
netinet6 Fix spurious warnings from neighbor discovery when working with IPv6 over 2006-06-08 00:31:17 +00:00
netipsec Change '#if INET' and '#if INET6' to '#ifdef INET' and '#ifdef INET6'. 2006-06-04 19:32:32 +00:00
netipx Make this compile without INVARIANTS. 2006-04-11 23:15:47 +00:00
netkey In raw and raw-derived socket types, maintain and enforce invariant that 2006-04-01 15:55:44 +00:00
netnatm style(9) treatment following fixups. 2006-04-23 16:33:56 +00:00
netncp In ncp_sysctl_connstat(), the SLIST_FOREACH() logic to check 'error' 2006-01-14 11:40:32 +00:00
netsmb Retire NETSMBCRYPTO as a kernel option and make its functionality 2006-03-05 22:52:17 +00:00
nfs
nfs4client While reviewing NFS client for another PR, noticed this omission in the 2006-05-24 15:56:36 +00:00
nfsclient Kris Kennaway found that for '/' NFS mounts, the MPSAFE mount flag was 2006-05-30 20:32:44 +00:00
nfsserver Temporary workaround to prevent leak of Giant from nfsd when calling 2006-06-05 14:48:02 +00:00
opencrypto When DIAGNOSTIC is defined, verify if we don't free crypto requests from 2006-06-06 15:04:52 +00:00
pc98 Remove COMPAT_43 from GENERIC (and other kernel configs). For amd64 there's 2006-06-15 19:58:53 +00:00
pccard I don't believe these are used at all, and can be safely removed 2006-01-15 06:49:28 +00:00
pci Move SiS 760 to where it belongs. 2006-05-30 18:41:26 +00:00
posix4 Add scheduler API sched_relinquish(), the API is used to implement 2006-06-15 06:37:39 +00:00
powerpc Remove COMPAT_43 from GENERIC (and other kernel configs). For amd64 there's 2006-06-15 19:58:53 +00:00
rpc Fix up some cut-n-paste damage and some out-of-date comments. 2006-01-20 15:20:41 +00:00
security Make the size of the subject32_ex and process32_ex tokens depend on 2006-06-17 13:53:04 +00:00
sparc64 Remove COMPAT_43 from GENERIC (and other kernel configs). For amd64 there's 2006-06-15 19:58:53 +00:00
sys Remove extra blank line below comment. 2006-06-16 22:31:56 +00:00
tools Check for errors when registering and unregistering firmware modules. This 2006-06-16 21:06:03 +00:00
ufs Check the sectorsize of the underlying disk before trying to 2006-06-03 21:20:37 +00:00
vm Use ptoa(psize) instead of size to compute the end of the mapping in 2006-06-17 08:45:01 +00:00
Makefile o Add net80211/ to cscope dir list. 2006-05-29 19:29:41 +00:00