Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
g723.c File Reference
#include <linux/kernel.h>
#include <linux/mempool.h>
#include <linux/poll.h>
#include <linux/kthread.h>
#include <linux/slab.h>
#include <linux/freezer.h>
#include <linux/export.h>
#include <sound/core.h>
#include <sound/initval.h>
#include <sound/pcm.h>
#include <sound/control.h>
#include "solo6x10.h"
#include "tw28.h"

Go to the source code of this file.

Data Structures

struct  solo_snd_pcm
 

Macros

#define G723_INTR_ORDER   0
 
#define G723_FDMA_PAGES   32
 
#define G723_PERIOD_BYTES   48
 
#define G723_PERIOD_BLOCK   1024
 
#define G723_FRAMES_PER_PAGE   48
 
#define OUTMODE_MASK   0x300
 
#define SAMPLERATE   8000
 
#define BITRATE   25
 
#define MAX_BUFFER   (G723_PERIOD_BYTES * PERIODS_MAX)
 
#define IRQ_PAGES   4 /* 0 - 4 */
 
#define PERIODS_MIN   (1 << IRQ_PAGES)
 
#define PERIODS_MAX   G723_FDMA_PAGES
 

Functions

void solo_g723_isr (struct solo_dev *solo_dev)
 
int solo_g723_init (struct solo_dev *solo_dev)
 
void solo_g723_exit (struct solo_dev *solo_dev)
 

Macro Definition Documentation

#define BITRATE   25

Definition at line 44 of file g723.c.

#define G723_FDMA_PAGES   32

Definition at line 35 of file g723.c.

#define G723_FRAMES_PER_PAGE   48

Definition at line 38 of file g723.c.

#define G723_INTR_ORDER   0

Definition at line 34 of file g723.c.

#define G723_PERIOD_BLOCK   1024

Definition at line 37 of file g723.c.

#define G723_PERIOD_BYTES   48

Definition at line 36 of file g723.c.

#define IRQ_PAGES   4 /* 0 - 4 */

Definition at line 50 of file g723.c.

#define MAX_BUFFER   (G723_PERIOD_BYTES * PERIODS_MAX)

Definition at line 49 of file g723.c.

#define OUTMODE_MASK   0x300

Definition at line 41 of file g723.c.

#define PERIODS_MAX   G723_FDMA_PAGES

Definition at line 52 of file g723.c.

#define PERIODS_MIN   (1 << IRQ_PAGES)

Definition at line 51 of file g723.c.

#define SAMPLERATE   8000

Definition at line 43 of file g723.c.

Function Documentation

void solo_g723_exit ( struct solo_dev solo_dev)

Definition at line 394 of file g723.c.

int solo_g723_init ( struct solo_dev solo_dev)

Definition at line 337 of file g723.c.

void solo_g723_isr ( struct solo_dev solo_dev)

Definition at line 81 of file g723.c.