Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
p16v.c File Reference
#include <linux/delay.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/pci.h>
#include <linux/slab.h>
#include <linux/vmalloc.h>
#include <linux/moduleparam.h>
#include <sound/core.h>
#include <sound/initval.h>
#include <sound/pcm.h>
#include <sound/ac97_codec.h>
#include <sound/info.h>
#include <sound/tlv.h>
#include <sound/emu10k1.h>
#include "p16v.h"

Go to the source code of this file.

Macros

#define SET_CHANNEL   0 /* Testing channel outputs 0=Front, 1=Center/LFE, 2=Unknown, 3=Rear */
 
#define PCM_FRONT_CHANNEL   0
 
#define PCM_REAR_CHANNEL   1
 
#define PCM_CENTER_LFE_CHANNEL   2
 
#define PCM_SIDE_CHANNEL   3
 
#define CONTROL_FRONT_CHANNEL   0
 
#define CONTROL_REAR_CHANNEL   3
 
#define CONTROL_CENTER_LFE_CHANNEL   1
 
#define CONTROL_SIDE_CHANNEL   2
 
#define P16V_VOL(xname, xreg, xhl)
 

Functions

int snd_p16v_free (struct snd_emu10k1 *chip)
 
int __devinit snd_p16v_pcm (struct snd_emu10k1 *emu, int device, struct snd_pcm **rpcm)
 
int __devinit snd_p16v_mixer (struct snd_emu10k1 *emu)
 

Macro Definition Documentation

#define CONTROL_CENTER_LFE_CHANNEL   1

Definition at line 113 of file p16v.c.

#define CONTROL_FRONT_CHANNEL   0

Definition at line 111 of file p16v.c.

#define CONTROL_REAR_CHANNEL   3

Definition at line 112 of file p16v.c.

#define CONTROL_SIDE_CHANNEL   2

Definition at line 114 of file p16v.c.

#define P16V_VOL (   xname,
  xreg,
  xhl 
)
Value:
{ \
.iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
SNDRV_CTL_ELEM_ACCESS_TLV_READ, \
.info = snd_p16v_volume_info, \
.get = snd_p16v_volume_get, \
.put = snd_p16v_volume_put, \
.tlv = { .p = snd_p16v_db_scale1 }, \
.private_value = ((xreg) | ((xhl) << 8)) \
}

Definition at line 846 of file p16v.c.

#define PCM_CENTER_LFE_CHANNEL   2

Definition at line 109 of file p16v.c.

#define PCM_FRONT_CHANNEL   0

Definition at line 107 of file p16v.c.

#define PCM_REAR_CHANNEL   1

Definition at line 108 of file p16v.c.

#define PCM_SIDE_CHANNEL   3

Definition at line 110 of file p16v.c.

#define SET_CHANNEL   0 /* Testing channel outputs 0=Front, 1=Center/LFE, 2=Unknown, 3=Rear */

Definition at line 106 of file p16v.c.

Function Documentation

int snd_p16v_free ( struct snd_emu10k1 *  chip)

Definition at line 627 of file p16v.c.

int __devinit snd_p16v_mixer ( struct snd_emu10k1 *  emu)

Definition at line 883 of file p16v.c.

int __devinit snd_p16v_pcm ( struct snd_emu10k1 *  emu,
int  device,
struct snd_pcm **  rpcm 
)

Definition at line 640 of file p16v.c.