Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
soc-cache.c File Reference
#include <linux/i2c.h>
#include <linux/spi/spi.h>
#include <sound/soc.h>
#include <linux/bitmap.h>
#include <linux/rbtree.h>
#include <linux/export.h>
#include <trace/events/asoc.h>

Go to the source code of this file.

Functions

int snd_soc_cache_init (struct snd_soc_codec *codec)
 
int snd_soc_cache_exit (struct snd_soc_codec *codec)
 
int snd_soc_cache_read (struct snd_soc_codec *codec, unsigned int reg, unsigned int *value)
 
 EXPORT_SYMBOL_GPL (snd_soc_cache_read)
 
int snd_soc_cache_write (struct snd_soc_codec *codec, unsigned int reg, unsigned int value)
 
 EXPORT_SYMBOL_GPL (snd_soc_cache_write)
 
int snd_soc_cache_sync (struct snd_soc_codec *codec)
 
 EXPORT_SYMBOL_GPL (snd_soc_cache_sync)
 
int snd_soc_default_volatile_register (struct snd_soc_codec *codec, unsigned int reg)
 
 EXPORT_SYMBOL_GPL (snd_soc_default_volatile_register)
 
int snd_soc_default_readable_register (struct snd_soc_codec *codec, unsigned int reg)
 
 EXPORT_SYMBOL_GPL (snd_soc_default_readable_register)
 
int snd_soc_default_writable_register (struct snd_soc_codec *codec, unsigned int reg)
 
 EXPORT_SYMBOL_GPL (snd_soc_default_writable_register)
 

Function Documentation

EXPORT_SYMBOL_GPL ( snd_soc_cache_read  )
EXPORT_SYMBOL_GPL ( snd_soc_cache_write  )
EXPORT_SYMBOL_GPL ( snd_soc_cache_sync  )
EXPORT_SYMBOL_GPL ( snd_soc_default_volatile_register  )
EXPORT_SYMBOL_GPL ( snd_soc_default_readable_register  )
EXPORT_SYMBOL_GPL ( snd_soc_default_writable_register  )
int snd_soc_cache_exit ( struct snd_soc_codec codec)

Definition at line 180 of file soc-cache.c.

int snd_soc_cache_init ( struct snd_soc_codec codec)

Definition at line 149 of file soc-cache.c.

int snd_soc_cache_read ( struct snd_soc_codec codec,
unsigned int  reg,
unsigned int value 
)

snd_soc_cache_read: Fetch the value of a given register from the cache.

: CODEC to configure. : The register index. : The value to be returned.

Definition at line 198 of file soc-cache.c.

int snd_soc_cache_sync ( struct snd_soc_codec codec)

snd_soc_cache_sync: Sync the register cache with the hardware.

: CODEC to configure.

Any registers that should not be synced should be marked as volatile. In general drivers can choose not to use the provided syncing functionality if they so require.

Definition at line 250 of file soc-cache.c.

int snd_soc_cache_write ( struct snd_soc_codec codec,
unsigned int  reg,
unsigned int  value 
)

snd_soc_cache_write: Set the value of a given register in the cache.

: CODEC to configure. : The register index. : The new register value.

Definition at line 223 of file soc-cache.c.

int snd_soc_default_readable_register ( struct snd_soc_codec codec,
unsigned int  reg 
)

Definition at line 314 of file soc-cache.c.

int snd_soc_default_volatile_register ( struct snd_soc_codec codec,
unsigned int  reg 
)

Definition at line 300 of file soc-cache.c.

int snd_soc_default_writable_register ( struct snd_soc_codec codec,
unsigned int  reg 
)

Definition at line 328 of file soc-cache.c.