Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
soundcard.c File Reference
#include "sound_config.h"
#include <linux/init.h>
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/signal.h>
#include <linux/fcntl.h>
#include <linux/ctype.h>
#include <linux/stddef.h>
#include <linux/kmod.h>
#include <linux/kernel.h>
#include <asm/dma.h>
#include <asm/io.h>
#include <linux/wait.h>
#include <linux/ioport.h>
#include <linux/major.h>
#include <linux/delay.h>
#include <linux/proc_fs.h>
#include <linux/mutex.h>
#include <linux/module.h>
#include <linux/mm.h>
#include <linux/device.h>

Go to the source code of this file.

Data Structures

struct  oss_minor_dev
 

Macros

#define valid_dma(n)   ((n) >= 0 && (n) < MAX_DMA_CHANNELS && (n) != 4)
 
#define DMA_MAP_UNAVAIL   0
 
#define DMA_MAP_FREE   1
 
#define DMA_MAP_BUSY   2
 
#define PROC_BLOCK_SIZE   (3*1024)
 

Functions

intload_mixer_volumes (char *name, int *levels, int present)
 
 EXPORT_SYMBOL (load_mixer_volumes)
 
 module_param (dmabuf, int, 0444)
 
 module_param (dmabug, int, 0444)
 
 module_init (oss_init)
 
 module_exit (oss_cleanup)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DESCRIPTION ("OSS Sound subsystem")
 
 MODULE_AUTHOR ("Hannu Savolainen, et al.")
 
int sound_alloc_dma (int chn, char *deviceID)
 
 EXPORT_SYMBOL (sound_alloc_dma)
 
int sound_open_dma (int chn, char *deviceID)
 
 EXPORT_SYMBOL (sound_open_dma)
 
void sound_free_dma (int chn)
 
 EXPORT_SYMBOL (sound_free_dma)
 
void sound_close_dma (int chn)
 
 EXPORT_SYMBOL (sound_close_dma)
 
void request_sound_timer (int count)
 
void sound_stop_timer (void)
 
void conf_printf (char *name, struct address_info *hw_config)
 
 EXPORT_SYMBOL (conf_printf)
 
void conf_printf2 (char *name, int base, int irq, int dma, int dma2)
 
 EXPORT_SYMBOL (conf_printf2)
 

Variables

voidsound_mem_blocks [MAX_MEM_BLOCKS]
 
int sound_nblocks = 0
 
int sound_dmap_flag = 0
 
unsigned long seq_time = 0
 
struct classsound_class
 
struct file_operations oss_sound_fops
 
struct oss_minor_dev dev_list []
 

Macro Definition Documentation

#define DMA_MAP_BUSY   2

Definition at line 73 of file soundcard.c.

#define DMA_MAP_FREE   1

Definition at line 72 of file soundcard.c.

#define DMA_MAP_UNAVAIL   0

Definition at line 71 of file soundcard.c.

#define PROC_BLOCK_SIZE   (3*1024)

Definition at line 142 of file soundcard.c.

#define valid_dma (   n)    ((n) >= 0 && (n) < MAX_DMA_CHANNELS && (n) != 4)

Definition at line 52 of file soundcard.c.

Function Documentation

void conf_printf ( char name,
struct address_info hw_config 
)

Definition at line 698 of file soundcard.c.

void conf_printf2 ( char name,
int  base,
int  irq,
int  dma,
int  dma2 
)

Definition at line 719 of file soundcard.c.

EXPORT_SYMBOL ( load_mixer_volumes  )
EXPORT_SYMBOL ( sound_alloc_dma  )
EXPORT_SYMBOL ( sound_open_dma  )
EXPORT_SYMBOL ( sound_free_dma  )
EXPORT_SYMBOL ( sound_close_dma  )
EXPORT_SYMBOL ( conf_printf  )
EXPORT_SYMBOL ( conf_printf2  )
int* load_mixer_volumes ( char name,
int levels,
int  present 
)

Definition at line 85 of file soundcard.c.

MODULE_AUTHOR ( "Hannu  Savolainen,
et al."   
)
MODULE_DESCRIPTION ( "OSS Sound subsystem"  )
module_exit ( oss_cleanup  )
module_init ( oss_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( dmabuf  ,
int  ,
0444   
)
module_param ( dmabug  ,
int  ,
0444   
)
void request_sound_timer ( int  count)

Definition at line 673 of file soundcard.c.

int sound_alloc_dma ( int  chn,
char deviceID 
)

Definition at line 615 of file soundcard.c.

void sound_close_dma ( int  chn)

Definition at line 655 of file soundcard.c.

void sound_free_dma ( int  chn)

Definition at line 644 of file soundcard.c.

int sound_open_dma ( int  chn,
char deviceID 
)

Definition at line 628 of file soundcard.c.

void sound_stop_timer ( void  )

Definition at line 693 of file soundcard.c.

Variable Documentation

struct oss_minor_dev dev_list[]
Initial value:
= {
}
struct file_operations oss_sound_fops
Initial value:
= {
.owner = THIS_MODULE,
.llseek = no_llseek,
.read = sound_read,
.write = sound_write,
.poll = sound_poll,
.unlocked_ioctl = sound_ioctl,
.mmap = sound_mmap,
.open = sound_open,
.release = sound_release,
}

Definition at line 498 of file soundcard.c.

unsigned long seq_time = 0

Definition at line 76 of file soundcard.c.

struct class* sound_class

Definition at line 25 of file sound_core.c.

int sound_dmap_flag = 0

Definition at line 66 of file soundcard.c.

void* sound_mem_blocks[MAX_MEM_BLOCKS]

Definition at line 58 of file soundcard.c.

int sound_nblocks = 0

Definition at line 60 of file soundcard.c.