summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/pci/t4dwave.c
Commit message (Collapse)AuthorAgeFilesLines
* Use BUS_PROBE_DEFAULT in preference to 0 and BUS_PROBE_LOW_PRIORITY inimp2005-03-011-4/+4
| | | | | preference to some random negative number to allow other drivers a bite at the apple.
* Start each of the license/copyright comments with /*-, minor shuffle of linesimp2005-01-061-1/+1
|
* Limit DMA address space to 1GB since the trident audio cards can'tyongari2004-10-131-1/+11
| | | | | | | | | | handle DMA addresses located above 1GB. The LBA(loop begin address) register which holds DMA base address is 32bits register. But the MSB 2bits are used for other purposes. This effectivly limits the DMA address space up to 1GB. Approved by: jake (mentor) Reviewed by: truckman, matk
* Audio drivers failed to detect failure condition and attempted toyongari2004-10-131-2/+2
| | | | | | | | | | assign DMA address to the wrong address. It can cause system lockup or other mysterious errors. Since most sound cards requires low DMA address(BUS_SPACE_MAXADDR_24BIT) sndbuf_alloc() would fail when the audio driver is loaded after long running of operations. Approved by: jake (mentor) Reviewed by: truckman, matk
* Rename the sound device drivers:tanimura2004-07-161-1/+1
| | | | | | | | | | | | | | - `sound' The generic sound driver, always required. - `snd_*' Device-dependent drivers, named after the sound module names. Configure accordingly to your hardware. In addition, rename the `snd_pcm' module to `sound' in order to sync with the driver names. Suggested by: cg
* The newpcm headers currently #define away INTR_MPSAFE and INTR_TYPE_AVgreen2004-04-141-1/+1
| | | | | | | | | | | | | | | | | | because they bogusly check for defined(INTR_MPSAFE) -- something which never was a #define. Correct the definitions. This make INTR_TYPE_AV finally get used instead of the lower-priority INTR_TYPE_TTY, so it's quite possible some improvement will be had on sound driver performance. It would also make all the drivers marked INTR_MPSAFE actually run without Giant (which does seem to work for me), but: INTR_MPSAFE HAS BEEN REMOVED FROM EVERY SOUND DRIVER! It needs to be re-added on a case-by-case basis since there is no one who will vouch for which sound drivers, if any, willy actually operate correctly without Giant, since there hasn't been testing because of this bug disabling INTR_MPSAFE. Found by: "Yuriy Tsibizov" <Yuriy.Tsibizov@gfk.ru>
* Convert callers to the new bus_alloc_resource_any(9) API.njl2004-03-171-3/+4
| | | | | Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde
* Augment /dev/sndstat with the module names, if applicable.matk2004-03-061-2/+2
| | | | Approved by: tanimura (mentor)
* update my email address.cg2003-09-071-1/+1
|
* Use PCIR_BAR(x) instead of PCIR_MAPS.jhb2003-09-021-1/+1
| | | | | 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-3/+3
| | | | Reviewed by: orion
* (hopefully) fix build breakage some people are seeingcg2002-11-261-2/+2
| | | | Approved by: re
* Suppress the uninitialized variable warning on ia64 introduced bymarcel2002-10-171-0/+4
| | | | | the previous commit by initializing i and j. These initializations will normally be eliminated by the compiler.
* Fix support for the ALi M5451 (rev 0.2) chip.cognet2002-10-141-5/+47
| | | | | | Reviewed by: orion, mux Approved by: mux (mentor) MFC after: 1 week
* Add lock type arguments to callers of snd_mtxcreate().jhb2002-04-041-1/+1
|
* Add suspend/resume support.iwasaki2001-11-241-4/+67
| | | | MFC after: 1 week
* use pcm_getbuffersize()cg2001-10-081-6/+10
|
* Add support for the Acer Labs M5451 chip.greid2001-08-291-0/+8
| | | | Submitted by: Mitsuru IWASAKI <iwasaki@jp.FreeBSD.org>
* Add support for the SiS 7018greid2001-08-261-9/+32
| | | | | PR: 30100 Submitted by: Ada Lim <adal@cse.unsw.edu.au>
* make the 4dwave nx chip workcg2001-08-231-1/+1
| | | | Submitted by: Philippe Anel <xigh@noos.fr>
* 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-16/+28
| | | | | | | | | | | | | | | 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.
* some cosmetics, changed channel setup and revamped irq handling - ignorecg2001-01-241-26/+55
| | | | repeated interrupts
* fairly substantial rewrite- seperate out play/record code, implementcg2000-12-241-183/+244
| | | | setblocksize, simplify resource allocation
* update code dealing with snd_dbuf objects to do so using a functional interfacecg2000-12-231-14/+10
| | | | | | | | | | | | | | | 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-52/+44
| | | | | | | | | | 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.
* fix warningscg2000-09-171-1/+1
|
* detach supportcg2000-09-091-0/+23
| | | | | | | 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-3/+9
| | | | | | | | | 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-9/+23
| | | | | | | | 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.
* 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.
* handle emulated dma readscg2000-05-261-4/+10
| | | | don't try to get sample size from snd_dbuf
* make drivers start at beginning of buffer when triggered - improves mmap.cg2000-04-171-2/+7
| | | | | | not all tested. not sure about aureal.c or csapcm.c
* fail in attach if we seem to have no ac97 codeccg2000-04-011-1/+1
|
* update the ac97 layer:cg2000-03-201-1/+1
| | | | | | | | | * add a callback for initialising the mixer interface * support ac97 2.1 variable rate audio feature fix ac97-using drivers for the above add suspend/resume support for neomagic
* Tidy up stray or bogus #if NFOO > 0 and #include "foo.h".peter2000-01-291-3/+0
|
* update ac97 layer to use device_printf when printing messagescg2000-01-181-1/+1
|
* oops, best play format was set to unsigned 16 bit instead of signed 16 bitcg2000-01-161-1/+1
| | | | stereo. remenant from testing.
* - latest 2ndbuffer patchcg1999-12-291-0/+1
| | | | | | | - make chn_setdir work for rec on isa cards - note: es1371 does not irq in smp Submitted by: tanimura
* increase buffer size, reduce number of channels allocated since we only usecg1999-12-121-0/+8
| | | | 1 at the moment
* Update for pnp adjustments regarding NPNP.peter1999-12-061-4/+0
| | | | | | | | | | Also, optimize out a mess of #if's that were duplicating work already done by config(8). For example, if a file is marked as "dev/sound/pci/foo.c optional pcm pci" then it's only added if pcm *and* pci are present, so #if NPCM > 0 and #if NPCI > 0 are totally redundant. A bit more work is still needed. Discussed with: cg (a few weeks ago)
* repo-copied to make way for newmidi, this commit updates include pathscg1999-11-201-3/+3
|
* $Id$ -> $FreeBSD$peter1999-09-011-1/+1
|
* say hello to newpcm. it is not yet enabled, requiring new pnp code from dfrcg1999-09-011-0/+688
to compile successfully. further details will be provided in the commit enabling newpcm.
OpenPOWER on IntegriCloud