summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/pci/solo.c
Commit message (Collapse)AuthorAgeFilesLines
* update my email address.cg2003-09-071-1/+1
|
* Use PCIR_BAR(x) instead of PCIR_MAPS.jhb2003-09-021-10/+10
| | | | | 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
* Implement a "sndbuf_getbufaddr" function and use it instead of vtophys().cognet2003-02-201-1/+1
| | | | Reviewed by: orion
* Add suspend and resume support.orion2002-08-251-8/+45
| | | | | Contributed by: Takanori Watanabe <takawata@FreeBSD.org> PR: kern/41809
* use pcm_getbuffersize()cg2001-10-081-4/+7
|
* 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 the M_ZERO flag to malloc(9)greid2001-06-211-2/+1
| | | | | Reviewed by: cg MFC after: 1 week
* 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.
* mega-commit.cg2001-03-241-11/+11
| | | | | | | | | | | | | | | 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-7/+9
| | | | | | | | | | | | | | | 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.
* kobjify.cg2000-12-181-51/+34
| | | | | | | | | | 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.
* add reinit functions to mixerscg2000-10-261-0/+1
| | | | | unstaticize chn_start() add reset/resetdone functions to channels
* Add suspend/resume hooks.nsayer2000-09-281-0/+2
| | | | Submitted by: sean@stat.duke.edu
* fix warningscg2000-09-171-2/+1
|
* detach supportcg2000-09-091-12/+27
| | | | | | | remove un-needed setdir functions add bus_teardown_intr calls where necessary destroy our dma tags where necessary destroy ac97 before releasing resources
* change mixer api slightlycg2000-09-011-6/+14
| | | | | | | | | 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-8/+22
| | | | | | | | 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.
* don't complain about bad irqs if using a shared irqcg2000-08-191-0/+3
|
* This patch appears to solve the problems with recording resultingnsayer2000-08-131-4/+13
| | | | | | in bogus hwptr warnings. Further comments sought on -hackers were not forthcoming. I can only hope that calling DELAY() like this doesn't cause any heartburn.
* A couple of cosmetic fixes, plus a biggie: When checking the DMAnsayer2000-08-091-3/+18
| | | | | | | | | | | | position, channel 1's dma position register must be quiescent. So the driver will spl, pause the DMA, delay a bit and hold as still as possible while snapping the picture. I'm sure there HAS to be a better way to do this, but if there is, it's not documented. So far as I can tell, this fixes recording, which means the Solo is open for business.
* 1. Increase the size of the DMA buffer.nsayer2000-08-021-11/+32
| | | | | | | | 2. Offer half duplex with both playback and record on channel 1 or full duplex with playback always on channel 2 as a compile-time option. 3. 16 bit record output is byte swapped for some dumb reason. Report the _BE AFMTs for recording.
* Undo some of my own damage. With this patch, it appears that bothnsayer2000-08-021-16/+17
| | | | recording and playback now work correctly.
* Fix channel 1 playback the rest of the way. There are a couple ofnsayer2000-08-021-2/+2
| | | | | hiccups, but playback now proceeds mostly normally using both channel 1 and 2.
* Get playback on channel 1 closer to working. 8 bit samples work.nsayer2000-08-021-11/+16
| | | | | | 16 bit samples have some sort of choppiness, the nature of which is not completely clear, but it clearly has something to do with dma buffer synchronization. But at least channel 1 makes noise now.
* Fix channel 1, sort of. recording now generates IRQs and the outputnsayer2000-08-021-2/+8
| | | | | | | | appears to be the correct length, but quality of output has not yet been tested. Also, full duplex audio (that is, playback on channel 1) does not yet work. Two constants and I am there! Obtained from: major hints from ALSA
* Reverse the sense of the signed/unsigned formatting bit.nsayer2000-08-011-1/+1
| | | | This dramatically cleans up playback quality, at least with mxaudio.
* almost-there ess solo-1 driver, committed so people can tell me why itcg2000-07-311-0/+932
doesn't generate irqs.
OpenPOWER on IntegriCloud