Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
sb16_csp.c File Reference
#include <linux/delay.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <sound/core.h>
#include <sound/control.h>
#include <sound/info.h>
#include <sound/sb16_csp.h>
#include <sound/initval.h>

Go to the source code of this file.

Data Structures

struct  riff_header
 
struct  desc_header
 

Macros

#define CSP_HDR_VALUE(a, b, c, d)   ((d) | ((c)<<8) | ((b)<<16) | ((a)<<24))
 
#define RIFF_HEADER   CSP_HDR_VALUE('R', 'I', 'F', 'F')
 
#define CSP__HEADER   CSP_HDR_VALUE('C', 'S', 'P', ' ')
 
#define LIST_HEADER   CSP_HDR_VALUE('L', 'I', 'S', 'T')
 
#define FUNC_HEADER   CSP_HDR_VALUE('f', 'u', 'n', 'c')
 
#define CODE_HEADER   CSP_HDR_VALUE('c', 'o', 'd', 'e')
 
#define INIT_HEADER   CSP_HDR_VALUE('i', 'n', 'i', 't')
 
#define MAIN_HEADER   CSP_HDR_VALUE('m', 'a', 'i', 'n')
 
#define snd_sb_qsound_switch_info   snd_ctl_boolean_mono_info
 

Functions

 MODULE_AUTHOR ("Uros Bizjak <[email protected]>")
 
 MODULE_DESCRIPTION ("ALSA driver for SB16 Creative Signal Processor")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_FIRMWARE ("sb16/mulaw_main.csp")
 
 MODULE_FIRMWARE ("sb16/alaw_main.csp")
 
 MODULE_FIRMWARE ("sb16/ima_adpcm_init.csp")
 
 MODULE_FIRMWARE ("sb16/ima_adpcm_playback.csp")
 
 MODULE_FIRMWARE ("sb16/ima_adpcm_capture.csp")
 
int snd_sb_csp_new (struct snd_sb *chip, int device, struct snd_hwdep **rhwdep)
 
 EXPORT_SYMBOL (snd_sb_csp_new)
 

Macro Definition Documentation

#define CODE_HEADER   CSP_HDR_VALUE('c', 'o', 'd', 'e')

Definition at line 55 of file sb16_csp.c.

#define CSP__HEADER   CSP_HDR_VALUE('C', 'S', 'P', ' ')

Definition at line 52 of file sb16_csp.c.

#define CSP_HDR_VALUE (   a,
  b,
  c,
  d 
)    ((d) | ((c)<<8) | ((b)<<16) | ((a)<<24))

Definition at line 48 of file sb16_csp.c.

#define FUNC_HEADER   CSP_HDR_VALUE('f', 'u', 'n', 'c')

Definition at line 54 of file sb16_csp.c.

#define INIT_HEADER   CSP_HDR_VALUE('i', 'n', 'i', 't')

Definition at line 56 of file sb16_csp.c.

#define LIST_HEADER   CSP_HDR_VALUE('L', 'I', 'S', 'T')

Definition at line 53 of file sb16_csp.c.

#define MAIN_HEADER   CSP_HDR_VALUE('m', 'a', 'i', 'n')

Definition at line 57 of file sb16_csp.c.

#define RIFF_HEADER   CSP_HDR_VALUE('R', 'I', 'F', 'F')

Definition at line 51 of file sb16_csp.c.

#define snd_sb_qsound_switch_info   snd_ctl_boolean_mono_info

Definition at line 963 of file sb16_csp.c.

Function Documentation

EXPORT_SYMBOL ( snd_sb_csp_new  )
MODULE_AUTHOR ( "Uros Bizjak <[email protected]>"  )
MODULE_DESCRIPTION ( "ALSA driver for SB16 Creative Signal Processor"  )
MODULE_FIRMWARE ( "sb16/mulaw_main.csp"  )
MODULE_FIRMWARE ( "sb16/alaw_main.csp"  )
MODULE_FIRMWARE ( "sb16/ima_adpcm_init.csp"  )
MODULE_FIRMWARE ( "sb16/ima_adpcm_playback.csp"  )
MODULE_FIRMWARE ( "sb16/ima_adpcm_capture.csp"  )
MODULE_LICENSE ( "GPL"  )
int snd_sb_csp_new ( struct snd_sb chip,
int  device,
struct snd_hwdep **  rhwdep 
)

Definition at line 116 of file sb16_csp.c.