2014-09-19 21:27:12 +04:00
|
|
|
.\" $NetBSD: hdaudio.4,v 1.14 2014/09/19 17:27:12 christos Exp $
|
2009-09-06 21:25:55 +04:00
|
|
|
.\"
|
2010-09-28 16:25:27 +04:00
|
|
|
.\" Copyright (c) 2009, 2010 The NetBSD Foundation, Inc.
|
2009-09-06 21:25:55 +04:00
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" This code is derived from software contributed to The NetBSD Foundation
|
|
|
|
.\" by Precedence Technologies Ltd
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
|
|
|
|
.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
|
|
.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
|
|
.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
|
|
|
|
.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
|
|
.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
|
|
.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
|
|
.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
|
|
.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
|
|
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
.\" POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
.\"
|
2014-09-19 21:27:12 +04:00
|
|
|
.Dd September 19, 2014
|
2009-09-06 21:25:55 +04:00
|
|
|
.Dt HDAUDIO 4
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm hdaudio
|
2009-09-07 20:22:46 +04:00
|
|
|
.Nd High Definition Audio device driver
|
2009-09-06 21:25:55 +04:00
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Cd "hdaudio* at pci? dev ? function ?"
|
|
|
|
.Cd "hdafg* at hdaudiobus?"
|
|
|
|
.Cd "audio* at audiobus?"
|
|
|
|
.Pp
|
2014-09-19 21:27:12 +04:00
|
|
|
.Cd "options HDAUDIOVERBOSE"
|
2009-09-06 21:25:55 +04:00
|
|
|
.Cd "options HDAUDIO_DEBUG"
|
2012-04-20 00:20:34 +04:00
|
|
|
.Cd "options HDAFG_DEBUG"
|
2009-09-06 21:25:55 +04:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
device driver is expected to support any PCI device which is
|
|
|
|
compliant to the High Definition Audio Specification 1.0.
|
|
|
|
It is a replacement for
|
|
|
|
.Xr azalia 4 .
|
|
|
|
It was written from scratch following the Intel HD Audio and Microsoft
|
|
|
|
Universal Audio Architecture specifications.
|
2009-09-06 21:59:09 +04:00
|
|
|
.Pp
|
2009-09-06 21:25:55 +04:00
|
|
|
The driver consists of two interlinked components, which reflects the
|
|
|
|
hardware design.
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
component interfaces with a PCI/PCIe bus and provides an
|
|
|
|
.Xr hdaudiobus 4
|
|
|
|
onto which different function groups attach.
|
2009-09-06 21:59:09 +04:00
|
|
|
Each function group (e.g. audio, vendor-specific modem) is exported as a
|
2009-09-06 21:25:55 +04:00
|
|
|
separate child device of the
|
|
|
|
.Nm
|
|
|
|
controller.
|
2009-09-06 21:59:09 +04:00
|
|
|
Audio function groups (a.k.a. audio codec) are exported as
|
2009-09-06 21:25:55 +04:00
|
|
|
.Xr hdafg 4
|
|
|
|
devices.
|
2009-09-06 21:59:09 +04:00
|
|
|
.Pp
|
2009-09-06 21:25:55 +04:00
|
|
|
Audio codecs are available from a number of manufacturers and are made up of a
|
|
|
|
number of widgets (e.g. audio mixer, output pin, analog-to-digital converter).
|
|
|
|
The way the widgets are interlinked varies significantly between
|
|
|
|
implementations.
|
|
|
|
The tree of widgets must be parsed and mapped to
|
|
|
|
.Xr mixer 4
|
|
|
|
controls.
|
|
|
|
As part of this process, loops in the inter-codec links must be detected
|
|
|
|
and muted, bi-directional pins must be set up appropriately and the locations
|
|
|
|
of pins determined.
|
|
|
|
Unlike the
|
|
|
|
.Xr azalia 4
|
|
|
|
driver (which tends to generate a large number of unclearly named
|
|
|
|
.Xr mixer 4
|
2009-09-06 21:59:09 +04:00
|
|
|
controls),
|
2009-09-06 21:25:55 +04:00
|
|
|
.Nm
|
|
|
|
works backwards by starting with a list of desired, consistent and compatible
|
|
|
|
.Xr mixer 4
|
|
|
|
controls and configuring/discovering appropriate widget link routes to fit.
|
2009-09-06 21:59:09 +04:00
|
|
|
.Pp
|
2009-09-06 21:25:55 +04:00
|
|
|
By following the published mechanisms for common implementations of widget
|
|
|
|
parsing, it is expected that nearly all High Definition Audio devices will
|
|
|
|
be supported without requiring per-device quirks.
|
2013-05-10 15:05:14 +04:00
|
|
|
.Sh HARDWARE
|
2013-08-06 20:54:46 +04:00
|
|
|
In addition to many on-board sound cards included in mainboards, the following
|
2013-05-10 15:05:14 +04:00
|
|
|
add-on card is supported:
|
|
|
|
.Bl -tag
|
|
|
|
.It TerraTec Aureon 7.1 PCIe
|
|
|
|
.El
|
2009-09-06 21:25:55 +04:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr audio 4 ,
|
|
|
|
.Xr mixer 4 ,
|
|
|
|
.Xr pci 4 ,
|
2010-09-28 16:25:27 +04:00
|
|
|
.Xr hdaudioctl 8 ,
|
2012-03-13 23:25:39 +04:00
|
|
|
.Pp
|
|
|
|
.Lk http://www.intel.com/design/chipsets/hdaudio.htm "Intel High Definition Audio"
|
|
|
|
.Pp
|
|
|
|
.Lk http://www.microsoft.com/whdc/device/audio/ "Audio Device Technologies for Windows"
|
2009-09-06 21:59:09 +04:00
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
device driver appeared in
|
2010-09-28 16:25:27 +04:00
|
|
|
.Nx 5.1 .
|
2009-09-06 21:25:55 +04:00
|
|
|
.Sh AUTHORS
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
driver was written by
|
2013-07-21 01:39:55 +04:00
|
|
|
.An Jared McNeill Aq Mt jmcneill@NetBSD.org
|
2009-09-06 21:25:55 +04:00
|
|
|
under contract by
|
2012-08-14 00:31:15 +04:00
|
|
|
.Lk http://www.precedence.co.uk/ "Precedence Technologies Ltd."
|
2009-09-06 21:59:09 +04:00
|
|
|
The UAA-compliant widget parser is derived from the
|
|
|
|
.Fx
|
|
|
|
snd_hda(4) driver.
|
2009-09-06 21:25:55 +04:00
|
|
|
.Sh BUGS
|
|
|
|
The following items are not yet implemented:
|
2009-09-06 21:59:09 +04:00
|
|
|
.Bl -bullet
|
|
|
|
.It
|
|
|
|
Improve power management support when driver is idle
|
|
|
|
.It
|
|
|
|
Add support for non-PCM output formats
|
|
|
|
.It
|
|
|
|
Handle unsolicited RIRB messages
|
|
|
|
.It
|
|
|
|
Modem function groups
|
|
|
|
.El
|