Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ca0106_mixer.c File Reference
#include <linux/delay.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/moduleparam.h>
#include <sound/core.h>
#include <sound/initval.h>
#include <sound/pcm.h>
#include <sound/ac97_codec.h>
#include <sound/info.h>
#include <sound/tlv.h>
#include <asm/io.h>
#include "ca0106.h"

Go to the source code of this file.

Macros

#define snd_ca0106_shared_spdif_info   snd_ctl_boolean_mono_info
 
#define spi_mute_info   snd_ctl_boolean_mono_info
 
#define CA_VOLUME(xname, chid, reg)
 
#define I2C_VOLUME(xname, chid)
 
#define ADD_CTLS(emu, ctls)
 

Functions

int __devinit snd_ca0106_mixer (struct snd_ca0106 *emu)
 

Macro Definition Documentation

#define ADD_CTLS (   emu,
  ctls 
)
Value:
do { \
int i, _err; \
for (i = 0; i < ARRAY_SIZE(ctls); i++) { \
_err = snd_ctl_add(card, snd_ctl_new1(&ctls[i], emu)); \
if (_err < 0) \
return _err; \
} \
} while (0)

Definition at line 767 of file ca0106_mixer.c.

#define CA_VOLUME (   xname,
  chid,
  reg 
)
Value:
{ \
.iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
SNDRV_CTL_ELEM_ACCESS_TLV_READ, \
.info = snd_ca0106_volume_info, \
.get = snd_ca0106_volume_get, \
.put = snd_ca0106_volume_put, \
.tlv = { .p = snd_ca0106_db_scale1 }, \
.private_value = ((chid) << 8) | (reg) \
}

Definition at line 579 of file ca0106_mixer.c.

#define I2C_VOLUME (   xname,
  chid 
)
Value:
{ \
.iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
SNDRV_CTL_ELEM_ACCESS_TLV_READ, \
.info = snd_ca0106_i2c_volume_info, \
.get = snd_ca0106_i2c_volume_get, \
.put = snd_ca0106_i2c_volume_put, \
.tlv = { .p = snd_ca0106_db_scale2 }, \
.private_value = chid \
}

Definition at line 660 of file ca0106_mixer.c.

#define snd_ca0106_shared_spdif_info   snd_ctl_boolean_mono_info

Definition at line 158 of file ca0106_mixer.c.

#define spi_mute_info   snd_ctl_boolean_mono_info

Definition at line 543 of file ca0106_mixer.c.

Function Documentation

int __devinit snd_ca0106_mixer ( struct snd_ca0106 emu)

Definition at line 812 of file ca0106_mixer.c.