Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
dsp_audio.c File Reference
#include <linux/delay.h>
#include <linux/mISDNif.h>
#include <linux/mISDNdsp.h>
#include <linux/export.h>
#include "core.h"
#include "dsp.h"

Go to the source code of this file.

Macros

#define AMI_MASK   0x55
 
#define BIAS   0x84
 

Functions

 EXPORT_SYMBOL (dsp_audio_law_to_s32)
 
 EXPORT_SYMBOL (dsp_audio_s16_to_law)
 
void dsp_audio_generate_law_tables (void)
 
void dsp_audio_generate_s2law_table (void)
 
void dsp_audio_generate_seven (void)
 
void dsp_audio_generate_mix_table (void)
 
void dsp_audio_generate_volume_changes (void)
 
void dsp_change_volume (struct sk_buff *skb, int volume)
 

Variables

s32 dsp_audio_ulaw_to_s32 [256]
 
s32 dsp_audio_alaw_to_s32 [256]
 
s32dsp_audio_law_to_s32
 
u8 dsp_audio_s16_to_law [65536]
 
u8 dsp_audio_alaw_to_ulaw [256]
 
u8 dsp_silence
 
u8 dsp_audio_seven2law [128]
 
u8 dsp_audio_law2seven [256]
 
u8 dsp_audio_mix_law [65536]
 

Macro Definition Documentation

#define AMI_MASK   0x55

Definition at line 42 of file dsp_audio.c.

#define BIAS   0x84

define the add-in bias for 16 bit samples

Definition at line 102 of file dsp_audio.c.

Function Documentation

void dsp_audio_generate_law_tables ( void  )

Definition at line 153 of file dsp_audio.c.

void dsp_audio_generate_mix_table ( void  )

Definition at line 251 of file dsp_audio.c.

void dsp_audio_generate_s2law_table ( void  )

Definition at line 171 of file dsp_audio.c.

void dsp_audio_generate_seven ( void  )

Definition at line 203 of file dsp_audio.c.

void dsp_audio_generate_volume_changes ( void  )

Definition at line 316 of file dsp_audio.c.

void dsp_change_volume ( struct sk_buff skb,
int  volume 
)

Definition at line 403 of file dsp_audio.c.

EXPORT_SYMBOL ( dsp_audio_law_to_s32  )
EXPORT_SYMBOL ( dsp_audio_s16_to_law  )

Variable Documentation

s32 dsp_audio_alaw_to_s32[256]

Definition at line 22 of file dsp_audio.c.

u8 dsp_audio_alaw_to_ulaw[256]

Definition at line 32 of file dsp_audio.c.

u8 dsp_audio_law2seven[256]

Definition at line 196 of file dsp_audio.c.

s32* dsp_audio_law_to_s32

Definition at line 24 of file dsp_audio.c.

u8 dsp_audio_mix_law[65536]

Definition at line 244 of file dsp_audio.c.

u8 dsp_audio_s16_to_law[65536]

Definition at line 28 of file dsp_audio.c.

u8 dsp_audio_seven2law[128]

Definition at line 195 of file dsp_audio.c.

s32 dsp_audio_ulaw_to_s32[256]

Definition at line 20 of file dsp_audio.c.

u8 dsp_silence

Definition at line 35 of file dsp_audio.c.