Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
dsp_spos_scb_lib.c File Reference
#include <asm/io.h>
#include <linux/delay.h>
#include <linux/pm.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/mutex.h>
#include <sound/core.h>
#include <sound/control.h>
#include <sound/info.h>
#include "cs46xx.h"
#include "cs46xx_lib.h"
#include "dsp_spos.h"

Go to the source code of this file.

Data Structures

struct  proc_scb_info
 

Macros

#define GOF_PER_SEC   200
 

Functions

void cs46xx_dsp_remove_scb (struct snd_cs46xx *chip, struct dsp_scb_descriptor *scb)
 
struct dsp_scb_descriptorcs46xx_dsp_create_timing_master_scb (struct snd_cs46xx *chip)
 
struct dsp_scb_descriptorcs46xx_dsp_create_codec_out_scb (struct snd_cs46xx *chip, char *codec_name, u16 channel_disp, u16 fifo_addr, u16 child_scb_addr, u32 dest, struct dsp_scb_descriptor *parent_scb, int scb_child_type)
 
struct dsp_scb_descriptorcs46xx_dsp_create_codec_in_scb (struct snd_cs46xx *chip, char *codec_name, u16 channel_disp, u16 fifo_addr, u16 sample_buffer_addr, u32 dest, struct dsp_scb_descriptor *parent_scb, int scb_child_type)
 
struct dsp_scb_descriptorcs46xx_dsp_create_src_task_scb (struct snd_cs46xx *chip, char *scb_name, int rate, u16 src_buffer_addr, u16 src_delay_buffer_addr, u32 dest, struct dsp_scb_descriptor *parent_scb, int scb_child_type, int pass_through)
 
struct dsp_scb_descriptorcs46xx_dsp_create_mix_only_scb (struct snd_cs46xx *chip, char *scb_name, u16 mix_buffer_addr, u32 dest, struct dsp_scb_descriptor *parent_scb, int scb_child_type)
 
struct dsp_scb_descriptorcs46xx_dsp_create_mix_to_ostream_scb (struct snd_cs46xx *chip, char *scb_name, u16 mix_buffer_addr, u16 writeback_spb, u32 dest, struct dsp_scb_descriptor *parent_scb, int scb_child_type)
 
struct dsp_scb_descriptorcs46xx_dsp_create_vari_decimate_scb (struct snd_cs46xx *chip, char *scb_name, u16 vari_buffer_addr0, u16 vari_buffer_addr1, u32 dest, struct dsp_scb_descriptor *parent_scb, int scb_child_type)
 
struct dsp_scb_descriptorcs46xx_dsp_create_asynch_fg_rx_scb (struct snd_cs46xx *chip, char *scb_name, u32 dest, u16 hfg_scb_address, u16 asynch_buffer_address, struct dsp_scb_descriptor *parent_scb, int scb_child_type)
 
struct dsp_scb_descriptorcs46xx_dsp_create_spio_write_scb (struct snd_cs46xx *chip, char *scb_name, u32 dest, struct dsp_scb_descriptor *parent_scb, int scb_child_type)
 
struct dsp_scb_descriptorcs46xx_dsp_create_magic_snoop_scb (struct snd_cs46xx *chip, char *scb_name, u32 dest, u16 snoop_buffer_address, struct dsp_scb_descriptor *snoop_scb, struct dsp_scb_descriptor *parent_scb, int scb_child_type)
 
struct dsp_pcm_channel_descriptorcs46xx_dsp_create_pcm_channel (struct snd_cs46xx *chip, u32 sample_rate, void *private_data, u32 hw_dma_addr, int pcm_channel_id)
 
int cs46xx_dsp_pcm_channel_set_period (struct snd_cs46xx *chip, struct dsp_pcm_channel_descriptor *pcm_channel, int period_size)
 
int cs46xx_dsp_pcm_ostream_set_period (struct snd_cs46xx *chip, int period_size)
 
void cs46xx_dsp_destroy_pcm_channel (struct snd_cs46xx *chip, struct dsp_pcm_channel_descriptor *pcm_channel)
 
int cs46xx_dsp_pcm_unlink (struct snd_cs46xx *chip, struct dsp_pcm_channel_descriptor *pcm_channel)
 
int cs46xx_dsp_pcm_link (struct snd_cs46xx *chip, struct dsp_pcm_channel_descriptor *pcm_channel)
 
struct dsp_scb_descriptorcs46xx_add_record_source (struct snd_cs46xx *chip, struct dsp_scb_descriptor *source, u16 addr, char *scb_name)
 
int cs46xx_src_unlink (struct snd_cs46xx *chip, struct dsp_scb_descriptor *src)
 
int cs46xx_src_link (struct snd_cs46xx *chip, struct dsp_scb_descriptor *src)
 
int cs46xx_dsp_enable_spdif_out (struct snd_cs46xx *chip)
 
int cs46xx_dsp_disable_spdif_out (struct snd_cs46xx *chip)
 
int cs46xx_iec958_pre_open (struct snd_cs46xx *chip)
 
int cs46xx_iec958_post_close (struct snd_cs46xx *chip)
 

Macro Definition Documentation

#define GOF_PER_SEC   200

Definition at line 597 of file dsp_spos_scb_lib.c.

Function Documentation

struct dsp_scb_descriptor* cs46xx_add_record_source ( struct snd_cs46xx chip,
struct dsp_scb_descriptor source,
u16  addr,
char scb_name 
)
read

Definition at line 1564 of file dsp_spos_scb_lib.c.

struct dsp_scb_descriptor* cs46xx_dsp_create_asynch_fg_rx_scb ( struct snd_cs46xx chip,
char scb_name,
u32  dest,
u16  hfg_scb_address,
u16  asynch_buffer_address,
struct dsp_scb_descriptor parent_scb,
int  scb_child_type 
)
read

Definition at line 982 of file dsp_spos_scb_lib.c.

struct dsp_scb_descriptor* cs46xx_dsp_create_codec_in_scb ( struct snd_cs46xx chip,
char codec_name,
u16  channel_disp,
u16  fifo_addr,
u16  sample_buffer_addr,
u32  dest,
struct dsp_scb_descriptor parent_scb,
int  scb_child_type 
)
read

Definition at line 452 of file dsp_spos_scb_lib.c.

struct dsp_scb_descriptor* cs46xx_dsp_create_codec_out_scb ( struct snd_cs46xx chip,
char codec_name,
u16  channel_disp,
u16  fifo_addr,
u16  child_scb_addr,
u32  dest,
struct dsp_scb_descriptor parent_scb,
int  scb_child_type 
)
read

Definition at line 414 of file dsp_spos_scb_lib.c.

struct dsp_scb_descriptor* cs46xx_dsp_create_magic_snoop_scb ( struct snd_cs46xx chip,
char scb_name,
u32  dest,
u16  snoop_buffer_address,
struct dsp_scb_descriptor snoop_scb,
struct dsp_scb_descriptor parent_scb,
int  scb_child_type 
)
read

Definition at line 1110 of file dsp_spos_scb_lib.c.

struct dsp_scb_descriptor* cs46xx_dsp_create_mix_only_scb ( struct snd_cs46xx chip,
char scb_name,
u16  mix_buffer_addr,
u32  dest,
struct dsp_scb_descriptor parent_scb,
int  scb_child_type 
)
read

Definition at line 754 of file dsp_spos_scb_lib.c.

struct dsp_scb_descriptor* cs46xx_dsp_create_mix_to_ostream_scb ( struct snd_cs46xx chip,
char scb_name,
u16  mix_buffer_addr,
u16  writeback_spb,
u32  dest,
struct dsp_scb_descriptor parent_scb,
int  scb_child_type 
)
read

Definition at line 794 of file dsp_spos_scb_lib.c.

struct dsp_pcm_channel_descriptor* cs46xx_dsp_create_pcm_channel ( struct snd_cs46xx chip,
u32  sample_rate,
void private_data,
u32  hw_dma_addr,
int  pcm_channel_id 
)
read

Definition at line 1231 of file dsp_spos_scb_lib.c.

struct dsp_scb_descriptor* cs46xx_dsp_create_spio_write_scb ( struct snd_cs46xx chip,
char scb_name,
u32  dest,
struct dsp_scb_descriptor parent_scb,
int  scb_child_type 
)
read

Definition at line 1074 of file dsp_spos_scb_lib.c.

struct dsp_scb_descriptor* cs46xx_dsp_create_src_task_scb ( struct snd_cs46xx chip,
char scb_name,
int  rate,
u16  src_buffer_addr,
u16  src_delay_buffer_addr,
u32  dest,
struct dsp_scb_descriptor parent_scb,
int  scb_child_type,
int  pass_through 
)
read

Definition at line 600 of file dsp_spos_scb_lib.c.

struct dsp_scb_descriptor* cs46xx_dsp_create_timing_master_scb ( struct snd_cs46xx chip)
read

Definition at line 380 of file dsp_spos_scb_lib.c.

struct dsp_scb_descriptor* cs46xx_dsp_create_vari_decimate_scb ( struct snd_cs46xx chip,
char scb_name,
u16  vari_buffer_addr0,
u16  vari_buffer_addr1,
u32  dest,
struct dsp_scb_descriptor parent_scb,
int  scb_child_type 
)
read

Definition at line 848 of file dsp_spos_scb_lib.c.

void cs46xx_dsp_destroy_pcm_channel ( struct snd_cs46xx chip,
struct dsp_pcm_channel_descriptor pcm_channel 
)

Definition at line 1469 of file dsp_spos_scb_lib.c.

int cs46xx_dsp_disable_spdif_out ( struct snd_cs46xx chip)

Definition at line 1684 of file dsp_spos_scb_lib.c.

int cs46xx_dsp_enable_spdif_out ( struct snd_cs46xx chip)

Definition at line 1633 of file dsp_spos_scb_lib.c.

int cs46xx_dsp_pcm_channel_set_period ( struct snd_cs46xx chip,
struct dsp_pcm_channel_descriptor pcm_channel,
int  period_size 
)

Definition at line 1392 of file dsp_spos_scb_lib.c.

int cs46xx_dsp_pcm_link ( struct snd_cs46xx chip,
struct dsp_pcm_channel_descriptor pcm_channel 
)

Definition at line 1525 of file dsp_spos_scb_lib.c.

int cs46xx_dsp_pcm_ostream_set_period ( struct snd_cs46xx chip,
int  period_size 
)

Definition at line 1431 of file dsp_spos_scb_lib.c.

int cs46xx_dsp_pcm_unlink ( struct snd_cs46xx chip,
struct dsp_pcm_channel_descriptor pcm_channel 
)

Definition at line 1502 of file dsp_spos_scb_lib.c.

void cs46xx_dsp_remove_scb ( struct snd_cs46xx chip,
struct dsp_scb_descriptor scb 
)

Definition at line 177 of file dsp_spos_scb_lib.c.

int cs46xx_iec958_post_close ( struct snd_cs46xx chip)

Definition at line 1754 of file dsp_spos_scb_lib.c.

int cs46xx_iec958_pre_open ( struct snd_cs46xx chip)

Definition at line 1721 of file dsp_spos_scb_lib.c.

int cs46xx_src_link ( struct snd_cs46xx chip,
struct dsp_scb_descriptor src 
)

Definition at line 1607 of file dsp_spos_scb_lib.c.

int cs46xx_src_unlink ( struct snd_cs46xx chip,
struct dsp_scb_descriptor src 
)

Definition at line 1590 of file dsp_spos_scb_lib.c.