Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
xonar_lib.c File Reference
#include <linux/delay.h>
#include <sound/core.h>
#include <sound/control.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include "xonar.h"

Go to the source code of this file.

Macros

#define GPIO_CS53x1_M_MASK   0x000c
 
#define GPIO_CS53x1_M_SINGLE   0x0000
 
#define GPIO_CS53x1_M_DOUBLE   0x0004
 
#define GPIO_CS53x1_M_QUAD   0x0008
 

Functions

void xonar_enable_output (struct oxygen *chip)
 
void xonar_disable_output (struct oxygen *chip)
 
void xonar_init_ext_power (struct oxygen *chip)
 
void xonar_init_cs53x1 (struct oxygen *chip)
 
void xonar_set_cs53x1_params (struct oxygen *chip, struct snd_pcm_hw_params *params)
 
int xonar_gpio_bit_switch_get (struct snd_kcontrol *ctl, struct snd_ctl_elem_value *value)
 
int xonar_gpio_bit_switch_put (struct snd_kcontrol *ctl, struct snd_ctl_elem_value *value)
 

Macro Definition Documentation

#define GPIO_CS53x1_M_DOUBLE   0x0004

Definition at line 29 of file xonar_lib.c.

#define GPIO_CS53x1_M_MASK   0x000c

Definition at line 27 of file xonar_lib.c.

#define GPIO_CS53x1_M_QUAD   0x0008

Definition at line 30 of file xonar_lib.c.

#define GPIO_CS53x1_M_SINGLE   0x0000

Definition at line 28 of file xonar_lib.c.

Function Documentation

void xonar_disable_output ( struct oxygen chip)

Definition at line 42 of file xonar_lib.c.

void xonar_enable_output ( struct oxygen chip)

Definition at line 33 of file xonar_lib.c.

int xonar_gpio_bit_switch_get ( struct snd_kcontrol ctl,
struct snd_ctl_elem_value value 
)

Definition at line 102 of file xonar_lib.c.

int xonar_gpio_bit_switch_put ( struct snd_kcontrol ctl,
struct snd_ctl_elem_value value 
)

Definition at line 114 of file xonar_lib.c.

void xonar_init_cs53x1 ( struct oxygen chip)

Definition at line 80 of file xonar_lib.c.

void xonar_init_ext_power ( struct oxygen chip)

Definition at line 68 of file xonar_lib.c.

void xonar_set_cs53x1_params ( struct oxygen chip,
struct snd_pcm_hw_params params 
)

Definition at line 87 of file xonar_lib.c.