Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
vidc.c File Reference
#include <linux/gfp.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/interrupt.h>
#include <mach/hardware.h>
#include <asm/dma.h>
#include <asm/io.h>
#include <asm/hardware/iomd.h>
#include <asm/irq.h>
#include "sound_config.h"
#include "vidc.h"

Go to the source code of this file.

Macros

#define _SIOC_TYPE(x)   _IOC_TYPE(x)
 
#define _SIOC_NR(x)   _IOC_NR(x)
 
#define VIDC_SOUND_CLOCK   (250000)
 
#define VIDC_SOUND_CLOCK_EXT   (176400)
 
#define SCALE(lev, master)   ((lev) * (master) * 65536 / 10000)
 
#define my_abs(i)   ((i)<0 ? -(i) : (i))
 
#define TYPE(fmt, ch)   (((fmt)<<2) | ((ch)&3))
 

Functions

void vidc_update_filler (int bits, int channels)
 
 module_init (init_vidc)
 
 module_exit (cleanup_vidc)
 
 MODULE_AUTHOR ("Russell King")
 
 MODULE_DESCRIPTION ("VIDC20 audio driver")
 
 MODULE_LICENSE ("GPL")
 

Variables

int softoss_dev
 

Macro Definition Documentation

#define _SIOC_NR (   x)    _IOC_NR(x)

Definition at line 39 of file vidc.c.

#define _SIOC_TYPE (   x)    _IOC_TYPE(x)

Definition at line 36 of file vidc.c.

#define my_abs (   i)    ((i)<0 ? -(i) : (i))

Definition at line 188 of file vidc.c.

#define SCALE (   lev,
  master 
)    ((lev) * (master) * 65536 / 10000)
#define TYPE (   fmt,
  ch 
)    (((fmt)<<2) | ((ch)&3))
#define VIDC_SOUND_CLOCK   (250000)

Definition at line 42 of file vidc.c.

#define VIDC_SOUND_CLOCK_EXT   (176400)

Definition at line 43 of file vidc.c.

Function Documentation

MODULE_AUTHOR ( "Russell King"  )
MODULE_DESCRIPTION ( "VIDC20 audio driver )
module_exit ( cleanup_vidc  )
module_init ( init_vidc  )
MODULE_LICENSE ( "GPL"  )
void vidc_update_filler ( int  bits,
int  channels 
)

Definition at line 407 of file vidc.c.

Variable Documentation

int softoss_dev