2006-07-15 20:31:26 +00:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 2003,2006 Yuriy Tsibizov,
|
|
|
|
.\" 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.
|
|
|
|
.\"
|
|
|
|
.\" $Id: snd_emu10kx.4,v 1.19 2006/06/07 11:18:57 chibis Exp $
|
|
|
|
.\" $FreeBSD$
|
|
|
|
.\"
|
2006-07-16 20:43:12 +00:00
|
|
|
.Dd July 15, 2006
|
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
|
|
|
.Pp
|
|
|
|
For additional options:
|
2006-07-15 20:31:26 +00:00
|
|
|
.Cd "options EMU10KX_MULTICHANNEL"
|
|
|
|
.Cd "options EMU10KX_DEBUG"
|
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
|
|
|
|
to attach to the Creative sound cards based on EMU10K1, CA0100, CA0101, CA0102
|
|
|
|
and CA0108 DSPs.
|
|
|
|
.Pp
|
|
|
|
.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
|
|
|
|
devices (see
|
|
|
|
.Sx MULTICHANNEL PLAYBACK
|
2006-07-16 20:43:12 +00:00
|
|
|
for details), and MPU401-compatible MIDI I/O controller, which is accessible
|
|
|
|
through the midi device.
|
2006-07-15 20:31:26 +00:00
|
|
|
Wave table synthesizer is not supported.
|
|
|
|
.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-07-15 20:31:26 +00:00
|
|
|
to 48kHz/16 bit stereo (192kHz/24 bit part of this chipset is not supported).\&
|
|
|
|
There is no MIDI support for this card.
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Nm
|
2006-07-16 20:43:12 +00:00
|
|
|
driver does
|
|
|
|
.Em not
|
|
|
|
support the following sound cards (although they are named
|
2006-07-15 20:31:26 +00:00
|
|
|
similar to some supported ones):
|
|
|
|
.Pp
|
|
|
|
.Bl -bullet -compact
|
|
|
|
.It
|
|
|
|
Creative Sound Blaster Live!\& 24-Bit, identified by FreeBSD as
|
2006-07-16 20:43:12 +00:00
|
|
|
.Li Qq emu10k1x Soundblaster Live! 5.1 .
|
2006-07-15 20:31:26 +00:00
|
|
|
.It
|
|
|
|
Creative Sound Blaster Audigy LS / ES, identified by FreeBSD as
|
2006-07-16 20:43:12 +00:00
|
|
|
.Li Qq CA0106-DAT Audigy LS .
|
2006-07-15 20:31:26 +00:00
|
|
|
.It
|
2006-07-16 20:43:12 +00:00
|
|
|
All other cards with -DAT chipsets.
|
2006-07-15 20:31:26 +00:00
|
|
|
.El
|
|
|
|
.Sh MULTICHANNEL PLAYBACK
|
|
|
|
.Pp
|
2006-07-16 20:43:12 +00:00
|
|
|
It is possible to build this driver with multichannel playback capabilites.
|
|
|
|
If you enable the
|
|
|
|
.Dq Dv EMU10KX_MULTICHANNEL
|
|
|
|
option in your kernel configuration (or
|
2006-07-15 20:31:26 +00:00
|
|
|
build it as a module) you will get up to five DSP devices, one for each sound
|
2006-07-16 20:43:12 +00:00
|
|
|
card output.
|
|
|
|
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).
|
|
|
|
.Sh OSS MIXER CONTROLS
|
|
|
|
.Pp
|
2006-07-16 20:43:12 +00:00
|
|
|
These are controls available through the standard OSS programming interface.
|
|
|
|
You can use
|
2006-07-15 20:31:26 +00:00
|
|
|
.Xr mixer 8
|
|
|
|
to change them.
|
|
|
|
.Pp
|
2006-07-16 20:43:12 +00:00
|
|
|
On EMU10K1-based cards the OSS mixer directly controls the AC97 codec on card.
|
|
|
|
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.
|
|
|
|
.Pp
|
|
|
|
"vol" mixer control is overall sound volume.
|
|
|
|
.Pp
|
2006-07-16 20:43:12 +00:00
|
|
|
"pcm" mixer control is PCM playback volume.
|
|
|
|
It controls only front output
|
|
|
|
volume in multichannel mode and all output volume in single chennel mode.
|
2006-07-15 20:31:26 +00:00
|
|
|
.Pp
|
|
|
|
"rec" mixer control acts very different on EMU10K1 and other cards.
|
2006-07-16 20:43:12 +00:00
|
|
|
On EMU10K1 cards it controls the AC97 codec recording level.
|
|
|
|
On non-EMU10K1 cards
|
|
|
|
it controls the amount of AC97 "stereo mix" entering the DSP.
|
|
|
|
AC97 recording level and AC97 recording source are fixed
|
|
|
|
on CA0100, CA0101, CA0102 and CA0108 cards.
|
|
|
|
AC97 recording level are always set to
|
2006-07-15 20:31:26 +00:00
|
|
|
maximum and recording source is always "stereo mix".
|
|
|
|
.Pp
|
2006-07-16 20:43:12 +00:00
|
|
|
Other OSS mixer controls do not work.
|
2006-07-15 20:31:26 +00:00
|
|
|
.Sh PRIVATE DEVICE CONTROLS
|
|
|
|
.Pp
|
|
|
|
You can control most of EMU10Kx operation and configuration parameters through
|
2006-07-16 20:43:12 +00:00
|
|
|
dev.emu10kx.X sysctls.
|
|
|
|
These
|
|
|
|
.Xr sysctl 8
|
|
|
|
values are temporary and should not be relied
|
2006-07-15 20:31:26 +00:00
|
|
|
upon.
|
|
|
|
.Sh DRIVER CONFIGURATION
|
|
|
|
.Ss Kernel Configuration Options
|
|
|
|
The following kernel configuration options control the
|
|
|
|
.Nm
|
|
|
|
driver.
|
|
|
|
.Bl -tag -width EMU10KX_MULTICHANNEL
|
|
|
|
.It Em EMU10KX_MULTICHANNEL
|
|
|
|
This option enables
|
|
|
|
.Sx MULTICHANNEL PLAYBACK
|
2006-07-16 20:43:12 +00:00
|
|
|
for all instances of the
|
2006-07-15 20:31:26 +00:00
|
|
|
.Nm
|
|
|
|
driver.
|
|
|
|
.It Em EMU10KX_DEBUG
|
|
|
|
This option enables additional debug messages.
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
.Sh FILES
|
2006-07-16 20:43:12 +00:00
|
|
|
.Bl -tag -width /dev/emu10kx? -compact
|
2006-07-15 20:31:26 +00:00
|
|
|
.It Pa /dev/emu10kx?
|
|
|
|
emu10kx management interface
|
|
|
|
.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-07-16 20:43:12 +00:00
|
|
|
The PCM part of the driver is based on the
|
|
|
|
.Xr snd_emu10k1 4
|
|
|
|
SB Live! driver by Cameron Grant.
|
|
|
|
The MIDI interface is based on the
|
|
|
|
.Xr snd_emu10k1 4
|
2006-07-15 20:31:26 +00:00
|
|
|
MIDI interface code by Mathew Kanner.
|
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
|
|
|
|
8kHz/8bit/mono recording does not work.
|
2006-07-16 20:43:12 +00:00
|
|
|
8kHz recording was removed from the driver capabilites.
|
2006-07-15 20:31:26 +00:00
|
|
|
.Pp
|
2006-07-16 20:43:12 +00:00
|
|
|
The Driver does not detect lost S/PDIF signal and produces noise when S/PDIF
|
2006-07-15 20:31:26 +00:00
|
|
|
is not connected and S/PDIF volume is not zero.
|
|
|
|
.Pp
|
2006-07-16 20:43:12 +00:00
|
|
|
The PCM driver cannot detect the presence of Live!Drive or AudigyDrive
|
|
|
|
breakout boxes
|
|
|
|
and tries to use them (and list their connectors in the 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.
|