#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"
int cs4245_write_spi(struct oxygen *chip, u8 reg)
{ … }
int cs4245_read_spi(struct oxygen *chip, u8 addr)
{ … }
int cs4245_shadow_control(struct oxygen *chip, enum cs4245_shadow_operation op)
{ … }
static void cs4245_init(struct oxygen *chip)
{ … }
void dg_init(struct oxygen *chip)
{ … }
void dg_cleanup(struct oxygen *chip)
{ … }
void dg_suspend(struct oxygen *chip)
{ … }
void dg_resume(struct oxygen *chip)
{ … }
void set_cs4245_dac_params(struct oxygen *chip,
struct snd_pcm_hw_params *params)
{ … }
void set_cs4245_adc_params(struct oxygen *chip,
struct snd_pcm_hw_params *params)
{ … }
static inline unsigned int shift_bits(unsigned int value,
unsigned int shift_from,
unsigned int shift_to,
unsigned int mask)
{ … }
unsigned int adjust_dg_dac_routing(struct oxygen *chip,
unsigned int play_routing)
{ … }
void dump_cs4245_registers(struct oxygen *chip,
struct snd_info_buffer *buffer)
{ … }