2006-07-15 20:31:26 +00:00
|
|
|
.\"
|
2007-09-12 07:43:43 +00:00
|
|
|
.\" Copyright (c) 2003-2007 Yuriy Tsibizov
|
2006-07-15 20:31:26 +00:00
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" 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 AUTHOR 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 AUTHOR 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.
|
|
|
|
.\"
|
|
|
|
.\" $FreeBSD$
|
|
|
|
.\"
|
2008-05-28 05:46:04 +00:00
|
|
|
.Dd May 28, 2008
|
2006-07-15 20:31:26 +00:00
|
|
|
.Dt SND_EMU10KX 4
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm snd_emu10kx
|
|
|
|
.Nd Creative SoundBlaster Live! and Audigy sound cards device driver
|
|
|
|
.Sh SYNOPSIS
|
2006-07-16 20:43:12 +00:00
|
|
|
To compile this driver into the kernel, place the following lines in your
|
|
|
|
kernel configuration file:
|
|
|
|
.Bd -ragged -offset indent
|
2006-07-15 20:31:26 +00:00
|
|
|
.Cd "device sound"
|
|
|
|
.Cd "device snd_emu10kx"
|
2006-07-16 20:43:12 +00:00
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
Alternatively, to load the driver as a module at boot time, place the
|
|
|
|
following line in
|
|
|
|
.Xr loader.conf 5 :
|
|
|
|
.Bd -literal -offset indent
|
|
|
|
snd_emu10kx_load="YES"
|
|
|
|
.Ed
|
2006-07-15 20:31:26 +00:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
bridge driver allows the generic audio driver
|
|
|
|
.Xr sound 4
|
2007-09-12 07:43:43 +00:00
|
|
|
to attach to Creative sound cards based on the EMU10K1, CA0100, CA0101, CA0102
|
2006-07-15 20:31:26 +00:00
|
|
|
and CA0108 DSPs.
|
|
|
|
.Pp
|
2006-09-30 15:14:49 +00:00
|
|
|
The
|
2006-07-15 20:31:26 +00:00
|
|
|
.Nm
|
2006-07-16 20:43:12 +00:00
|
|
|
sound cards have a PCM part, which is accessible through one to five
|
2006-07-15 20:31:26 +00:00
|
|
|
.Xr pcm 4
|
2006-09-30 15:14:49 +00:00
|
|
|
devices (see
|
2006-07-15 20:31:26 +00:00
|
|
|
.Sx MULTICHANNEL PLAYBACK
|
2006-09-30 15:14:49 +00:00
|
|
|
for details), and MPU401-compatible MIDI I/O controller, which is accessible
|
2006-07-16 20:43:12 +00:00
|
|
|
through the midi device.
|
2008-05-28 05:46:04 +00:00
|
|
|
Wave table synthesizer support is not available.
|
2006-07-15 20:31:26 +00:00
|
|
|
.Sh HARDWARE
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
driver supports the following sound cards:
|
|
|
|
.Pp
|
|
|
|
.Bl -bullet -compact
|
|
|
|
.It
|
2006-07-16 20:43:12 +00:00
|
|
|
Creative Sound Blaster Live!\& (EMU10K1 Chipset).
|
|
|
|
Both PCM and MIDI interfaces are available.
|
2006-07-15 20:31:26 +00:00
|
|
|
.It
|
2006-07-16 20:43:12 +00:00
|
|
|
Creative Sound Blaster Audigy (CA0100 and CA0101 Chipset).
|
|
|
|
PCM and two MIDI interfaces available.
|
2006-07-15 20:31:26 +00:00
|
|
|
.It
|
|
|
|
Creative Sound Blaster Audigy 2 and Creative Sound Blaster Audigy 4 (CA0102
|
2006-07-16 20:43:12 +00:00
|
|
|
Chipset).
|
|
|
|
PCM support is limited to 48kHz/16 bit stereo (192kHz/24 bit part
|
2006-07-15 20:31:26 +00:00
|
|
|
of this chipset is not supported).
|
|
|
|
.It
|
2006-07-16 20:43:12 +00:00
|
|
|
Creative Sound Blaster Audigy 2 Value (CA0108 Chipset).
|
|
|
|
PCM support is limited
|
2006-09-30 15:14:49 +00:00
|
|
|
to 48kHz/16 bit stereo (192kHz/24 bit part of this chipset is not supported).
|
2006-07-15 20:31:26 +00:00
|
|
|
There is no MIDI support for this card.
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Nm
|
2006-07-16 20:43:12 +00:00
|
|
|
driver does
|
|
|
|
.Em not
|
2008-05-28 05:46:04 +00:00
|
|
|
support the following sound cards (although they have names
|
2006-07-15 20:31:26 +00:00
|
|
|
similar to some supported ones):
|
|
|
|
.Pp
|
|
|
|
.Bl -bullet -compact
|
|
|
|
.It
|
2006-09-30 15:14:49 +00:00
|
|
|
Creative Sound Blaster Live!\& 24-Bit, identified by
|
|
|
|
.Fx
|
|
|
|
as
|
|
|
|
.Qq Li "emu10k1x Soundblaster Live! 5.1" .
|
2006-07-15 20:31:26 +00:00
|
|
|
.It
|
2006-09-30 15:14:49 +00:00
|
|
|
Creative Sound Blaster Audigy LS / ES, identified by
|
|
|
|
.Fx
|
|
|
|
as
|
|
|
|
.Qq Li "CA0106-DAT Audigy LS" .
|
2006-07-15 20:31:26 +00:00
|
|
|
.It
|
2007-09-12 07:43:43 +00:00
|
|
|
All other Creative sound cards with -DAT chipsets.
|
|
|
|
.It
|
|
|
|
All Creative X-Fi series sound cards.
|
2006-07-15 20:31:26 +00:00
|
|
|
.El
|
|
|
|
.Sh MULTICHANNEL PLAYBACK
|
2008-05-28 05:46:04 +00:00
|
|
|
By default the
|
|
|
|
.Nm
|
|
|
|
driver is loaded with multichannel playback capabilities enabled.
|
2007-09-12 07:43:43 +00:00
|
|
|
If you do not set the
|
|
|
|
.Dv hint.emu10kx.0.multichannel_disabled
|
|
|
|
option in your
|
|
|
|
.Xr loader.conf 5
|
2008-05-28 05:46:04 +00:00
|
|
|
configuration file you will get up to five DSP devices, one for each
|
|
|
|
sound card output.
|
2007-09-12 07:43:43 +00:00
|
|
|
You can use additional software (like
|
|
|
|
.Em audio/pulseaudio
|
|
|
|
from
|
2008-05-28 05:46:04 +00:00
|
|
|
.Em The Ports Collection )
|
|
|
|
to do sound stream demultiplexing.
|
2006-07-16 20:43:12 +00:00
|
|
|
Only
|
|
|
|
.Dq FRONT
|
|
|
|
output can play and record sound from external
|
2006-07-15 20:31:26 +00:00
|
|
|
sources (like line or S/PDIF inputs).
|
2007-09-12 07:43:43 +00:00
|
|
|
.Sh MULTICHANNEL RECORDING
|
|
|
|
By default multichannel recording capabilities are not enabled when you load
|
2008-05-28 05:46:04 +00:00
|
|
|
the
|
|
|
|
.Nm
|
|
|
|
driver.
|
2007-09-12 07:43:43 +00:00
|
|
|
If you enable the
|
|
|
|
.Dv hint.emu10kx.0.multichannel_recording
|
|
|
|
option in
|
|
|
|
.Xr loader.conf 5
|
|
|
|
you will get one more DSP device that is rate-locked to 48kHz/16bit/mono.
|
|
|
|
This is actually 48kHz/16bit/32 channels on SB Live! cards and
|
|
|
|
48kHz/16bit/64channels on Audigy cards, but the current implementation of
|
2008-05-28 05:46:04 +00:00
|
|
|
the sound subsystem does not support such an amount of PCM channels.
|
2007-09-12 07:43:43 +00:00
|
|
|
This device can not be opened for read, thus confusing many applications.
|
|
|
|
.Pp
|
2008-07-03 16:48:35 +00:00
|
|
|
Within a multichannel stream, the first half (0-15 or 0-31) is a copy of all DSP
|
2008-05-28 05:46:04 +00:00
|
|
|
outputs, the second half (15-30 or 32-63) is a copy of some DSP inputs.
|
|
|
|
On Live! cards the last substream (31) is used as a sync stream and is always
|
2007-09-12 07:43:43 +00:00
|
|
|
set to 0xc0de.
|
2008-05-28 05:46:04 +00:00
|
|
|
Audigy cards do not need such sync data, because a stream always starts with
|
2007-09-12 07:43:43 +00:00
|
|
|
substream 0.
|
|
|
|
.Ss SB Live! substream map (in byte offsets, each substream is 2 bytes LE)
|
|
|
|
.Bl -tag -width ".Dv +0x00..+0x1E"
|
|
|
|
.It Dv Offset
|
|
|
|
Substream
|
|
|
|
.It +0x00..+0x1E
|
|
|
|
PCM streams 0..15
|
|
|
|
.It +0x20, +0x22
|
|
|
|
Empty
|
|
|
|
.It +0x24..+0x2A
|
|
|
|
PCM inputs: front left, front right, rear left, rear right, center, sub
|
|
|
|
.It +0x2C..+0x3C
|
|
|
|
DSP inputs 0..8:
|
|
|
|
.It +0x3E
|
|
|
|
sync substream (0xc0de)
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
.Ss Audigy substream map (in byte offsets, each substream is 2 bytes LE)
|
|
|
|
.Bl -tag -width ".Dv +0x00..+0x3E"
|
|
|
|
.It Dv Offset
|
|
|
|
Substream
|
|
|
|
.It +0x00..+0x3E
|
|
|
|
PCM streams 0..31
|
|
|
|
.It +0x40..+0x5E
|
|
|
|
PCM inputs: front LR, rear LR, center, sub, ...
|
|
|
|
.It +0x60..+0x7E
|
|
|
|
DSP inputs 0..16
|
|
|
|
.El
|
2006-07-15 20:31:26 +00:00
|
|
|
.Sh OSS MIXER CONTROLS
|
2007-09-12 07:43:43 +00:00
|
|
|
These are the controls available through the standard OSS programming interface.
|
2006-07-16 20:43:12 +00:00
|
|
|
You can use
|
2006-07-15 20:31:26 +00:00
|
|
|
.Xr mixer 8
|
|
|
|
to change them.
|
|
|
|
.Pp
|
2007-09-12 07:43:43 +00:00
|
|
|
On EMU10K1-based cards the OSS mixer directly controls the AC97 codec.
|
2006-07-16 20:43:12 +00:00
|
|
|
On newer cards the OSS mixer controls some parameters of the AC97 codec and
|
2006-07-15 20:31:26 +00:00
|
|
|
some DSP-based mixer controls.
|
2006-09-30 15:14:49 +00:00
|
|
|
.Bl -inset
|
|
|
|
.It Qq vol
|
2008-05-28 05:46:04 +00:00
|
|
|
mixer control for the overall sound volume.
|
2006-09-30 15:14:49 +00:00
|
|
|
.It Qq pcm
|
2008-05-28 05:46:04 +00:00
|
|
|
mixer control for the PCM playback volume.
|
2006-07-16 20:43:12 +00:00
|
|
|
It controls only front output
|
2006-12-14 16:40:57 +00:00
|
|
|
volume in multichannel mode and all output volume in single channel mode.
|
2006-09-30 15:14:49 +00:00
|
|
|
.It Qq rec
|
2008-07-03 16:48:35 +00:00
|
|
|
mixer control acts very differently on EMU10K1 and other cards.
|
2006-07-16 20:43:12 +00:00
|
|
|
On EMU10K1 cards it controls the AC97 codec recording level.
|
2008-05-28 05:46:04 +00:00
|
|
|
On non-EMU10K1 cards it controls the amount of AC97
|
|
|
|
.Dq stereo mix
|
|
|
|
entering the DSP.
|
2007-09-12 07:43:43 +00:00
|
|
|
AC97 recording level and AC97 recording source are fixed on CA0100, CA0101,
|
|
|
|
CA0102 and CA0108 cards.
|
2008-05-28 05:46:04 +00:00
|
|
|
The AC97 recording levels are always set to maximum and recording source is always
|
2006-09-30 15:14:49 +00:00
|
|
|
.Dq Li "stereo mix" .
|
2007-09-12 07:43:43 +00:00
|
|
|
.It Qq dig1
|
|
|
|
is a CD S/PDIF (on-card) volume control
|
|
|
|
.It Qq dig2
|
|
|
|
is an AudigyDrive S/PDIF (Audigy series) or TOSLink (SB Live! series) volume
|
|
|
|
control
|
|
|
|
.It Qq dig3
|
|
|
|
is an on-card S/PDIF volume control
|
|
|
|
.It Qq line2
|
|
|
|
is AudigyDrive "Line In 2" volume control
|
|
|
|
.It Qq line3
|
|
|
|
is AudigyDrive "AUX In 2" volume control
|
2006-09-30 15:14:49 +00:00
|
|
|
.El
|
2006-07-15 20:31:26 +00:00
|
|
|
.Pp
|
2008-05-28 05:46:04 +00:00
|
|
|
Other OSS mixer controls control the inputs of the AC97 codec.
|
2006-07-15 20:31:26 +00:00
|
|
|
.Sh PRIVATE DEVICE CONTROLS
|
2008-05-28 05:46:04 +00:00
|
|
|
You can control some of EMU10Kx's operation and configuration parameters through
|
2006-09-30 15:14:49 +00:00
|
|
|
.Va dev.emu10kx. Ns Aq Ar X
|
|
|
|
sysctls.
|
2006-07-16 20:43:12 +00:00
|
|
|
These
|
|
|
|
.Xr sysctl 8
|
2008-05-28 05:46:04 +00:00
|
|
|
values are temporary and should not be relied upon.
|
2006-07-15 20:31:26 +00:00
|
|
|
.Sh DRIVER CONFIGURATION
|
2007-09-12 07:43:43 +00:00
|
|
|
Loader tunables are used to set driver configuration.
|
|
|
|
Tunables can be set at the
|
|
|
|
.Xr loader 8
|
|
|
|
prompt before booting the kernel or they can be stored in
|
|
|
|
.Pa /boot/loader.conf .
|
2008-05-28 05:46:04 +00:00
|
|
|
These tunables cannot be changed from a machine
|
2007-09-12 07:43:43 +00:00
|
|
|
.Xr sysctl 8
|
|
|
|
entry after boot, but you can change them using
|
|
|
|
.Xr kenv 1
|
2008-05-28 05:46:04 +00:00
|
|
|
before loading the
|
|
|
|
.Nm
|
|
|
|
driver.
|
2007-09-12 07:43:43 +00:00
|
|
|
.Bl -tag -width indent
|
|
|
|
.It Va hint.emu10kx. Ns Ao Ar X Ac Ns Va .disabled
|
|
|
|
Disables loading a driver instance.
|
|
|
|
.It Va hint.emu10kx. Ns Ao Ar X Ac Ns Va .multichannel_disabled
|
|
|
|
Disables multichannel playback support, when one card is represented as
|
|
|
|
several PCM devices.
|
|
|
|
.It Va hint.emu10kx. Ns Ao Ar X Ac Ns Va .multichannel_recording
|
|
|
|
Enables experimental multichannel recording support.
|
|
|
|
.It Va hint.emu10kx. Ns Ao Ar X Ac Ns Va .debug
|
|
|
|
Set debug output level.
|
|
|
|
.Bl -tag -width 2n
|
|
|
|
.It 0
|
|
|
|
No additional debug options enabled
|
|
|
|
.It 1
|
|
|
|
Enables all DSP outputs to be connected, even those
|
|
|
|
that are known to be unused on a particular card.
|
|
|
|
.It 2
|
|
|
|
Additional debug messages about in-driver events will be printed.
|
|
|
|
.It 2
|
|
|
|
Additional debug messages will be printed when memory allocation fails.
|
|
|
|
.El
|
2006-07-15 20:31:26 +00:00
|
|
|
.El
|
|
|
|
.Sh FILES
|
2006-09-30 15:14:49 +00:00
|
|
|
.Bl -tag -width ".Pa /dev/emu10kx?" -compact
|
2006-07-15 20:31:26 +00:00
|
|
|
.It Pa /dev/emu10kx?
|
2006-09-30 15:14:49 +00:00
|
|
|
.Nm
|
|
|
|
management interface
|
2006-07-15 20:31:26 +00:00
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
2006-07-16 20:43:12 +00:00
|
|
|
.Xr sound 4
|
2006-07-15 20:31:26 +00:00
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
2006-07-16 20:43:12 +00:00
|
|
|
device driver first appeared in
|
|
|
|
.Fx 7.0 .
|
2006-07-15 20:31:26 +00:00
|
|
|
.Sh AUTHORS
|
2006-09-30 15:14:49 +00:00
|
|
|
.An -nosplit
|
2006-07-16 20:43:12 +00:00
|
|
|
The PCM part of the driver is based on the
|
|
|
|
.Xr snd_emu10k1 4
|
2006-09-30 15:14:49 +00:00
|
|
|
SB Live!\& driver by
|
2010-05-19 08:57:53 +00:00
|
|
|
.An Cameron Grant Aq cg@FreeBSD.org .
|
2006-07-16 20:43:12 +00:00
|
|
|
The MIDI interface is based on the
|
|
|
|
.Xr snd_emu10k1 4
|
2006-09-30 15:14:49 +00:00
|
|
|
MIDI interface code by
|
2010-05-19 08:57:53 +00:00
|
|
|
.An Mathew Kanner Aq matk@FreeBSD.org .
|
2006-07-16 20:43:12 +00:00
|
|
|
The
|
2006-07-15 20:31:26 +00:00
|
|
|
.Nm
|
|
|
|
device driver and this manual page were written by
|
|
|
|
.An Yuriy Tsibizov .
|
|
|
|
.Sh BUGS
|
|
|
|
.Pp
|
2007-09-12 07:43:43 +00:00
|
|
|
The driver does not detect lost S/PDIF signals and produces noise when
|
|
|
|
S/PDIF is not connected and S/PDIF volume is not zero.
|
2006-07-15 20:31:26 +00:00
|
|
|
.Pp
|
2006-07-16 20:43:12 +00:00
|
|
|
The PCM driver cannot detect the presence of Live!Drive or AudigyDrive
|
2008-05-28 05:46:04 +00:00
|
|
|
breakout boxes and tries to use them (and list their connectors in the
|
2007-09-12 07:43:43 +00:00
|
|
|
mixer).
|
2006-07-15 20:31:26 +00:00
|
|
|
.Pp
|
2006-07-16 20:43:12 +00:00
|
|
|
The MIDI driver cannot detect the presence of Live!Drive or AudigyDrive
|
|
|
|
breakout boxes and tries to enable the IR receiver on them anyway.
|