summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/pci/csa.c
Commit message (Collapse)AuthorAgeFilesLines
* o break newbus api: add a new argument of type driver_filter_t topiso2007-02-231-2/+8
| | | | | | | | | | | | | bus_setup_intr() o add an int return code to all fast handlers o retire INTR_FAST/IH_FAST For more info: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=465712+0+current/freebsd-current Reviewed by: many Approved by: re@
* Fix -Wundef from compiling the amd64 LINT.ru2005-12-041-4/+4
|
* Implement suspend/resume operation for snd_csa(4)glebius2005-06-271-11/+19
| | | | | | | PR: kern/82243 Submitted by: Serge Semenenko Approved by: re (scottl) MFC after: 1 month
* Use BUS_PROBE_DEFAULT in preference to 0 and BUS_PROBE_LOW_PRIORITY inimp2005-03-011-1/+1
| | | | | 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
|
* 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/+6
| | | | | Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde
* Use PCIR_BAR(x) instead of PCIR_MAPS.jhb2003-09-021-4/+4
| | | | | 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.
* disable resume code implementing panic().cg2003-08-141-1/+6
| | | | this needs to be reimplemented properly.
* Fake a resume method for this chip via calling detach/attach. This letsambrisko2002-07-241-1/+10
| | | | | | | ThinkPads using this chip to have sound after a suspend/resume sequence without resorting to kldunload/kldload. MFC after: 1 week
* Remove clkrun_hack for ThinkPad 570.asmodai2001-11-151-2/+1
| | | | | | PR: 28031 Submitted by: Tan Koan-Sin <freedom@csie.nctu.edu.tw> MFC after: 2 weeks
* MFS rev 1.8.2.8:cg2001-08-271-2/+22
| | | | | | release resources on detach Submitted by: "Christopher N . Harrell" <cnh@netvmg.com>
* many changes:cg2001-08-231-2/+2
| | | | | | | | | | | | | | | * 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.
* the turtle beach santacruz implements ac97 eapd in an inverted sense -cg2001-06-231-13/+12
| | | | inform the ac97 code of this.
* Use the M_ZERO flag to malloc(9)greid2001-06-211-4/+2
| | | | | Reviewed by: cg MFC after: 1 week
* stop csa from panicing in clkrun_hack() - we were using free'd memorycg2001-06-181-4/+3
| | | | | | don't leak memory in clkrun_hack() Submitted by: grog (partially)
* Call bus_teardown_intr when csa_attach fails after the interrupt hastmm2001-06-181-31/+29
| | | | | | | | been set up. PR: kern/28178 Reviewed by: cg MFC after: 2 weeks
* get clkrun the right way aroundcg2001-06-111-5/+0
| | | | remove debug messages
* update this driver to use new firmware and incorporate many fixes.cg2001-05-301-73/+200
| | | | | | this works on cs4630 chips, and should implement the clkrun hack for thinkpads- this will display diagnostic messages when triggered until its correctness is established.
* get the parameters to pci_write_config the right way round. this may fixcg2001-04-241-2/+2
| | | | some non-functional cards/machines
* mega-commit.cg2001-03-241-1/+1
| | | | | | | | | | | | | | | 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.
* Remove unneeded #include <machine/clock.h>phk2000-10-151-1/+0
|
* Finally merge newmidi.tanimura2000-07-111-10/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (I had been busy for my own research activity until the last weekend) Supported devices: SB Midi Port (sbc + midi) SB OPL3 (sbc + midi) 16550 UART (midi, needs a trick in your hint) CS461x Midi Port (csa + midi) OSS-compatible sequencer (seq) Supported playing software: playmidi (We definitely need more) Notes: /dev/midistat now reports installed midi drivers. /dev/sndstat reports only pcm drivers. We need the new name(pcmstat?). EMU8000(SB AWE) does not sound yet but does get probed so that the OPL3 synth on an AWE card works. TODO: MSS/PCI bridge drivers Midi-tty interface to support general serial devices Modules
* add module metadata. this is a hack, sound drivers will eventually present acg2000-07-031-3/+6
| | | | bus to which pcm, mixer, etc will attach.
* this driver does not support the cs4281 and probably never will, different codecg2000-06-061-4/+1
| | | | will be required
* Tidy up stray or bogus #if NFOO > 0 and #include "foo.h".peter2000-01-291-10/+0
|
* - Handle an interrupt for csa primarily in the bridge driver,tanimura2000-01-031-32/+174
| | | | | | | | then invoke the children. As the value of HISR can be read only once, pass the HISR to the children via struct csa_bridgeinfo, stored in the ivars of them. - Clear the contents of serial FIFO upon stopping the DMA for playing. This may eliminate buzz on playing. Experimental.
* Correct the delay durations as in the sample sources provided by Crystal ↵tanimura2000-01-011-4/+4
| | | | Semiconductor.
* Make the origins clear.tanimura1999-12-101-0/+4
| | | | Pointed out by: Tatoku Ogaito <tacha@trap.fukui-med.ac.jp>
* Update for pnp adjustments regarding NPNP.peter1999-12-061-5/+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)
* Remove the 'ivars' arguement to device_add_child() andmdodd1999-12-031-2/+5
| | | | | | | | | | | | | | | | device_add_child_ordered(). 'ivars' may now be set using the device_set_ivars() function. This makes it easier for us to change how arbitrary data structures are associated with a device_t. Eventually we won't be modifying device_t to add additional pointers for ivars, softc data etc. Despite my best efforts I've probably forgotten something so let me know if this breaks anything. I've been running with this change for months and its been quite involved actually isolating all the changes from the rest of the local changes in my tree. Reviewed by: peter, dfr
* Comment out the newmidi stuff.tanimura1999-11-221-0/+4
|
* - Introduce the bridge drivers for Sound Blaser, GUS and Crystaltanimura1999-11-221-0/+789
Semiconductor CS461x/428x. - Add support for GUS and CS461x/428x pcm. Bridges reviewed by: dfr, cg GUS non-PnP support submitted by: Ville-Pertti Keinonen <will@iki.fi> GUS PnP support tested by: Michiru Saito <mich@mtci.ne.jp>
OpenPOWER on IntegriCloud