summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/pci/neomagic.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-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.
* Suspend and resume related patches from Toshikazu Ichinoseki ↵orion2002-03-041-12/+85
| | | | | | <t.ichinoseki@nifty.com>. PR's: kern/35484, kern/35230.
* 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-4/+2
| | | | | Reviewed by: cg MFC after: 1 week
* use a global devclass for all drivers - i'm not entirely sure why thiscg2001-06-161-3/+1
| | | | | | | | | | | | | | | 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.
* Add another card to the list of Neomagic 256AV's which don't have AC97greid2001-04-101-1/+43
| | | | | | | | | codecs. Also, add some additional code to check for future cards without this feature - attempting to initialise them as AC97 cards will hang the machine. PR: 26427 Reviewed by: cg
* mega-commit.cg2001-03-241-9/+8
| | | | | | | | | | | | | | | 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-2/+1
| | | | | | | | | | | | | | | 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-53/+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-8/+23
| | | | | | | remove un-needed setdir functions add bus_teardown_intr calls where necessary destroy our dma tags where necessary destroy ac97 before releasing resources
* initial support for multiple ac97 codecscg2000-09-051-1/+1
|
* change mixer api slightlycg2000-09-011-6/+17
| | | | | | | | | 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-4/+7
| | | | | | | | 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.
* change irq handling slightlycg2000-08-091-11/+4
| | | | add another non-ac97 256av
* 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-1/+2
| | | | don't try to get sample size from snd_dbuf
* Oops, rman_get_bushandle() should be converted to rman_get_virtual()nyan2000-05-201-1/+1
| | | | if resources are mapped to memory.
* Supported the mss on PC-98 and Sound Blaster 98.nyan2000-05-191-1/+1
| | | | Submitted by: "T.Yamaoka" <taka@windows.squares.net>
* fail in attach if we seem to have no ac97 codeccg2000-04-011-1/+1
|
* update the ac97 layer:cg2000-03-201-2/+36
| | | | | | | | | * 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
|
* be less verbosecg2000-01-131-3/+5
|
* exclude chips with subdevices specified on a list of non-ac97 chipscg2000-01-111-2/+24
|
* don't complain about bad intrs unless we get 1000 of them consecutivelycg2000-01-101-3/+4
| | | | | | whilst we are playing or recording. since we should irq ~20 times/sec when active, this should never trigger. in theory. if it never does trigger, the check will be removed.
* return the sample rate set instead of 0. oops. mpg123 should now work.cg2000-01-101-1/+1
|
* driver for neomagic 256av and 256zxcg2000-01-091-0/+641
Obtained from: anonymous author, heavily derived
OpenPOWER on IntegriCloud