via_chan_buffer_init

Name

via_chan_buffer_init --  Initialize PCM channel buffer

Synopsis

int via_chan_buffer_init (struct via_info * card, struct via_channel * chan);

Arguments

card

Private audio chip info

chan

Channel to be initialized

Description

Performs some of the preparations necessary to begin using a PCM channel.

Currently the preparations include allocating the scatter-gather DMA table and buffers, and passing the address of the DMA table to the hardware.

Note that special care is taken when passing the DMA table address to hardware, because it was found during driver development that the hardware did not always "take" the address.