2017-07-04 00:28:48 +03:00
|
|
|
.\" $NetBSD: cmpci.4,v 1.9 2017/07/03 21:30:58 wiz Exp $
|
2000-05-01 02:03:24 +04:00
|
|
|
.\"
|
2001-11-04 10:00:39 +03:00
|
|
|
.\" Copyright (c) 2000, 2001 The NetBSD Foundation, Inc.
|
2000-05-01 02:03:24 +04:00
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" This code is derived from software contributed to The NetBSD Foundation
|
|
|
|
.\" by Takuya SHIOZAKI <AoiMoe@imou.to> .
|
|
|
|
.\"
|
2001-11-04 10:00:39 +03:00
|
|
|
.\" This code is derived from software contributed to The NetBSD Foundation
|
|
|
|
.\" by ITOH Yasufumi.
|
|
|
|
.\"
|
2000-05-01 02:03:24 +04:00
|
|
|
.\" 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.
|
|
|
|
.\"
|
2005-06-22 08:30:08 +04:00
|
|
|
.Dd June 22, 2005
|
2000-05-01 02:03:24 +04:00
|
|
|
.Dt CMPCI 4
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm cmpci
|
|
|
|
.Nd C-Media CMI8x38 audio device driver
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Cd "cmpci* at pci? dev ? function ?"
|
2005-06-22 08:30:08 +04:00
|
|
|
.Cd "audio* at audiobus?"
|
2001-11-04 10:00:39 +03:00
|
|
|
.Cd "mpu* at cmpci?"
|
|
|
|
.Cd "opl* at cmpci? flags 1"
|
2000-05-01 02:03:24 +04:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
device driver supports C-Media CMI8x38 based sound cards.
|
2001-11-04 10:00:39 +03:00
|
|
|
.Pp
|
|
|
|
The device has
|
|
|
|
SPDIF input/output interfaces,
|
|
|
|
16bit CODEC with analog mixer,
|
|
|
|
OPL3 FM Synthesizer,
|
|
|
|
and MPU401 compatible MIDI I/O port interface.
|
|
|
|
.Sh MIXER DEVICE
|
|
|
|
The mixer device of
|
|
|
|
.Nm
|
|
|
|
driver can be accessed via
|
|
|
|
.Xr mixerctl 1
|
|
|
|
command.
|
|
|
|
The complex structure is analyzed as follows.
|
|
|
|
.Bd -literal
|
|
|
|
SPDIF in ----------------------
|
2017-07-04 00:28:48 +03:00
|
|
|
#1(coax)->|spdin1 | R -----------------------
|
|
|
|
#2(opt)-->|spdin2 spdif.input |--*->--|spdin spdif.output |--> SPDIF
|
|
|
|
-->|spdout | | -->|playback | output
|
2001-11-04 10:00:39 +03:00
|
|
|
| ---------------------- | | -----------------------
|
2017-07-04 00:28:48 +03:00
|
|
|
--------------------<------+-*
|
|
|
|
---------<-------------------+-+----------------------------------
|
2001-11-04 10:00:39 +03:00
|
|
|
| ------------------------ | | ----------------------- |
|
2017-07-04 00:28:48 +03:00
|
|
|
-->|legacy spdif.output. |--+-*-->|spdout | |
|
|
|
|
-->|wave playback | ----->|spdin spdif.monitor |---- |
|
2001-11-04 10:00:39 +03:00
|
|
|
| ------------------------ NC-|off | | |
|
2017-07-04 00:28:48 +03:00
|
|
|
---------<-- spdif ----------------------- | |
|
2001-11-04 10:00:39 +03:00
|
|
|
-------+------- dac ------------ ----------------- v |
|
2017-07-04 00:28:48 +03:00
|
|
|
wave -->|playback.mode|---->|inputs.dac|-*->|inputs.dac.mute|->----- |
|
2001-11-04 10:00:39 +03:00
|
|
|
playback --------------- ------------ R ----------------- | + | |
|
|
|
|
----------------- --------------------- |mix| |
|
2017-07-04 00:28:48 +03:00
|
|
|
FM synthesizer -->|inputs.fmsynth |--*->|inputs.fmsynth.mute|-->----- |
|
|
|
|
----------------- R --------------------- *->--
|
2001-11-04 10:00:39 +03:00
|
|
|
CD ---------------------- --------------------------- v
|
2017-07-04 00:28:48 +03:00
|
|
|
LINE-IN ->|inputs.{cd,line,aux}|-*>|inputs.{cd,line,aux}.mute|->-----
|
2001-11-04 10:00:39 +03:00
|
|
|
AUX ---------------------- R --------------------------- | |
|
|
|
|
------------------ | |
|
2017-07-04 00:28:48 +03:00
|
|
|
PC-SPK -->| inputs.speaker |----------------------------------->| + |
|
2001-11-04 10:00:39 +03:00
|
|
|
------------------ | |
|
|
|
|
------------------- ------------ ----------------- |mix|
|
2017-07-04 00:28:48 +03:00
|
|
|
MIC --*-->|inputs.mic.preamp|->|inputs.mic|->|inputs.mic.mute|->| |
|
2001-11-04 10:00:39 +03:00
|
|
|
| ------------------- ------------ ----------------- -----
|
|
|
|
| ------------ ----------------- |
|
2017-07-04 00:28:48 +03:00
|
|
|
--->|record.mic|-->| | v
|
|
|
|
------------ | record.source |-->to -----------
|
|
|
|
*R-->| (select, mix) | recording |outputs.*|-->
|
2001-11-04 10:00:39 +03:00
|
|
|
----------------- ----------- SPK
|
|
|
|
(front)
|
|
|
|
.Ed
|
|
|
|
.Pp
|
|
|
|
Note the 2nd SPDIF input exists only on CMI8738/PCI-6ch versions.
|
|
|
|
.Sh MIXER EXAMPLES
|
|
|
|
Here are examples about wave playback and SPDIF input/output ports.
|
|
|
|
.Bl -tag -width 1n
|
|
|
|
.It Playback to speaker, SPDIF input to SPDIF output
|
|
|
|
.Dl mixerctl -w playback.mode=dac spdif.output=spdin spdif.monitor=off
|
|
|
|
.It Playback to SPDIF output, SPDIF input to speaker
|
|
|
|
.Dl mixerctl -w playback.mode=spdif spdif.output=playback spdif.output.playback=wave spdif.monitor=spdin
|
|
|
|
.It SPDIF input to both SPDIF output and speaker
|
|
|
|
.Dl mixerctl -w spdif.output=spdin spdif.monitor=spdin
|
|
|
|
.It Playback to both SPDIF output and speaker
|
|
|
|
.Dl mixerctl -w playback.mode=spdif spdif.output=playback spdif.output.playback=wave spdif.monitor=spdout
|
|
|
|
.It Mix playback and SPDIF input to speaker
|
|
|
|
.Dl mixerctl -w playback.mode=dac spdif.monitor=spdin
|
|
|
|
.El
|
2000-05-01 02:03:24 +04:00
|
|
|
.Sh SEE ALSO
|
2001-11-04 10:00:39 +03:00
|
|
|
.Xr mixerctl 1 ,
|
2000-05-01 02:03:24 +04:00
|
|
|
.Xr audio 4 ,
|
2001-11-04 10:00:39 +03:00
|
|
|
.Xr midi 4 ,
|
|
|
|
.Xr mpu 4 ,
|
|
|
|
.Xr opl 4 ,
|
2000-05-01 02:03:24 +04:00
|
|
|
.Xr pci 4
|
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
device driver appeared in
|
|
|
|
.Nx 1.5 .
|
2001-09-12 22:19:16 +04:00
|
|
|
.Sh BUGS
|
2001-11-04 10:00:39 +03:00
|
|
|
4ch/6ch playback is not yet available.
|
|
|
|
Joystick port is not supported.
|
|
|
|
.Pp
|
|
|
|
.Dv spdif.output.playback=legacy
|
|
|
|
does not seem to work properly.
|