summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/yds.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Don't free() part of a struct.krw2020-03-271-2/+1
| | | | | | Spotted by CID 1453297, and part of NetBSD's r1.51. ok ratchov@
* Remove unused getdev() audio driver functions.ratchov2016-09-191-17/+1
|
* Remove drain(), query_encoding(), mappage() and get_default_params()ratchov2016-09-141-55/+2
| | | | | methods from all audio drivers and from the audio_if structure as they are never called.
* Replace mountroothook_establish(9) by config_mountroot(9) a narrower APImpi2015-12-111-6/+6
| | | | | | similar to config_defer(9). ok mikeb@, deraadt@
* sizes for free(); ok sthenderaadt2015-09-101-7/+7
|
* Remove all audio format conversion code from the kernel (btw holdingratchov2015-05-111-88/+6
| | | | | | | | | the kernel_lock), as we already do better conversions in user-mode. Yet, no need for every single driver to fiddle with the conversion code as they are done transparently by common MI code. With help from armani and miod, support from mpi ok armani@
* Remove some includes include-what-you-use claims don'tjsg2015-03-141-2/+1
| | | | | | | have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels. ok tedu@ deraadt@
* Nuke yet more obvious #include duplications.krw2014-11-181-2/+1
| | | | ok miod@
* add a size argument to free. will be used soon, but for now default to 0.tedu2014-07-121-8/+8
| | | | after discussions with beck deraadt kettenis.
* unbreak build: exchange %b args order, from miod@ratchov2014-05-171-2/+2
|
* Add a DVACT_WAKEUP op to the *_activate() API. This is called after thederaadt2013-12-061-3/+4
| | | | | | | | kernel resumes normal (non-cold, able to run processes, etc) operation. Previously we were relying on specific DVACT_RESUME op's in drivers creating callback/threads themselves, but that has become too common, indicating the need for a built-in mechanism. ok dlg kettenis, tested by a sufficient amount of people
* Use %z* for size_tsf2013-10-011-2/+2
| | | | while there, fix a few %d into %u
* Since audio code is mp safe, establish isa and pci audio interruptsratchov2013-05-241-3/+3
| | | | | | | | with the IPL_MPSAFE flag. In certain circumstances, this prevents interrupt handlers from waiting the global kernel_lock possibly (hold by slower code) to be released. ok kettenis
* Introduce a global interrupt-aware mutex protecting dataratchov2013-05-151-7/+14
| | | | | | | | | | | | | structures (including sound-card registers) from concurent access by syscall and interrupt code-paths. Since critical sections remain the same, calls to splraise/spllower can be safely replaced by calls to mtx_enter/mtx_leave with two exceptions: (1) mutexes are not reentrant (the inner splraise is thus removed), and (2) we're not allowed to sleep with a mutex (either msleep is used or the mutex is released before sleeping). ok and help from kettenis, a lot of work from armani
* Don't print the device name again in attach error messages occuring beforemiod2012-03-031-5/+4
| | | | a newline ever gets printed. Found the hard way with a device dying on me.
* ansify and de'register some prototypesdhill2012-01-111-124/+44
| | | | ok miod@
* use nitems(); no binary change for drivers that are compiled on amd64.jasper2011-04-031-2/+2
| | | | ok claudio@
* use audio(4) DVACT_{QUIESCE,RESUME}jakemsr2010-09-171-22/+37
|
* remove the powerhook code. All architectures now use the ca_activate treederaadt2010-09-071-10/+1
| | | | | traversal code to suspend/resume ok oga kettenis blambert
* All PWR_{SUSPEND,RESUME} can now be replaced by DVACT_{SUSPEND,RESUME}deraadt2010-09-061-2/+2
|
* Since the changes in neo(4) work, it is very likely that the exact samederaadt2010-08-271-21/+18
| | | | | mechnical changes work in these drivers too. Testing can occur after this commit.
* add two new members to structs audio_encoding and audio_prinfo.jakemsr2010-07-151-9/+15
| | | | | | | | | | for both structs, the new members are 'bps' and 'msb', which describe the number of bytes per sample and data alignment in the sample, respectively. drivers must properly set these fields in the 'query_encoding', 'set_parameters' and 'get_default_params' hardware interface methods. discussed with ratchov, deraadt
* update a random sampling of drivers after the proc.h -> systm.h movetedu2010-04-061-2/+1
|
* make various strings ("can't map mem space" and similar) more consistentsthen2009-03-291-2/+2
| | | | | | | between instances, saving space in the kernel. feedback from many (some incorporated, some left for future work). ok deraadt, kettenis, "why not" miod.
* audio(9) says low level drivers are allowed to change the requestedjakemsr2008-10-251-5/+9
| | | | | | | | | | | | | | values of the audio_params structure during AUDIO_SETINFO if the hardware cannot be set to exactly the requested mode. some drivers do this sometimes. others always return EINVAL if there isn't an exact match. be more consistent. only return EINVAL if an absurd parameter was requested, otherwise return a supported set of parameters, as close as possible to what was requested. with/ok ratchov@
* use ac97 default parameters for these ac97 based drivers.jakemsr2008-05-291-2/+9
| | | | | | | | | | | this makes the emulation expansion factor 1 by default since there's no emulation. previously the factor was 2 because these drivers emulate 8-bit ulaw playback with 16-bit linear encodings. having a factor other than 1 by default creates block size and hiwat/lowat issues with applications that set the block size and hiwat before other parameters. ok ratchov@
* allow low level audio drivers to specify a default sample format,jakemsr2008-04-211-2/+3
| | | | | | | | | instead of 8-bit mono mulaw @ 8kHz. this is just the infrastructure; no drivers are specifying a default yet. ok ratchov@, deanna@
* make microcode file byte-order independent so that the file is the samederaadt2007-01-061-6/+27
| | | | | | on all architectures, and have the driver cope with this as well tested by ian YOU MUST UPDATE YOUR MICROCODE FILE OR THE DRIVER WILL NOT BE HAPPY
* do not set PCI_COMMAND_MASTER_ENABLE explicitly as it's already set in pcisubmatch(); kettenis@ testing; brad@ okmickey2005-08-091-9/+1
|
* nuke vtophys crapjason2005-05-271-8/+1
|
* Let yds_init() return a meaningful value.miod2004-12-301-2/+2
| | | | ok deraadt@
* firmware loading from the filesystem. pci subsystem type thingsderaadt2004-12-201-37/+47
| | | | | are still done early, but audio subsystem setup is deferred till after root is mounted. tested by mcbride
* do not bother w/ void pci_devinfo() calls and free resources on failuresmickey2004-05-241-5/+5
|
* fix typo, KNFmarkus2004-02-191-5/+4
|
* don't disable the Sound Blaster legacy mode by default, as this breaksmarkus2004-02-191-2/+7
| | | | | apm(4). add a flag that disables Sound Blaster legacy mode, this might be necessary for some floppies. help from jmc, ok+test hshoexer.
* avaliable -> availablemiod2003-09-291-2/+2
|
* Nuke more commons: ac97_id2, tinfo_tjason2003-05-141-1/+3
|
* strcpy/sprintf cleanup of sys/dev. miod@, deraadt@ says to commit.ho2003-04-271-10/+10
|
* move NULLification to end so it's useful.tedu2003-02-251-2/+2
| | | | ok jason@
* In typical linux style, set a magic bit that makes the floppy work onjason2003-02-201-2/+2
| | | | a machine with yds; reported by kurem at upcase dot inf dot upol dot cz
* Final __P removal plus some cosmetic fixupsmillert2002-03-141-8/+8
|
* First round of __P removal in sysmillert2002-03-141-49/+49
|
* make all audio drivers use the new allocm and round_buffersize decl's.ericj2002-01-201-8/+10
| | | | will ease porting, and generally cleans up a bit
* remove bogus diagnostic check.ericj2002-01-061-11/+1
| | | | pr#2298
* add 600x read for 744 rev < 2 - from netbsdericj2002-01-041-5/+10
| | | | cleanup dmesg output
* add powerhook support to handle APM resumes correctly, fixes PR 1814jcs2001-12-201-85/+140
| | | | ok provos@ and markus@
* bitmask_snprintf goes awayderaadt2001-12-071-8/+9
|
* Switch everything to the new bus_dmamap_sync API.art2001-11-051-64/+81
| | | | | Most work by Wilbern Cobb <vedge@csoft.org> with some fixes from me, mickey@ and drahn@.
* Change the audio_hm_if->mappage interface to return paddr_t and take off_tart2001-10-311-4/+4
| | | | as the mmap offset.
* Yup, I managed to fat finger all three of these while doing bus_dmamap_sync()jason2001-08-261-5/+5
| | | | conversion (luckily only sparc64 uses the 5 arg form so far =)