summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/snd/sound.c
Commit message (Collapse)AuthorAgeFilesLines
* Bid a fond farewell to these files, they live on various forms inpeter1999-09-261-1496/+0
| | | | dev/pcm/* and dev/pcm/isa/*
* Remove five now unused fields from struct cdevsw. They should neverphk1999-09-251-5/+2
| | | | | | | | have been there in the first place. A GENERIC kernel shrinks almost 1k. Add a slightly different safetybelt under nostop for tty drivers. Add some missing FreeBSD tags
* Convert DEVFS hooks in (most) drivers to make_dev().phk1999-08-231-43/+11
| | | | | | | | | | | | | | | | Diskslice/label code not yet handled. Vinum, i4b, alpha, pc98 not dealt with (left to respective Maintainers) Add the correct hook for devfs to kern_conf.c The net result of this excercise is that a lot less files depends on DEVFS, and devtoname() gets more sensible output in many cases. A few drivers had minor additional cleanups performed relating to cdevsw registration. A few drivers don't register a cdevsw{} anymore, but only use make_dev().
* Simplify cdevsw registration.phk1999-05-311-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | The cdevsw_add() function now finds the major number(s) in the struct cdevsw passed to it. cdevsw_add_generic() is no longer needed, cdevsw_add() does the same thing. cdevsw_add() will print an message if the d_maj field looks bogus. Remove nblkdev and nchrdev variables. Most places they were used bogusly. Instead check a dev_t for validity by seeing if devsw() or bdevsw() returns NULL. Move bdevsw() and devsw() functions to kern/kern_conf.c Bump __FreeBSD_version to 400006 This commit removes: 72 bogus makedev() calls 26 bogus SYSINIT functions if_xe.c bogusly accessed cdevsw[], author/maintainer please fix. I4b and vinum not changed. Patches emailed to authors. LINT probably broken until they catch up.
* This commit should be a extensive NO-OP:phk1999-05-301-4/+19
| | | | | | | | | | | | | Reformat and initialize correctly all "struct cdevsw". Initialize the d_maj and d_bmaj fields. The d_reset field was not removed, although it is never used. I used a program to do most of this, so all the files now use the same consistent format. Please keep it that way. Vinum and i4b not modified, patches emailed to respective authors.
* Fix dev_t/minor problemspeter1999-05-121-9/+10
|
* Bring the 'new-bus' to the i386. This extensively changes the way thepeter1999-04-161-4/+1
| | | | | | | | | | | | | | | | | | i386 platform boots, it is no longer ISA-centric, and is fully dynamic. Most old drivers compile and run without modification via 'compatability shims' to enable a smoother transition. eisa, isapnp and pccard* are not yet using the new resource manager. Once fully converted, all drivers will be loadable, including PCI and ISA. (Some other changes appear to have snuck in, including a port of Soren's ATA driver to the Alpha. Soren, back this out if you need to.) This is a checkpoint of work-in-progress, but is quite functional. The bulk of the work was done over the last few years by Doug Rabson and Garrett Wollman. Approved by: core
* Removed buggy, `#if 0'ed asm version of translate_bytes() instead ofbde1999-01-091-18/+0
| | | | | | | fixing it. See rev.1.22 of ../sound/audio.c for fixes. When both the C version and the asm version are inlined, and everything is cached, the asm version is 1.75 times slower than the C version on P5's. On K6's, it is only 1.25 times slower.
* Bring in ad1816 patches from German Tischler.luigi1999-01-041-3/+12
| | | | | Fix 'device not configured' problem that people were experiencing when only PCI devices are present.
* unbreak devfs support after wrong cut&paste...luigi1999-01-011-17/+16
| | | | ReportedBy: Louis A. Mamakos
* Extend the callback mechanism and add hooks to support PCI cards.luigi1998-12-311-53/+102
| | | | Remove a few unused variables.
* Rename one of the two devfs_link's to devfs_makelink.eivind1998-12-101-7/+7
|
* Examine all occurrences of sprintf(), strcat(), and str[n]cpy()archie1998-12-041-4/+7
| | | | | | | | | | | | | | for possible buffer overflow problems. Replaced most sprintf()'s with snprintf(); for others cases, added terminating NUL bytes where appropriate, replaced constants like "16" with sizeof(), etc. These changes include several bug fixes, but most changes are for maintainability's sake. Any instance where it wasn't "immediately obvious" that a buffer overflow could not occur was made safer. Reviewed by: Bruce Evans <bde@zeta.org.au> Reviewed by: Matthew Dillon <dillon@apollo.backplane.com> Reviewed by: Mike Spengler <mks@networkcs.com>
* * Fix a couple of places in the device pager where an address wasdfr1998-11-081-1/+1
| | | | | | | | | | | truncated to 32 bits. * Change the calling convention of the device mmap entry point to pass a vm_offset_t instead of an int for the offset allowing devices with a larger memory map than (1<<32) to be supported on the alpha (/dev/mem is one such). These changes are required to allow the X server to mmap the various I/O regions used for device port and memory access on the alpha.
* Initialize isa_devtab entries for interrupt handlers in individualbde1998-10-221-0/+2
| | | | | | | device drivers, not in ioconf.c. Use a different hack in isa_device.h so that a new config(8) is not required yet. pc98 parts approved by: kato
* Update the pcm driver to the most recent version. This shouldluigi1998-10-021-9/+88
| | | | | | | | add support for Vibra16X, OPTi925, and bring in several assorted fixes to the code and documentation. Also present here are apm hooks so that laptops can properly reconfigure the hardware after suspend (tested on the Libretto50). Reviewed by: jordan
* fix a problem with our definition of SNDCTL_DSP_GETBLKSIZE, to letluigi1998-09-081-0/+2
| | | | the FreeBSD x11amp work (same as in -stable)
* Fixed bogus spelling `nx*' of some `no*' devswitch functions.bde1998-08-201-2/+2
|
* Changed %n to %r in devfs name format strings. %n has almost gone away.bde1998-07-151-7/+7
|
* Don't cast pointers to longs in asm statements.bde1998-07-151-1/+1
| | | | | | These asm statments are not quite as pessimal as when I complained about them in rev.1.9 of audio.c. They seem to be only 40% slower than the C version on P5's and the same speed on K6's.
* Don't depend on <sys/conf.h> declaring isa device structs or isabde1998-06-171-1/+2
| | | | interrupt handlers. pcm is not in LINT, so it is hard to test.
* Correct even more ioctl breakage :(sos1998-06-081-1/+1
| | | | | Doesn't people check their code before committing anymore, it could at least compile ????
* Submitted by: Doug Ambrisko <ambrisko@whistle.com>julian1998-04-281-14/+34
| | | | make standard links for the first detected sound card.
* - Updated to Luigi's 2-15-98 code. The code in 2.2 is the same except fornate1998-02-171-40/+39
| | | | | | | | select/poll and DEVFS changes, which are limited to an include/define in sound.h and the actual select/poll implementation in sound.c [ This commit is blind, but the code is similar enough that there will hopefully be no problems. ]
* Upgrade Luigi's audio driver to Jan/23 version... will bring in Feb/15thscrappy1998-02-171-125/+157
| | | | | | | version as soon as I've tested it... Installed/tested on my home machine...any problems, please report directly to me.
* Include "opt_devfs.h".eivind1998-01-311-0/+2
|
* Add some devfs entriesjulian1998-01-121-2/+44
| | | | (patch origianlly from luigi)
* update of Luigi's sound drivers...jmg1997-11-231-25/+66
| | | | this updates to 971117 plus a small sb change that was after that release..
* This updates Luigi's sound code to the basic code in snd971023...jmg1997-10-311-130/+130
| | | | | | | | | | | | | | changes: o rip the old select from his distribution to prevent extra pollution o the code now uses audio dma, helps reduce clicks o improved card support, should work in full duplex on sb16 cards o add better voxware ioctl support pointed out by Joao Carlos Mendes Luis <jonny@coppe.ufrj.br> o remove an unused file that I included for more complete history o and MANY other changes I have personally tested this code with a CS4237 based card and an AWE32 (non-PnP). Both cards worked fine in 8bit and 16bit mode.
* Accept FIOASYNC (like the old sound driver) since it's generated bypeter1997-09-211-2/+2
| | | | kern_descrip.c when the user does an fcntl(.., F_SETFL, ...).
* update Luigi's driver to poll interface (Peter, you might want to checkjmg1997-09-181-67/+66
| | | | | | | | that I've done this properly, it does work though :) )... a few minor fixes to code part-Submitted-by: Luigi
* add some preprocessor lines to prevent both controler snd0 andjmg1997-09-151-0/+5
| | | | | | | device pcm0 from being loaded into the kernel at the same time. As this generates compilation errors, I just error out. Requested-by: Jordan
* Import of Luigi Rizzo's sound code. For more information about the driverjmg1997-09-141-0/+1254
check out the README that is included. Submitted by: Luigi Rizzo <luigi@labinfo.iet.unipi.it>
OpenPOWER on IntegriCloud