Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
harmony.c File Reference
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/time.h>
#include <linux/wait.h>
#include <linux/delay.h>
#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/spinlock.h>
#include <linux/dma-mapping.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/control.h>
#include <sound/rawmidi.h>
#include <sound/initval.h>
#include <sound/info.h>
#include <asm/io.h>
#include <asm/hardware.h>
#include <asm/parisc-device.h>
#include "harmony.h"

Go to the source code of this file.

Macros

#define NAME   "harmony"
 
#define PFX   NAME ": "
 
#define HARMONY_CONTROLS   ARRAY_SIZE(snd_harmony_controls)
 
#define HARMONY_VOLUME(xname, left_shift, right_shift, mask, invert)
 

Functions

 module_param (index, int, 0444)
 
 MODULE_PARM_DESC (index,"Index value for Harmony driver.")
 
 module_param (id, charp, 0444)
 
 MODULE_PARM_DESC (id,"ID string for Harmony driver.")
 
 MODULE_DEVICE_TABLE (parisc, snd_harmony_devtable)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Kyle McMartin <[email protected]>")
 
 MODULE_DESCRIPTION ("Harmony sound driver")
 
 module_init (alsa_harmony_init)
 
 module_exit (alsa_harmony_fini)
 

Macro Definition Documentation

#define HARMONY_CONTROLS   ARRAY_SIZE(snd_harmony_controls)

Definition at line 828 of file harmony.c.

#define HARMONY_VOLUME (   xname,
  left_shift,
  right_shift,
  mask,
  invert 
)
Value:
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
.info = snd_harmony_mixercontrol_info, \
.get = snd_harmony_volume_get, .put = snd_harmony_volume_put, \
.private_value = ((left_shift) | ((right_shift) << 8) | \
((mask) << 16) | ((invert) << 24)) }

Definition at line 830 of file harmony.c.

#define NAME   "harmony"

Definition at line 83 of file harmony.c.

#define PFX   NAME ": "

Definition at line 84 of file harmony.c.

Function Documentation

MODULE_AUTHOR ( "Kyle McMartin <[email protected]>"  )
MODULE_DESCRIPTION ( "Harmony sound driver )
MODULE_DEVICE_TABLE ( parisc  ,
snd_harmony_devtable   
)
module_exit ( alsa_harmony_fini  )
module_init ( alsa_harmony_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( index  ,
int  ,
0444   
)
module_param ( id  ,
charp  ,
0444   
)
MODULE_PARM_DESC ( index  ,
"Index value for Harmony driver."   
)
MODULE_PARM_DESC ( id  ,
"ID string for Harmony driver."   
)