Technical data
SunOS 5.5 Devices audiocs(7D)
NAME audiocs − Crystal Semiconductor 4231 audio Interface
AVAILABILITY The AUDIOCS Multimedia codec is available on SPARCstation 5 systems.
This hardware may or may not be available on future systems from Sun Microsystems
Computer Corporation.
Audio Interfaces SPARCstation 5 systems have the Multimedia Codec integrated onto the CPU board of
the machine. In the "onboard" Codec, there are microphone, line in, headphone, and line
out ports located on the system back panel. In addition, the headphoneand microphone
ports do not have the input detection circuitry to determine whether or not there is
currently headphones or a microphone plugged in. There is no interface on the SPARCs-
tation 5 for the speakerbox to connect to.
The new Sun Microphone II is recommended for normal desktop audio recording. Other
audio sources may be recorded by connecting their lineoutput to the line input(audio
sources may also be connected from their headphone output if the volume is adjusted
properly).
Applications that open /dev/audio may use the AUDIO_GETDEV ioctl to determine
which audio device is beingused. The audiocs driver will return the string
"SUNW,CS4231" in the name field of the audio_device structure. The version field will
contain "a" and the config field will contain the following value: "onboard1" on a
/dev/audio stream associated with the onboard Multimedia Codec.
The AUDIO_SETINFO ioctl controls device configuration parameters. When an applica-
tion modifies the record.buffer_size field using the AUDIO_SETINFO ioctl, the driver will
constrain it to be non-zero and up to a maximum of 8180 bytes.
Audio Data Formats
for the Multimedia
4231 Codec
The audiocs device supports the audio formats listed in the following table. When the
device is open for simultaneous play and record, the input and output data formats must
match.
Supported Audio Data Formats
Sample Rate Encoding Precision Channels
8000 Hz µ-law or A-law 8 1
9600 Hz µ-law or A-law 8 1
11025 Hz µ-law or A-law 8 1
16000 Hz µ-law or A-law 8 1
18900 Hz µ-law or A-law 8 1
22050 Hz µ-law or A-law 8 1
32000 Hz µ-law or A-law 8 1
37800 Hz µ-law or A-law 8 1
44100 Hz µ-law or A-law 8 1
48000 Hz µ-law or A-law 8 1
8000 Hz linear 16 1 or 2
9600 Hz linear 16 1 or 2
11025 Hz linear 16 1 or 2
16000 Hz linear 16 1 or 2
18900 Hz linear 16 1 or 2
modified 31 Jan 1994 7D-35










