summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/pci/emu10k1.c
Commit message (Collapse)AuthorAgeFilesLines
* Specify the right location of the generated header.obrien2004-01-121-1/+1
|
* Add Audigy support.obrien2004-01-111-93/+521
| | | | | | I started with a year-old patch by Orlando Bassotto <orlando.bassotto@ieo-research.it>, and ported it to 5.2-CURRENT along with fixing the problems working with pre-Audigy cards.
* Remove EMUDEBUG [un]def. This should be done in the Makefile.obrien2004-01-111-1/+0
|
* Sync with Creative's 8010.h rev 1.51.obrien2004-01-091-0/+7
|
* update my email address.cg2003-09-071-1/+1
|
* Use PCIR_BAR(x) instead of PCIR_MAPS.jhb2003-09-021-3/+3
| | | | | Glanced over by: imp, gibbs Tested by: i386 LINT
* Prefer new location of pci include files (which have only been in theimp2003-08-221-2/+2
| | | | | tree for two or more years now), except in a few places where there's code to be compatible with older versions of FreeBSD.
* Mega busdma API commit.scottl2003-07-011-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | Add two new arguments to bus_dma_tag_create(): lockfunc and lockfuncarg. Lockfunc allows a driver to provide a function for managing its locking semantics while using busdma. At the moment, this is used for the asynchronous busdma_swi and callback mechanism. Two lockfunc implementations are provided: busdma_lock_mutex() performs standard mutex operations on the mutex that is specified from lockfuncarg. dftl_lock() is a panic implementation and is defaulted to when NULL, NULL are passed to bus_dma_tag_create(). The only time that NULL, NULL should ever be used is when the driver ensures that bus_dmamap_load() will not be deferred. Drivers that do not provide their own locking can pass busdma_lock_mutex,&Giant args in order to preserve the former behaviour. sparc64 and powerpc do not provide real busdma_swi functions, so this is largely a noop on those platforms. The busdma_swi on is64 is not properly locked yet, so warnings will be emitted on this platform when busdma callback deferrals happen. If anyone gets panics or warnings from dflt_lock() being called, please let me know right away. Reviewed by: tmm, gibbs
* more style(9) changes.obrien2003-04-201-6/+8
|
* more style(9) changes.obrien2003-04-201-32/+32
|
* A few style(9) fixes.obrien2003-04-201-50/+50
|
* Sync with Creative's 8010.h rev 1.39.obrien2003-04-181-3/+3
|
* Unbreak emu10k1 by properly using the buffer address.cognet2003-02-261-4/+4
| | | | New contestant for the lamest commit of the year award: cognet
* Fix compilation on alpha. Pointy hat to Marcel.orion2003-02-231-1/+1
|
* Implement a "sndbuf_getbufaddr" function and use it instead of vtophys().cognet2003-02-201-18/+24
| | | | Reviewed by: orion
* Back out M_* changes, per decision of the TRB.imp2003-02-191-1/+1
| | | | Approved by: trb
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-211-1/+1
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* (hopefully) fix build breakage some people are seeingcg2002-11-261-1/+1
| | | | Approved by: re
* various fixes to eliminate locking warningscg2002-11-251-1/+1
| | | | | Approved by: re Reviewed by: orion
* Add lock type arguments to callers of snd_mtxcreate().jhb2002-04-041-1/+1
|
* use pcm_getbuffersize()cg2001-10-081-82/+110
| | | | only creat a mic recording channel if the codec supports it
* many changes:cg2001-08-231-3/+3
| | | | | | | | | | | | | | | * add new channels to the end of the list so channels used in order of addition * de-globalise definition of struct snddev_info and provide accessor functions where necessary. * move the $FreeBSD$ tag in each .c file into a macro and allow the /dev/sndstat handler to display these when set to maximum verbosity to aid debugging. * allow each device to register its own sndstat handler to reduce the amount of groping sndstat must do in foreign structs.
* use a global devclass for all drivers - i'm not entirely sure why thiscg2001-06-161-2/+0
| | | | | | | | | | | | | | | worked before. mixer, dsp and sndstat are seperate devices - give them their own cdevsws instead of demuxing requests sent to a single cdevsw. use the si_drv1/si_drv2 fields in dev_t structures for holding information specific to an open instance of mixer/dsp. nuke /dev/{dsp,dspW,audio}[0-9]* links - this functionality is now provided using cloning. various locking fixes.
* fix typocg2001-05-301-1/+1
|
* mega-commit.cg2001-03-241-60/+56
| | | | | | | | | | | | | | | this introduces a new buffering mechanism which results in dramatic simplification of the channel manager. as several structures have changed, we take the opportunity to move their definitions into the source files where they are used, make them private and de-typedef them. the sound drivers are updated to use snd_setup_intr instead of bus_setup_intr, and to comply with the de-typedefed structures. the ac97, mixer and channel layers have been updated with finegrained locking, as have some drivers- not all though. the rest will follow soon.
* update code dealing with snd_dbuf objects to do so using a functional interfacecg2000-12-231-12/+57
| | | | | | | | | | | | | | | modify chn_setblocksize() to pick a default soft-blocksize appropriate to the sample rate and format in use. it will aim for a power of two size small enough to generate block sizes of at most 20ms. it will also set the hard-blocksize taking into account rate/format conversions in use. update drivers to implement setblocksize correctly: updated, tested: sb16, emu10k1, maestro, solo updated, untested: ad1816, ess, mss, sb8, csa not updated: ds1, es137x, fm801, neomagic, t4dwave, via82c686 i lack hardware to test: ad1816, csa, fm801, neomagic others will be updated/tested in the next few days.
* fix a debugging leftover (min speed=48khz)cg2000-12-201-1/+1
|
* kobjify.cg2000-12-181-100/+62
| | | | | | | | | | this gives us several benefits, including: * easier extensibility- new optional methods can be added to ac97/mixer/channel classes without having to fixup every driver. * forward compatibility for drivers, provided no new mandatory methods are added.
* detach supportcg2000-09-091-1/+4
| | | | | | | remove un-needed setdir functions add bus_teardown_intr calls where necessary destroy our dma tags where necessary destroy ac97 before releasing resources
* add detach supportcg2000-09-051-1/+76
|
* change mixer api slightlycg2000-09-011-8/+28
| | | | | | | | | change channel interface - kobj implementation coming soonish make pcm_makelinks not panic if modular add pcm_unregister() these changes support newpcm kld unloading, but this is only implemented by ds1.c
* rework feeder sytem to allow feeders in kldscg2000-08-201-7/+27
| | | | | | | | modify driver capability reporting format to list every audio format seperately- required for above and because we could not previously indicate that mono was unsupported. there should be no functional impact.
* fix the staticy sound issuecg2000-08-061-154/+140
| | | | | | use timer instead of per-channel interrupts do playback like the linux driver - may fix nmi-with-ecc issue
* add module metadata. this is a hack, sound drivers will eventually present acg2000-07-031-1/+3
| | | | bus to which pcm, mixer, etc will attach.
* add alpha-quality recording code and handle pci error interrupts - this maycg2000-06-131-71/+353
| | | | | prevent the card generating an nmi on ecc systems. for now a message is printed on every pci error and it seems every time we start playng we get one
* Unused includes: #include "pci.h", #include "pcm.h"peter2000-06-101-3/+0
|
* handle emulated dma readscg2000-05-261-1/+3
| | | | don't try to get sample size from snd_dbuf
* Back out the previous change to the queue(3) interface.jake2000-05-261-2/+2
| | | | | | It was not discussed and should probably not happen. Requested by: msmith and others
* Change the way that the queue(3) structures are declared; don't assume thatjake2000-05-231-2/+2
| | | | | | | | the type argument to *_HEAD and *_ENTRY is a struct. Suggested by: phk Reviewed by: phk Approved by: mdodd
* update for new location of emu10k1.h under sys/gnucg2000-04-261-1/+1
|
* try the fix from creative bugzilla for nmi problemcg2000-04-181-2/+2
| | | | Obtained from: creative labs bugzilla
* decrease buffer size to 4kcg2000-04-051-23/+58
| | | | | use a seperate channel for generating irqs so we get a buffer-half-empty interrupt, prevents repeating on underflow
* make the click on starting output go awaycg2000-04-041-20/+24
|
* fix missing defines and prototype for emu_vdump()cg2000-04-031-0/+3
|
* unfinished sblive driver, playback/mixer only for now - not enabled incg2000-04-021-0/+1170
conf/files i don't seem to be clearing the cache right resulting in a short initial burst of noise, despite doing the same as creative and alsa. i'm committing now so more eyes can pore over the code.
OpenPOWER on IntegriCloud