Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
oxygen_mixer.c File Reference
#include <linux/mutex.h>
#include <sound/ac97_codec.h>
#include <sound/asoundef.h>
#include <sound/control.h>
#include <sound/tlv.h>
#include "oxygen.h"
#include "cm9780.h"

Go to the source code of this file.

Macros

#define AC97_SWITCH(xname, codec, index, bitnr, invert)
 
#define AC97_VOLUME(xname, codec, index, stereo)
 

Functions

void oxygen_update_dac_routing (struct oxygen *chip)
 
void oxygen_update_spdif_source (struct oxygen *chip)
 
int oxygen_mixer_init (struct oxygen *chip)
 

Macro Definition Documentation

#define AC97_SWITCH (   xname,
  codec,
  index,
  bitnr,
  invert 
)
Value:
{ \
.name = xname, \
.get = ac97_switch_get, \
.put = ac97_switch_put, \
.private_value = ((codec) << 24) | ((invert) << 16) | \
((bitnr) << 8) | (index), \
}

Definition at line 740 of file oxygen_mixer.c.

#define AC97_VOLUME (   xname,
  codec,
  index,
  stereo 
)
Value:
{ \
.name = xname, \
SNDRV_CTL_ELEM_ACCESS_TLV_READ, \
.info = ac97_volume_info, \
.get = ac97_volume_get, \
.put = ac97_volume_put, \
.tlv = { .p = ac97_db_scale, }, \
.private_value = ((codec) << 24) | ((stereo) << 16) | (index), \
}

Definition at line 749 of file oxygen_mixer.c.

Function Documentation

int oxygen_mixer_init ( struct oxygen chip)

Definition at line 1067 of file oxygen_mixer.c.

void oxygen_update_dac_routing ( struct oxygen chip)

Definition at line 135 of file oxygen_mixer.c.

void oxygen_update_spdif_source ( struct oxygen chip)

Definition at line 245 of file oxygen_mixer.c.

Variable Documentation

unsigned int pcm_dev

Definition at line 859 of file oxygen_mixer.c.