Commit Graph

54 Commits

Author SHA1 Message Date
cegger
9d57c80079 use aprint_*_dev and device_xname 2008-04-10 19:13:36 +00:00
dyoung
9aa9ebb999 Add a method to detach children. Use device_t and accessors. Use
PMF_FN_*.
2008-02-23 01:11:12 +00:00
jmcneill
4c1d81b2b5 Merge jmcneill-pm branch. 2007-12-09 20:27:42 +00:00
kent
31b57ef849 support for playback-only devices such as Radeon HD 2x00 2007-08-14 13:57:56 +00:00
kent
f5cb63973e Add PCI_SUBCLASS_MULTIMEDIA_HDAUDIO to pcireg.h
and azalia(4) uses it
2007-05-13 03:30:46 +00:00
kent
cdc3ad42b2 * azalia_code_connect_stream()
set stream#0 for unused converters in a group

PR#35658 by kikuma norimitsu
2007-05-08 04:35:37 +00:00
kent
1aa70e7d65 Some codecs need explicit initialization even for uni-directional pins.
Pointed out by Deanna Phillips
2007-05-08 01:39:33 +00:00
kent
df732e91f1 don't start dmesg lines with \t to do grep easily 2007-03-11 14:34:04 +00:00
kent
4540a56313 add diagnostic code in azalia_codec_construct_format() 2007-03-10 16:39:37 +00:00
christos
53524e44ef Kill caddr_t; there will be some MI fallout, but it will be fixed shortly. 2007-03-04 05:59:00 +00:00
thorpej
712239e366 Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
2007-02-21 22:59:35 +00:00
kent
5dd4ff1479 If both of AZALIA_DEBUG and AZALIA_DEBUG_DOT are defined,
a DOT file for Graphviz representing the widget structure
is printed.
2007-02-05 13:52:26 +00:00
christos
168cd830d2 __unused removal on arguments; approved by core. 2006-11-16 01:32:37 +00:00
christos
4d595fd7b1 - sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
2006-10-12 01:30:41 +00:00
jmcneill
4c8d1c711c Don't use // for comments. 2006-09-24 03:42:41 +00:00
christos
78cdbd8e9c add missing initializer. 2006-08-28 00:04:21 +00:00
kent
15c376e363 * azalia_init_corb()
No need to confirm CORBRPRST is set even with ICH6/ICH7
2006-07-21 17:30:26 +00:00
kent
5b129585f8 For MCP55, don't check CORBRPRST flag
a part of PR#33741
2006-07-13 03:57:40 +00:00
kent
fa7f95d3ad * azalia_pci_attach()
print the vendor name of the device
* azalia_pci_detach()
 add some debug messages
* azalia_codec_delete()
 fix a possible NULL dereference
2006-06-27 22:02:14 +00:00
kent
b2c67a5653 * disconnect a stream and audio converters on a halt of the stream
* enable S/PDIF for a digital audio converter when connecting
 a stream
* rename "inputs.usingdac" to "playback.mode", and
 "record.usingadc" to "record.mode"
* add S/PDIF output configuration to ALC882
2006-06-25 13:41:58 +00:00
kent
6d02918db1 ALC260 & Fujitsu LOOX:
mute the internal speaker when the headphone is inserted, and
unmute the internal speaker when the headphone is pulled out.
2006-06-25 07:36:33 +00:00
kent
59dc5ba7f0 printf() -> DPRINTF(()) 2006-06-25 06:37:20 +00:00
kent
3bd12046d3 avoid infinite recursive call of azalia_rirb_kick_unsol_events() 2006-06-25 06:34:08 +00:00
kent
19cf46b4ef handle unsolicited responses.
A codec can receive unsolicited responses by codec_t::unsol_event()
2006-06-25 05:05:51 +00:00
kent
f7aa5ababf If the encoding of an audio converter is 0, refers
the audio function node.  CMI9880 0.2 has such ADCs.

PR#33787
2006-06-24 00:15:22 +00:00
kent
363d80df38 check return values of azalia_init_corb() and azalia_init_rirb()
a part of PR#33741
2006-06-16 12:16:58 +00:00
kent
208b312076 support for a converter group of which members have
non-identical bits_rates.
2006-06-15 16:08:13 +00:00
kent
8b818d700b - always prints the codec index in dmesg
- add missing \n
2006-06-13 14:20:09 +00:00
kent
ba5e551515 fix audio_format allocation for recording 2006-06-11 12:18:00 +00:00
kent
fa89e6f87e support for multi-channel (>=3) recording with ALC880, ALC882, or STAC9221 2006-06-11 11:48:39 +00:00
kent
655c2002db If the codec supports for modem, print that we support for no modem
explicitly.
2006-06-11 07:45:18 +00:00
kent
a70f7f188d - print audio format only when the format is changed
- print the name of STAC9220 codec
2006-06-09 16:56:30 +00:00
kent
71842e07b1 shorten audio format message 2006-06-09 16:26:58 +00:00
kent
0b0ab7efe7 * move mixer functions from azalia.c to azalia_codec.c, and
rename them like azalia_mixer_foo() to 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
2006-06-07 15:23:59 +00:00
kent
72804b8f8c Don't assume the device always has PCI_MAPREG_MEM_TYPE_64BIT.
This change might help nForce 410/430 support.
2006-05-07 08:31:44 +00:00
kent
dd89fc8bd6 Don't crash when a connection list has invalid NIDs.
PR#32485 by Samuel Tran
2006-01-16 14:15:26 +00:00
kent
225ba2620d add some trace messages in azalia_mixer_init(). 2006-01-08 16:52:42 +00:00
kent
a2e0795bf5 - make this compile with AZALIA_DEBUG
Thanks to Tomokatsu HAYAKAWA.
- introduce WIDGET_CHANNELS macro
2006-01-03 14:16:28 +00:00
christos
95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
kent
50e11da459 * shorten *_init_dacgroup() functions
* add a hook point for widget initialization and implement for ALC882
2005-09-29 04:14:03 +00:00
kent
4443bcd69a add codec-specific code for ALC260, ALC880, ALC882,
and STAC9221 to detect DAC/ADC cominations.
2005-09-28 14:26:19 +00:00
kent
6e455dd565 split azalia.c into three files.
* azalia_codec.c: code for specific codecs
  * azalia.c: other code
  * azalia.h: common definitions
2005-09-28 13:06:49 +00:00
kent
70c1989a17 * azalia_attach_intr()
ignore errors of codec initializations if at least one
codec is initialized successfully

* azalia_alloc_dmamem()
  fail if the HDA controller does not support 64 bit addressing
and buf_dmamap_* allocate a 64 bit address.

Pointed out by Brett Lymn
2005-09-26 17:30:04 +00:00
kent
969266b7d7 * azalia_mixer_init()
set AUDIO_MAX_GAIN/2 to all of volume items.
2005-08-02 13:20:50 +00:00
kent
98532e5e3e - handle widgets without format override' or amp param override'
- support for volume knob
2005-08-02 11:17:56 +00:00
kent
b5db3a23de - make sure the power state of a node is D0
- ignore unsoliticited responses
2005-07-31 06:48:15 +00:00
kent
a69b665329 make this compile with AZALIA_DEBUG.
thanks to cube@
2005-07-29 16:20:53 +00:00
kent
d091e19a34 - free all of allocated resources when an error occurs
- code cleanup
2005-06-25 16:32:39 +00:00
kent
ad8ef76d8d support for recording 2005-06-21 14:51:37 +00:00
kent
e3c53b72af - print the controller name if possible
- make the max values of mixers AUDIO_MAX_GAIN
- reset the stream in trigger_output()
2005-06-20 11:48:47 +00:00