Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ak4xxx-adda.c File Reference
#include <asm/io.h>
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/init.h>
#include <linux/module.h>
#include <sound/core.h>
#include <sound/control.h>
#include <sound/tlv.h>
#include <sound/ak4xxx-adda.h>
#include <sound/info.h>

Go to the source code of this file.

Macros

#define AK_IPGA   (1<<20) /* including IPGA */
 
#define AK_VOL_CVT   (1<<21) /* need dB conversion */
 
#define AK_NEEDSMSB   (1<<22) /* need MSB update bit */
 
#define AK_INVERT   (1<<23) /* data is inverted */
 
#define AK_GET_CHIP(val)   (((val) >> 8) & 0xff)
 
#define AK_GET_ADDR(val)   ((val) & 0xff)
 
#define AK_GET_SHIFT(val)   (((val) >> 16) & 0x0f)
 
#define AK_GET_VOL_CVT(val)   (((val) >> 21) & 1)
 
#define AK_GET_IPGA(val)   (((val) >> 20) & 1)
 
#define AK_GET_NEEDSMSB(val)   (((val) >> 22) & 1)
 
#define AK_GET_INVERT(val)   (((val) >> 23) & 1)
 
#define AK_GET_MASK(val)   (((val) >> 24) & 0xff)
 
#define AK_COMPOSE(chip, addr, shift, mask)   (((chip) << 8) | (addr) | ((shift) << 16) | ((mask) << 24))
 
#define ak4xxx_switch_info   snd_ctl_boolean_mono_info
 
#define AK5365_NUM_INPUTS   5
 

Functions

 MODULE_AUTHOR ("Jaroslav Kysela <[email protected]>, Takashi Iwai <[email protected]>")
 
 MODULE_DESCRIPTION ("Routines for control of AK452x / AK43xx AD/DA converters")
 
 MODULE_LICENSE ("GPL")
 
void snd_akm4xxx_write (struct snd_akm4xxx *ak, int chip, unsigned char reg, unsigned char val)
 
 EXPORT_SYMBOL (snd_akm4xxx_write)
 
void snd_akm4xxx_reset (struct snd_akm4xxx *ak, int state)
 
 EXPORT_SYMBOL (snd_akm4xxx_reset)
 
void snd_akm4xxx_init (struct snd_akm4xxx *ak)
 
 EXPORT_SYMBOL (snd_akm4xxx_init)
 
int snd_akm4xxx_build_controls (struct snd_akm4xxx *ak)
 
 EXPORT_SYMBOL (snd_akm4xxx_build_controls)
 

Macro Definition Documentation

#define ak4xxx_switch_info   snd_ctl_boolean_mono_info

Definition at line 511 of file ak4xxx-adda.c.

#define AK5365_NUM_INPUTS   5

Definition at line 554 of file ak4xxx-adda.c.

#define AK_COMPOSE (   chip,
  addr,
  shift,
  mask 
)    (((chip) << 8) | (addr) | ((shift) << 16) | ((mask) << 24))

Definition at line 363 of file ak4xxx-adda.c.

#define AK_GET_ADDR (   val)    ((val) & 0xff)

Definition at line 356 of file ak4xxx-adda.c.

#define AK_GET_CHIP (   val)    (((val) >> 8) & 0xff)

Definition at line 355 of file ak4xxx-adda.c.

#define AK_GET_INVERT (   val)    (((val) >> 23) & 1)

Definition at line 361 of file ak4xxx-adda.c.

#define AK_GET_IPGA (   val)    (((val) >> 20) & 1)

Definition at line 359 of file ak4xxx-adda.c.

#define AK_GET_MASK (   val)    (((val) >> 24) & 0xff)

Definition at line 362 of file ak4xxx-adda.c.

#define AK_GET_NEEDSMSB (   val)    (((val) >> 22) & 1)

Definition at line 360 of file ak4xxx-adda.c.

#define AK_GET_SHIFT (   val)    (((val) >> 16) & 0x0f)

Definition at line 357 of file ak4xxx-adda.c.

#define AK_GET_VOL_CVT (   val)    (((val) >> 21) & 1)

Definition at line 358 of file ak4xxx-adda.c.

#define AK_INVERT   (1<<23) /* data is inverted */

Definition at line 354 of file ak4xxx-adda.c.

#define AK_IPGA   (1<<20) /* including IPGA */

Definition at line 351 of file ak4xxx-adda.c.

#define AK_NEEDSMSB   (1<<22) /* need MSB update bit */

Definition at line 353 of file ak4xxx-adda.c.

#define AK_VOL_CVT   (1<<21) /* need dB conversion */

Definition at line 352 of file ak4xxx-adda.c.

Function Documentation

EXPORT_SYMBOL ( snd_akm4xxx_write  )
EXPORT_SYMBOL ( snd_akm4xxx_reset  )
EXPORT_SYMBOL ( snd_akm4xxx_init  )
EXPORT_SYMBOL ( snd_akm4xxx_build_controls  )
MODULE_AUTHOR ( "Jaroslav Kysela <[email protected] ,
Takashi Iwai< tiwai @suse.de >"   
)
MODULE_DESCRIPTION ( "Routines for control of AK452x / AK43xx AD/DA converters"  )
MODULE_LICENSE ( "GPL"  )
int snd_akm4xxx_build_controls ( struct snd_akm4xxx ak)

Definition at line 907 of file ak4xxx-adda.c.

void snd_akm4xxx_init ( struct snd_akm4xxx ak)

Definition at line 172 of file ak4xxx-adda.c.

void snd_akm4xxx_reset ( struct snd_akm4xxx ak,
int  state 
)

Definition at line 107 of file ak4xxx-adda.c.

void snd_akm4xxx_write ( struct snd_akm4xxx ak,
int  chip,
unsigned char  reg,
unsigned char  val 
)

Definition at line 40 of file ak4xxx-adda.c.