summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/pci/ich.c
Commit message (Collapse)AuthorAgeFilesLines
* s/-1000/BUS_PROBE_LOW_PRIORITY/tanimura2005-05-291-1/+1
| | | | Pointed out by: nyan
* Add 6300ESB, which should be treated as ICH4.tanimura2005-05-281-1/+9
| | | | | | PR: kern/81573 Submitted by: OOTOMO Hiroyuki <ootomo@za.wakwak.com> MFC after: 1 week
* Return BUS_PROBE_DEFAULT in preference to 0.murray2005-03-201-1/+1
| | | | Pointed out by: Nate Lawson <nate@root.org>
* Add device id for nForce 4 audio controller.murray2005-03-191-0/+4
| | | | | | PR: kern/78482 Submitted by: Markus Niemistö <markus.niemisto@iki.fi> MFC after: 1 week
* Use BUS_PROBE_DEFAULT in preference to 0 and BUS_PROBE_LOW_PRIORITY inimp2005-03-011-16/+16
| | | | | 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
|
* Audio drivers failed to detect failure condition and attempted toyongari2004-10-131-1/+1
| | | | | | | | | | 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
* Add ICH6 support.ps2004-09-281-2/+8
|
* Correct the capitalization of "nVidia".des2004-09-211-5/+5
|
* Add support Nvidia nForce2(audio)sanpei2004-09-201-0/+4
| | | | | | PR: kern/71317 Submitted by: Mezz <mezz@freebsd.org> MFC after: 1 week
* Add support nForce3 250 audiosanpei2004-09-201-0/+4
| | | | | | PR: kern/71726 Submitted by: FUJIMOTO Kou <fujimoto@j.dendai.ac.jp> MFC after: 1 week
* 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>
* By default, ich4 has NAMBAR and NABMBAR i/o spaces asmatk2004-03-311-1/+12
| | | | | | | | read-only. Need to enable "legacy support", by poking into pci config space. (comment from the patch) Submited by: Autrijus Tang <autrijus@autrijus.org> Approved by: tanimura (mentor)
* 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
* Augment /dev/sndstat with the module names, if applicable.matk2004-03-061-2/+2
| | | | Approved by: tanimura (mentor)
* Correctly reset ich[3-5] sound cards on resume. This fixes audio playbacknjl2003-09-151-0/+30
| | | | | | | | | | | after suspend/resume for me. PR: Submitted by: iwasaki Reviewed by: orion Approved by: cg Obtained from: MFC after:
* Recognize the sound chip on the Opteron-based nForce3 motherboardsobrien2003-09-031-0/+4
| | | | (such as the Asus SK8N).
* Add sound support for the AMD64 8111 chip.obrien2003-08-281-0/+4
| | | | | PR: kern/55932 Submitted by: Mark Kettenis <kettenis@chello.nl>
* 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.
* Switch from legacy to native mode for ICH4 and ICH5.orion2003-08-101-21/+19
| | | | | | | Submitted by: Shin-ichi YOSHIMOTO <yosimoto@waishi.jp> Test by: Markko Merzin <markko@short.cut.ee> PR: kern/53242 MFC after: 5 days
* * support ich5cg2003-07-061-9/+14
| | | | | | | PR: kern/53242 Submitted by: Shin-ichi Yoshimoto <yosimoto@waishi.jp> (partly) Tested by: Dominic Marks <dom@cus.org.uk> (version in PR) MFC after: 1 week
* * add support for amd-768 audio, as used on many dual athlon boards. onlycg2003-07-061-19/+23
| | | | | | | | | | | tested for playback. * modify device name strings for ich chips to better conform with their common names. * remove superflous 'AC97 controller' from nforce device names. MFC after: 1 week
* 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
* - Don't call pci_enable_io() in drivers (unless needed for resume).mdodd2003-04-161-1/+0
| | | | | - Don't test memory/port status and emit an error message; the PCI bus code will do this now.
* Fix mismatch between bus address stored for buffer descriptors andorion2003-04-041-3/+8
| | | | | | | actual address of buffer descriptor. This should fix the reported calibration failures and subsequent speed problems with ich chipsets. Minor calibration comment updates.
* Implement a "sndbuf_getbufaddr" function and use it instead of vtophys().cognet2003-02-201-5/+10
| | | | Reviewed by: orion
* Add nForce2 device id.orion2003-01-131-0/+4
| | | | | Submitted by: "Mikko S. Hyvarinen" <morphy@morphy.iki.fi> MFC after: 5 days
* Cater for ich4 quirks.orion2002-08-191-9/+26
| | | | | Reported by: Jacob Rhoden Tested by: Jacob Rhoden, mp
* Add PCI ID for the ICH4 AC97 controller.mp2002-08-121-0/+4
|
* Delay the AC97 calibration until after the system clock has beenscottl2002-06-271-5/+22
| | | | | | | | | | calibrated. This fixes the problem where playback and recording do not run at the correct speed. It probably also eliminates the need for the hacks/workarounds/sysctl's that were previously devised to deal with this, but I will leave that for a different time. Reviewed by: orion
* No longer attempt to power off the ACLINK during suspend - luigiorion2002-05-051-3/+0
| | | | reports this causes his ich machine to hang.
* Recognize the AC97 interface to the onboard sound controller on the Nvidiajhb2002-04-151-0/+4
| | | | | | | | nForce chipset. Playback at least seems to work fine with the ich driver out of the box. Sponsored by: The Weather Channel Help from: cg
* Fix the play / record rate setting so that it actually works.jhay2002-04-141-3/+8
| | | | | | | | The extra microphone channel capability is part of the "normal" ac97 capabilities and not an extended ac97 capability. Now recording on codecs without a seperate mic channel works. MFC after: 1 week
* Add play (but not record) support for the Sis 7012.alfred2002-02-191-3/+27
| | | | Submitted by: Mike Meyer <mwm@mired.org>
* Change ich_calibrate to busy wait on buffer fill level and use a moreorion2002-01-181-40/+77
| | | | | | | | | | likely looking rate calculation. Install interrupt handler before calling ich_init as the initialization occasionally generates spurious interrupts. These changes are derived from cg's work in progress version of this driver.
* Save and restore state for suspend/resume.orion2001-12-211-4/+35
| | | | | PR: kern/28692 Obtained from: SAKIYAMA Nobuo <sakichan@sakichan.org>
* Correct unexpected interrupt detection.orion2001-12-191-1/+1
|
* Nitlets.orion2001-12-191-9/+8
|
* Clear resume interrupts - these can occur during initialization andorion2001-12-191-22/+38
| | | | | | | | | must be cleared to prevent machine hanging (presently aflicts -current and -stable). Problem reported by Bruce Montague <brucem@cse.iitkgp.ernet.in> PR: kern/29769 (probably)
* Add calibration test to determine extent of AC97 overclocking (if any).orion2001-12-181-0/+50
|
* Added a sysctl control variable "ac97rate" to allow manual tuning oforion2001-12-171-3/+28
| | | | | | | | | | | | the link rate - some ich motherboards overclock ac97 out of the box. Will hopefully replace this with a callibration loop in time for 4.5R freeze. Problem reported by Luigi Rizzo and fix derived from his code (put diff in ich.c rather than ac97.c). MFC after: 3 days
* Fix typo introduced with last commit.orion2001-11-221-5/+3
|
* Correct extmode initialization.orion2001-11-211-4/+6
| | | | MFC after: 3
* Add Id for 82801CA (ICH3?). The ich driver seems to work fine on thepeter2001-11-031-1/+5
| | | | laptop that had it.
* * register the correct number of channelscg2001-10-071-3/+3
| | | | * include hw buffer size in sndstat info
* don't enable the mic record channel unless the codec supports it.cg2001-09-181-10/+17
| | | | allow hardware buffer size to be specified using hints.
* * change buffering method a bitcg2001-08-291-40/+30
| | | | | | | | | * swap record/mic channels * initialise all channels * align dma buffers to 8 bytes Submitted by: Katsurajima Naoto <raven@katsurajima.seya.yokohama.jp> (mostly)
* many changes:cg2001-08-231-14/+27
| | | | | | | | | | | | | | | * 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.
* * simplifycg2001-07-031-823/+233
| | | | | | | | | | | | * add support for mic record channel * add support for setblocksize * make mpsafe * make getptr accurate * reduce buffer size from 64k to 16k for better synchronisation
OpenPOWER on IntegriCloud