1 .\" $NetBSD: cmpci.4,v 1.7 2005/06/22 04:30:08 kent Exp $
3 .\" Copyright (c) 2000, 2001 The NetBSD Foundation, Inc.
4 .\" All rights reserved.
6 .\" This code is derived from software contributed to The NetBSD Foundation
7 .\" by Takuya SHIOZAKI <AoiMoe@imou.to> .
9 .\" This code is derived from software contributed to The NetBSD Foundation
12 .\" Redistribution and use in source and binary forms, with or without
13 .\" modification, are permitted provided that the following conditions
15 .\" 1. Redistributions of source code must retain the above copyright
16 .\" notice, this list of conditions and the following disclaimer.
17 .\" 2. Redistributions in binary form must reproduce the above copyright
18 .\" notice, this list of conditions and the following disclaimer in the
19 .\" documentation and/or other materials provided with the distribution.
21 .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
22 .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
23 .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
24 .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
25 .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31 .\" POSSIBILITY OF SUCH DAMAGE.
38 .Nd C-Media CMI8x38 audio device driver
40 .Cd "cmpci* at pci? dev ? function ?"
41 .Cd "audio* at audiobus?"
43 .Cd "opl* at cmpci? flags 1"
47 device driver supports C-Media CMI8x38 based sound cards.
50 SPDIF input/output interfaces,
51 16bit CODEC with analog mixer,
53 and MPU401 compatible MIDI I/O port interface.
57 driver can be accessed via
60 The complex structure is analyzed as follows.
62 SPDIF in ----------------------
63 #1(coax)-\*[Gt]|spdin1 | R -----------------------
64 #2(opt)--\*[Gt]|spdin2 spdif.input |--*-\*[Gt]--|spdin spdif.output |--\*[Gt] SPDIF
65 --\*[Gt]|spdout | | --\*[Gt]|playback | output
66 | ---------------------- | | -----------------------
67 --------------------\*[Lt]------+-*
68 ---------\*[Lt]-------------------+-+----------------------------------
69 | ------------------------ | | ----------------------- |
70 --\*[Gt]|legacy spdif.output. |--+-*--\*[Gt]|spdout | |
71 --\*[Gt]|wave playback | -----\*[Gt]|spdin spdif.monitor |---- |
72 | ------------------------ NC-|off | | |
73 ---------\*[Lt]-- spdif ----------------------- | |
74 -------+------- dac ------------ ----------------- v |
75 wave --\*[Gt]|playback.mode|----\*[Gt]|inputs.dac|-*-\*[Gt]|inputs.dac.mute|-\*[Gt]----- |
76 playback --------------- ------------ R ----------------- | + | |
77 ----------------- --------------------- |mix| |
78 FM synthesizer --\*[Gt]|inputs.fmsynth |--*-\*[Gt]|inputs.fmsynth.mute|--\*[Gt]----- |
79 ----------------- R --------------------- *-\*[Gt]--
80 CD ---------------------- --------------------------- v
81 LINE-IN -\*[Gt]|inputs.{cd,line,aux}|-*\*[Gt]|inputs.{cd,line,aux}.mute|-\*[Gt]-----
82 AUX ---------------------- R --------------------------- | |
83 ------------------ | |
84 PC-SPK --\*[Gt]| inputs.speaker |-----------------------------------\*[Gt]| + |
85 ------------------ | |
86 ------------------- ------------ ----------------- |mix|
87 MIC --*--\*[Gt]|inputs.mic.preamp|-\*[Gt]|inputs.mic|-\*[Gt]|inputs.mic.mute|-\*[Gt]| |
88 | ------------------- ------------ ----------------- -----
89 | ------------ ----------------- |
90 ---\*[Gt]|record.mic|--\*[Gt]| | v
91 ------------ | record.source |--\*[Gt]to -----------
92 *R--\*[Gt]| (select, mix) | recording |outputs.*|--\*[Gt]
93 ----------------- ----------- SPK
97 Note the 2nd SPDIF input exists only on CMI8738/PCI-6ch versions.
99 Here are examples about wave playback and SPDIF input/output ports.
101 .It Playback to speaker, SPDIF input to SPDIF output
102 .Dl mixerctl -w playback.mode=dac spdif.output=spdin spdif.monitor=off
103 .It Playback to SPDIF output, SPDIF input to speaker
104 .Dl mixerctl -w playback.mode=spdif spdif.output=playback spdif.output.playback=wave spdif.monitor=spdin
105 .It SPDIF input to both SPDIF output and speaker
106 .Dl mixerctl -w spdif.output=spdin spdif.monitor=spdin
107 .It Playback to both SPDIF output and speaker
108 .Dl mixerctl -w playback.mode=spdif spdif.output=playback spdif.output.playback=wave spdif.monitor=spdout
109 .It Mix playback and SPDIF input to speaker
110 .Dl mixerctl -w playback.mode=dac spdif.monitor=spdin
122 device driver appeared in
125 4ch/6ch playback is not yet available.
126 Joystick port is not supported.
128 .Dv spdif.output.playback=legacy
129 does not seem to work properly.