Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
hal2.c File Reference
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/dma-mapping.h>
#include <linux/platform_device.h>
#include <linux/io.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <asm/sgi/hpc3.h>
#include <asm/sgi/ip22.h>
#include <sound/core.h>
#include <sound/control.h>
#include <sound/pcm.h>
#include <sound/pcm-indirect.h>
#include <sound/initval.h>
#include "hal2.h"

Go to the source code of this file.

Data Structures

struct  hal2_pbus
 
struct  hal2_desc
 
struct  hal2_codec
 
struct  snd_hal2
 

Macros

#define H2_BLOCK_SIZE   1024
 
#define H2_BUF_SIZE   16384
 
#define H2_MIX_OUTPUT_ATT   0
 
#define H2_MIX_INPUT_GAIN   1
 
#define H2_INDIRECT_WAIT(regs)   while (hal2_read(&regs->isr) & H2_ISR_TSTATUS);
 
#define H2_READ_ADDR(addr)   (addr | (1<<7))
 
#define H2_WRITE_ADDR(addr)   (addr)
 
#define HAL2_PBUS_DMACFG
 

Functions

 module_param (index, int, 0444)
 
 MODULE_PARM_DESC (index,"Index value for SGI HAL2 soundcard.")
 
 module_param (id, charp, 0444)
 
 MODULE_PARM_DESC (id,"ID string for SGI HAL2 soundcard.")
 
 MODULE_DESCRIPTION ("ALSA driver for SGI HAL2 audio")
 
 MODULE_AUTHOR ("Thomas Bogendoerfer")
 
 MODULE_LICENSE ("GPL")
 
 module_platform_driver (hal2_driver)
 

Macro Definition Documentation

#define H2_BLOCK_SIZE   1024

Definition at line 54 of file hal2.c.

#define H2_BUF_SIZE   16384

Definition at line 55 of file hal2.c.

#define H2_INDIRECT_WAIT (   regs)    while (hal2_read(&regs->isr) & H2_ISR_TSTATUS);

Definition at line 100 of file hal2.c.

#define H2_MIX_INPUT_GAIN   1

Definition at line 86 of file hal2.c.

#define H2_MIX_OUTPUT_ATT   0

Definition at line 85 of file hal2.c.

#define H2_READ_ADDR (   addr)    (addr | (1<<7))

Definition at line 102 of file hal2.c.

#define H2_WRITE_ADDR (   addr)    (addr)

Definition at line 103 of file hal2.c.

#define HAL2_PBUS_DMACFG
Value:
HPC3_DMACFG_DS16 | \
HPC3_DMACFG_EVENHI | \
HPC3_DMACFG_RTIME | \

Function Documentation

MODULE_AUTHOR ( "Thomas Bogendoerfer"  )
MODULE_DESCRIPTION ( "ALSA driver for SGI HAL2 audio )
MODULE_LICENSE ( "GPL"  )
module_param ( index  ,
int  ,
0444   
)
module_param ( id  ,
charp  ,
0444   
)
MODULE_PARM_DESC ( index  ,
"Index value for SGI HAL2 soundcard."   
)
MODULE_PARM_DESC ( id  ,
"ID string for SGI HAL2 soundcard."   
)
module_platform_driver ( hal2_driver  )