Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ymfpci_main.c File Reference
#include <linux/delay.h>
#include <linux/firmware.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/pci.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/vmalloc.h>
#include <linux/mutex.h>
#include <linux/module.h>
#include <sound/core.h>
#include <sound/control.h>
#include <sound/info.h>
#include <sound/tlv.h>
#include "ymfpci.h"
#include <sound/asoundef.h>
#include <sound/mpu401.h>
#include <asm/io.h>
#include <asm/byteorder.h>

Go to the source code of this file.

Macros

#define YMFPCI_SINGLE(xname, xindex, reg, shift)
 
#define snd_ymfpci_info_single   snd_ctl_boolean_mono_info
 
#define YMFPCI_DOUBLE(xname, xindex, reg)
 
#define snd_ymfpci_info_dup4ch   snd_ctl_boolean_mono_info
 
#define snd_ymfpci_gpio_sw_info   snd_ctl_boolean_mono_info
 

Functions

int __devinit snd_ymfpci_pcm (struct snd_ymfpci *chip, int device, struct snd_pcm **rpcm)
 
int __devinit snd_ymfpci_pcm2 (struct snd_ymfpci *chip, int device, struct snd_pcm **rpcm)
 
int __devinit snd_ymfpci_pcm_spdif (struct snd_ymfpci *chip, int device, struct snd_pcm **rpcm)
 
int __devinit snd_ymfpci_pcm_4ch (struct snd_ymfpci *chip, int device, struct snd_pcm **rpcm)
 
int __devinit snd_ymfpci_mixer (struct snd_ymfpci *chip, int rear_switch)
 
int __devinit snd_ymfpci_timer (struct snd_ymfpci *chip, int device)
 
 MODULE_FIRMWARE ("yamaha/ds1_dsp.fw")
 
 MODULE_FIRMWARE ("yamaha/ds1_ctrl.fw")
 
 MODULE_FIRMWARE ("yamaha/ds1e_ctrl.fw")
 
int __devinit snd_ymfpci_create (struct snd_card *card, struct pci_dev *pci, unsigned short old_legacy_ctrl, struct snd_ymfpci **rchip)
 

Macro Definition Documentation

#define snd_ymfpci_gpio_sw_info   snd_ctl_boolean_mono_info

Definition at line 1715 of file ymfpci_main.c.

#define snd_ymfpci_info_dup4ch   snd_ctl_boolean_mono_info

Definition at line 1616 of file ymfpci_main.c.

#define snd_ymfpci_info_single   snd_ctl_boolean_mono_info

Definition at line 1484 of file ymfpci_main.c.

#define YMFPCI_DOUBLE (   xname,
  xindex,
  reg 
)
Value:
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, .index = xindex, \
.info = snd_ymfpci_info_double, \
.get = snd_ymfpci_get_double, .put = snd_ymfpci_put_double, \
.private_value = reg, \
.tlv = { .p = db_scale_native } }

Definition at line 1532 of file ymfpci_main.c.

#define YMFPCI_SINGLE (   xname,
  xindex,
  reg,
  shift 
)
Value:
{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, .index = xindex, \
.get = snd_ymfpci_get_single, .put = snd_ymfpci_put_single, \
.private_value = ((reg) | ((shift) << 16)) }

Definition at line 1478 of file ymfpci_main.c.

Function Documentation

MODULE_FIRMWARE ( "yamaha/ds1_dsp.fw )
MODULE_FIRMWARE ( "yamaha/ds1_ctrl.fw )
MODULE_FIRMWARE ( "yamaha/ds1e_ctrl.fw )
int __devinit snd_ymfpci_create ( struct snd_card card,
struct pci_dev pci,
unsigned short  old_legacy_ctrl,
struct snd_ymfpci **  rchip 
)

Definition at line 2397 of file ymfpci_main.c.

int __devinit snd_ymfpci_mixer ( struct snd_ymfpci chip,
int  rear_switch 
)

Definition at line 1829 of file ymfpci_main.c.

int __devinit snd_ymfpci_pcm ( struct snd_ymfpci chip,
int  device,
struct snd_pcm **  rpcm 
)

Definition at line 1147 of file ymfpci_main.c.

int __devinit snd_ymfpci_pcm2 ( struct snd_ymfpci chip,
int  device,
struct snd_pcm **  rpcm 
)

Definition at line 1190 of file ymfpci_main.c.

int __devinit snd_ymfpci_pcm_4ch ( struct snd_ymfpci chip,
int  device,
struct snd_pcm **  rpcm 
)

Definition at line 1273 of file ymfpci_main.c.

int __devinit snd_ymfpci_pcm_spdif ( struct snd_ymfpci chip,
int  device,
struct snd_pcm **  rpcm 
)

Definition at line 1228 of file ymfpci_main.c.

int __devinit snd_ymfpci_timer ( struct snd_ymfpci chip,
int  device 
)

Definition at line 1973 of file ymfpci_main.c.