p 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. d -literal SPDIF in ---------------------- #1(coax)-\*[Gt]|spdin1 | R ----------------------- #2(opt)--\*[Gt]|spdin2 spdif.input |--*-\*[Gt]--|spdin spdif.output |--\*[Gt] SPDIF --\*[Gt]|spdout | | --\*[Gt]|playback | output | ---------------------- | | ----------------------- --------------------\*[Lt]------+-* ---------\*[Lt]-------------------+-+---------------------------------- | ------------------------ | | ----------------------- | --\*[Gt]|legacy spdif.output. |--+-*--\*[Gt]|spdout | | --\*[Gt]|wave playback | -----\*[Gt]|spdin spdif.monitor |---- | | ------------------------ NC-|off | | | ---------\*[Lt]-- spdif ----------------------- | | -------+------- dac ------------ ----------------- v | wave --\*[Gt]|playback.mode|----\*[Gt]|inputs.dac|-*-\*[Gt]|inputs.dac.mute|-\*[Gt]----- | playback --------------- ------------ R ----------------- | + | | ----------------- --------------------- |mix| | FM synthesizer --\*[Gt]|inputs.fmsynth |--*-\*[Gt]|inputs.fmsynth.mute|--\*[Gt]----- | ----------------- R --------------------- *-\*[Gt]-- CD ---------------------- --------------------------- v LINE-IN -\*[Gt]|inputs.{cd,line,aux}|-*\*[Gt]|inputs.{cd,line,aux}.mute|-\*[Gt]----- AUX ---------------------- R --------------------------- | | ------------------ | | PC-SPK --\*[Gt]| inputs.speaker |-----------------------------------\*[Gt]| + | ------------------ | | ------------------- ------------ ----------------- |mix| MIC --*--\*[Gt]|inputs.mic.preamp|-\*[Gt]|inputs.mic|-\*[Gt]|inputs.mic.mute|-\*[Gt]| | | ------------------- ------------ ----------------- ----- | ------------ ----------------- | ---\*[Gt]|record.mic|--\*[Gt]| | v ------------ | record.source |--\*[Gt]to ----------- *R--\*[Gt]| (select, mix) | recording |outputs.*|--\*[Gt] ----------------- ----------- SPK (front) .Ed
p 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. l -tag -width 1n t Playback to speaker, SPDIF input to SPDIF output .Dl mixerctl -w playback.mode=dac spdif.output=spdin spdif.monitor=off t Playback to SPDIF output, SPDIF input to speaker .Dl mixerctl -w playback.mode=spdif spdif.output=playback spdif.output.playback=wave spdif.monitor=spdin t SPDIF input to both SPDIF output and speaker .Dl mixerctl -w spdif.output=spdin spdif.monitor=spdin t Playback to both SPDIF output and speaker .Dl mixerctl -w playback.mode=spdif spdif.output=playback spdif.output.playback=wave spdif.monitor=spdout t Mix playback and SPDIF input to speaker .Dl mixerctl -w playback.mode=dac spdif.monitor=spdin .El .Sh SEE ALSO .Xr mixerctl 1 , .Xr audio 4 , .Xr midi 4 , .Xr mpu 4 , .Xr opl 4 , .Xr pci 4 .Sh HISTORY The .Nm device driver appeared in .Nx 1.5 . .Sh BUGS 4ch/6ch playback is not yet available. Joystick port is not supported.
p .Dv spdif.output.playback=legacy does not seem to work properly.