Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
tas.c File Reference
#include <stddef.h>
#include <linux/i2c.h>
#include <asm/pmac_low_i2c.h>
#include <asm/prom.h>
#include <linux/delay.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/slab.h>
#include "tas.h"
#include "tas-gain-table.h"
#include "tas-basstreble.h"
#include "../aoa.h"
#include "../soundbus/soundbus.h"

Go to the source code of this file.

Data Structures

struct  tas
 

Macros

#define PFX   "snd-aoa-codec-tas: "
 
#define tas_snd_mute_info   snd_ctl_boolean_stereo_info
 
#define MIXER_CONTROL(n, descr, idx)
 
#define tas_snd_drc_switch_info   snd_ctl_boolean_mono_info
 
#define _tas_suspend   NULL
 
#define _tas_resume   NULL
 

Functions

 MODULE_AUTHOR ("Johannes Berg <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DESCRIPTION ("tas codec driver for snd-aoa")
 
 MIXER_CONTROL (pcm1,"PCM", 0)
 
 MIXER_CONTROL (monitor,"Monitor", 2)
 
 MODULE_DEVICE_TABLE (i2c, tas_i2c_id)
 
 module_i2c_driver (tas_driver)
 

Macro Definition Documentation

#define _tas_resume   NULL

Definition at line 785 of file tas.c.

#define _tas_suspend   NULL

Definition at line 784 of file tas.c.

#define MIXER_CONTROL (   n,
  descr,
  idx 
)
Value:
static struct snd_kcontrol_new n##_control = { \
.name = descr " Playback Volume", \
.info = tas_snd_mixer_info, \
.get = tas_snd_mixer_get, \
.put = tas_snd_mixer_put, \
.private_value = idx, \
}

Definition at line 372 of file tas.c.

#define PFX   "snd-aoa-codec-tas: "

Definition at line 81 of file tas.c.

#define tas_snd_drc_switch_info   snd_ctl_boolean_mono_info

Definition at line 438 of file tas.c.

#define tas_snd_mute_info   snd_ctl_boolean_stereo_info

Definition at line 283 of file tas.c.

Function Documentation

MIXER_CONTROL ( pcm1  ,
"PCM"  ,
 
)
MIXER_CONTROL ( monitor  ,
"Monitor"  ,
 
)
MODULE_AUTHOR ( "Johannes Berg <[email protected]>"  )
MODULE_DESCRIPTION ( "tas codec driver for snd-aoa"  )
MODULE_DEVICE_TABLE ( i2c  ,
tas_i2c_id   
)
module_i2c_driver ( tas_driver  )
MODULE_LICENSE ( "GPL"  )