summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/azalia.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* implement azalia_create_encodings, which scans through the supportedjakemsr2008-11-041-2/+3
| | | | | | | formats and creates an array of unique encodings. use the array in azalia_query_encoding. in other words, no more duplicate encodings in `audioctl encodings`.
* volume scaling/setting cleanup:jakemsr2008-11-041-2/+1
| | | | | | | | | | | | * MAX_VOLUME_255 has been defined for ages. remove this define and the code that was only being used when this wasn't defined. * remove azalia_generic_mixer_{max,validate_value} since they are pointless. * when setting both stereo channels to the same level, just set the right channel level to the left channel level instead of calculating both separately. from Alexey Suslikov
* Add S/PDIF support. From NetBSD.jakemsr2008-10-161-5/+16
| | | | | | | | Clean up a little while here. from Alexey Suslikov, thanks tested by several as part of a larger diff, thanks also
* Some pins are not connected and dead-end. This diff removes such pinsjakemsr2008-10-161-1/+10
| | | | | | | | | from conection and mixer lists. It also removes knobs connected to power widgets. from NetBSD via Alexey Suslikov, thanks tested by several, thanks also
* First pass at removing clauses 3 and 4 from NetBSD licenses.ray2008-06-261-8/+1
| | | | | | | | | Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
* Rework the debug dmesg to perform a more complete codec dump.deanna2007-10-101-1/+41
| | | | Tested by jmc, ckuethe, kettenis and jakemsr.
* If 44.1kHz sample rate isn't supported, use 48kHz instead.deanna2007-09-101-1/+2
|
* Add command verbs, a mixer target and mixer controls for EAPD control.deanna2007-09-101-1/+5
| | | | | | | | | | Some codecs, like the AD1984 found in x60s, need this in order for the speakers to work. New mixer items with names *.eapd will show up for codecs that need it and that are using the generic functions. From kent@netbsd
* We will never make a mixer item out of the pin control operation, sodeanna2007-07-231-5/+4
| | | | | | | | | | | move it out of azalia_generic_mixer_set into its own function, azalia_generic_mixer_pinctrl. From kent@netbsd. In azalia_stac9200_mixer_init, let the unsolicited event handler make the initial headphone vs speaker choice. Removes some duplicate code. These changes only affect STAC9200. Tested by krw@ on a Latitude D620.
* - Add support for handling unsolicited events (based on NetBSD).deanna2007-05-021-7/+13
| | | | | | | | | | | | | | | | - The STAC9200 codec was mistakenly referred to as STAC9220. Change this to STAC9200 and add a link to the datasheet. - Add a new target, MI_TARGET_PINCTRL, to azalia_generic_mixer_set() that allows us to turn pins on and off. - Add an unsolicited event handler for STAC9200 that will toggle the headphone and speaker pins. This means the speaker will now mute and unmute based on headphone presence. - Spelling: PRESENSE -> PRESENCE Tested by ajacoutot@, tedu@ and krw@, ok krw@.
* add some constant macros for unsolicited response and jack sense.brad2006-06-231-1/+6
| | | | From kent NetBSD
* * support for multi-channel (>=3) recording with ALC880, ALC882, or STAC9221brad2006-06-161-9/+10
| | | | | | | | | | | | | * azalia_codec_init_vtbl() recognize the name of AD1983 * azalia_generic_codec_find_dac() check validity of a node in a connection list * introduce MIXER_DELTA, and simplify the code with it * codec-specific mixer initialization for STAC9220 From kent NetBSD Tested by a few end-users.
* * move mixer functions from azalia.c to azalia_codec.c, andbrad2006-06-141-2/+10
| | | | | | | | | | | | | | | rename them like azalia_mixer_foo() to azalia_generic_mixer_foo() * enable codec-specific code to hook any mixer operations such as creating mixer items, or special handling for a specific item. * provide a custom mixer table specific to ALC260 * provide a custom mixer table specific to Fujitsu LOOX From kent NetBSD ok jason@
* use the PCI multimedia subclass type HD audio define from pcireg.hbrad2006-05-111-4/+1
|
* sync NetBSD RCS idsbrad2006-05-081-2/+2
|
* Don't crash when a connection list has invalid NIDs.brad2006-05-081-1/+5
| | | | From NetBSD
* OpenBSD RCS idsbrad2006-05-081-0/+1
|
* - make this compile with AZALIA_DEBUGbrad2006-05-081-0/+1
| | | | | | - introduce WIDGET_CHANNELS macro From NetBSD
* not quite working driver for azalia audio (this is essentially AC97 for > 2005)jason2006-04-261-0/+546
Just as brain damaged and ill specified. From NetBSD.