via_chan_pcm_fmt

Name

via_chan_pcm_fmt --  Update PCM channel settings

Synopsis

void via_chan_pcm_fmt (struct via_channel * chan, int reset);

Arguments

chan

Channel to be updated

reset

Boolean. If non-zero, channel will be reset to 8-bit mono mode.

Description

Stores the settings of the current PCM format, 8-bit or 16-bit, and mono/stereo, into the hardware settings for the specified channel. If reset is non-zero, the channel is reset to 8-bit mono mode. Otherwise, the channel is set to the values stored in the channel information struct chan.