summaryrefslogtreecommitdiffstats
path: root/sys/dev/ic/ac97.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add mixer save/restore capability to the audio(4) driver andratchov2018-04-111-18/+1
| | | | | | | | use it during suspend/resume. Remove driver-specific mixer save/restore bits that don't need to be duplicated in every low-lever driver. ok mpi
* Fix negative array index read. Coverity CID 1453243 and 1453334.mestre2017-08-221-7/+15
| | | | | | | Check if cp->dev value is invalid prior to using it as an array index and only then make the assignment si = &as->source_info[cp->dev]. OK tb@ and jsg@
* Remove drain(), query_encoding(), mappage() and get_default_params()ratchov2016-09-141-7/+1
| | | | | methods from all audio drivers and from the audio_if structure as they are never called.
* fairly simple sizes for free(); ok teduderaadt2015-08-281-2/+2
|
* Remove all audio format conversion code from the kernel (btw holdingratchov2015-05-111-4/+2
| | | | | | | | | 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@
* add a size argument to free. will be used soon, but for now default to 0.tedu2014-07-121-2/+2
| | | | after discussions with beck deraadt kettenis.
* use host_flags directly as they're initialized during attach time.fgsch2011-01-031-3/+2
| | | | jakemsr@ ok.
* the flags method of the ac97 host interface is optional. check thatjakemsr2011-01-031-2/+3
| | | | | it not NULL before using it. fixes crash reported by jmc@
* * recognize/support the Dynex DX-SC51 in envy(4)jakemsr2010-12-221-2/+24
| | | | | | | | * allow ac97(4) flags to be set in envy(4), if there is an ac97 codec * configure the vt1616 codec on the Dynex DX-SC51 for multi-channel operation ok ratchov
* suspend/resume support for auich, and some infrastructure in ac97jakemsr2010-08-081-14/+78
| | | | "commit" deraadt
* add two new members to structs audio_encoding and audio_prinfo.jakemsr2010-07-151-1/+3
| | | | | | | | | | 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
* Add VT1617 codec ID used in VIA Tremor 5.1 cards,ratchov2010-02-251-1/+2
| | | | from Alexandr Shadchin <alexandr.shadchin at gmail.com>, thanks!
* - instead of rolling a macro that is functional equivalent to nitems(),jasper2009-12-151-8/+6
| | | | | | just use nitems(). (this leaves NENTS() alone for now) ok deraadt@ krw@
* S/PDIF output support in ac97(4), auich(4) and auvia(4)jakemsr2008-10-231-12/+64
| | | | | | | | from NetBSD tested by a few with no regressions. optical works for jsg@. ok ratchov@
* reove redundant variable sample rate checks.jakemsr2008-10-231-13/+1
| | | | ok ratchov (a while ago)
* add a function to get default parameters for ac97 codecs. all ac97jakemsr2008-05-251-1/+18
| | | | | | codecs support 16-bit stereo slinear_le @ 48kHz. ok ratchov@
* pin 47 on ALC65{0,5,8} ac97 codecs can be used for either eapd orjakemsr2008-02-121-1/+9
| | | | | | | | | | | | | | | | | spdif-in. usually the deault of spdif-in is used, but some ATI devices use pin 47 for eapd. add a list of subsystem ids (from ALSA) for these devices, and set bit 1 of register 7a to select the correct function of pin 47 for these devices. there was code here to do this prior to the ac97 update, but it was accidentally removed. rename the flag and bit to more accurately reflect what this does and hopefully avoid future confusion. problem noticed and fix tested/ok'd by matthieu@, thanks also some discussion with and pointers from brad@, thanks
* bring in lots of ac97(4) and auvia(4) updates from NetBSDjakemsr2008-01-151-226/+455
| | | | | | | | | | | | | | | | | user visible changes: - when setting up ac97(4) mixer items, for some features like surround sound, check if the feature if supported by the codec and only add items for that feature if it is - auvia(4) now supports multichannel playback with at least some multichannel ac97(4) codecs fixes problems for me and ajacoutot with different auvia(4) devices/codecs. no regressions reported by testers. if you have an ac97(4) audio device and are using mixerctl.conf(5), you may want/need to update it. ok ratchov
* Check for a negative devinfo index, which could get here throughdeanna2008-01-131-2/+2
| | | | | | mixer_ioctl. ok jakemsr@
* More easy bzero() -> M_ZERO. Use 'p = malloc(sizeof(*p) ...'.krw2007-10-011-4/+2
|
* Add ids for two Conexant codecs; not sure they're officialian2007-07-271-2/+3
| | | | | | | ("does not exist outside of mentions in linux/netbsd on the web"), gleaned from http://www.ussg.iu.edu/hypermail/linux/kernel/0504.0/1146.html. "sure" deraadt@, ok with above comment jsg@
* don't always spew massive debug messages just because AUDIO_DEBUG isjakemsr2007-07-091-3/+2
| | | | defined.
* newer alc codecs have revision in the low bits; pt out by jaspermickey2006-06-301-5/+5
|
* Quirk for MSI Megabook S270 audio output. Ok deraadt@.matthieu2006-04-271-2/+6
|
* correct CX20468 initialization; mickey@ ok'ed this some time ago.fgsch2005-12-281-3/+3
| | | | if you have this conexant codec give it a try.
* some codecs have an external amplifier, and in some hw the bit to poweringfgsch2005-12-141-21/+9
| | | | | | it down seems to be inverted, so rather than guessing or workaround this, add a extamp var so it can be toggled in userland via mixerctl(1). audio works in hp nx6125 now; tested by todd@, mickey@ ok.
* ansi, no binary change.fgsch2005-12-121-50/+30
|
* Switch master and surround volume controls on AD1888 and AD1985canacar2005-06-181-5/+24
| | | | Control muting of both left and right channels.
* correct names for miscellaneous control bit registermjc2005-06-061-2/+2
| | | | ok mickey@
* AD1981 is actually AD1980mjc2005-06-061-2/+2
| | | | ok mickey@
* correctly initialize AD1886.joris2005-05-251-2/+11
| | | | "go ahead" mickey@
* add support for enabling amp power on a non-documented Conexant codectodd2005-02-161-1/+19
| | | | | | ideas from alsa pointers by jsg@; mickey@ ok
* add a bunch of more codecs from var srcs. this makes almost everything from the dmesglog to be resolved proper. most unresolvants are bit-errors on the ac link anywaymickey2005-01-311-3/+23
|
* Fix two Cirrus Logic codec IDs.kettenis2005-01-301-3/+3
| | | | ok millert@
* update dead URL, from Steve Shockley <steve.shockley@shockley.net>jaredy2005-01-171-2/+2
|
* ad1981 does not like init; from fgsch@mickey2004-11-221-2/+2
|
* a few more codecs from nbsdmickey2004-11-181-3/+11
|
* a few more c-media codec idsmickey2004-10-141-1/+4
|
* a whole bunch of avance logic codecs and also patch for somemickey2004-10-041-3/+26
|
* two more icensemble codecs. now they are via really...mickey2004-09-141-1/+3
|
* kill evil spacesmickey2004-04-231-11/+10
|
* properly id CX20468 and patch it too, also one more _cx codec; made possible by fries@mickey2004-04-231-4/+16
|
* change url; jjy2+@pitt.eduderaadt2004-02-271-3/+3
|
* another ad codecmickey2003-11-051-1/+2
|
* more codecmickey2003-09-251-4/+22
|
* VT1612A; matthew.gream@pobox.comderaadt2003-07-231-1/+4
|
* Add support for AD1985, deraadt@ okcouderc2003-07-151-3/+29
|
* strcpy/sprintf cleanup of sys/dev. miod@, deraadt@ says to commit.ho2003-04-271-2/+2
|
* a couple of sigmatel codec idsmickey2003-04-091-1/+3
|