Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Variables
xonar_dg.c File Reference
#include <linux/pci.h>
#include <linux/delay.h>
#include <sound/control.h>
#include <sound/core.h>
#include <sound/info.h>
#include <sound/pcm.h>
#include <sound/tlv.h>
#include "oxygen.h"
#include "xonar_dg.h"
#include "cs4245.h"

Go to the source code of this file.

Data Structures

struct  dg
 

Macros

#define GPIO_MAGIC   0x0008
 
#define GPIO_HP_DETECT   0x0010
 
#define GPIO_INPUT_ROUTE   0x0060
 
#define GPIO_HP_REAR   0x0080
 
#define GPIO_OUTPUT_ENABLE   0x0100
 
#define INPUT_VOLUME(xname, index)
 

Variables

struct oxygen_model model_xonar_dg
 

Macro Definition Documentation

#define GPIO_HP_DETECT   0x0010

Definition at line 60 of file xonar_dg.c.

#define GPIO_HP_REAR   0x0080

Definition at line 62 of file xonar_dg.c.

#define GPIO_INPUT_ROUTE   0x0060

Definition at line 61 of file xonar_dg.c.

#define GPIO_MAGIC   0x0008

Definition at line 59 of file xonar_dg.c.

#define GPIO_OUTPUT_ENABLE   0x0100

Definition at line 63 of file xonar_dg.c.

#define INPUT_VOLUME (   xname,
  index 
)
Value:
{ \
.name = xname, \
.info = input_vol_info, \
.get = input_vol_get, \
.put = input_vol_put, \
.tlv = { .p = cs4245_pga_db_scale }, \
.private_value = index, \
}

Definition at line 506 of file xonar_dg.c.

Variable Documentation

struct oxygen_model model_xonar_dg
Initial value:
= {
.longname = "C-Media Oxygen HD Audio",
.chip = "CMI8786",
.init = dg_init,
.control_filter = dg_control_filter,
.mixer_init = dg_mixer_init,
.cleanup = dg_cleanup,
.suspend = dg_suspend,
.resume = dg_resume,
.set_dac_params = set_cs4245_dac_params,
.set_adc_params = set_cs4245_adc_params,
.adjust_dac_routing = adjust_dg_dac_routing,
.dump_registers = dump_cs4245_registers,
.model_data_size = sizeof(struct dg),
.device_config = PLAYBACK_0_TO_I2S |
.dac_channels_pcm = 6,
.dac_channels_mixer = 0,
.function_flags = OXYGEN_FUNCTION_SPI,
.dac_mclks = OXYGEN_MCLKS(256, 128, 128),
.adc_mclks = OXYGEN_MCLKS(256, 128, 128),
.dac_i2s_format = OXYGEN_I2S_FORMAT_LJUST,
.adc_i2s_format = OXYGEN_I2S_FORMAT_LJUST,
}

Definition at line 583 of file xonar_dg.c.