Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
s3c-i2s-v2.c File Reference
#include <linux/module.h>
#include <linux/delay.h>
#include <linux/clk.h>
#include <linux/io.h>
#include <sound/soc.h>
#include <sound/pcm_params.h>
#include <mach/dma.h>
#include "regs-i2s-v2.h"
#include "s3c-i2s-v2.h"
#include "dma.h"

Go to the source code of this file.

Macros

#define S3C2412_I2S_DEBUG_CON   0
 
#define bit_set(v, b)   (((v) & (b)) ? 1 : 0)
 
#define msecs_to_loops(t)   (loops_per_jiffy / 1000 * HZ * t)
 
#define s3c2412_i2s_suspend   NULL
 
#define s3c2412_i2s_resume   NULL
 

Functions

struct clks3c_i2sv2_get_clock (struct snd_soc_dai *cpu_dai)
 
 EXPORT_SYMBOL_GPL (s3c_i2sv2_get_clock)
 
int s3c_i2sv2_iis_calc_rate (struct s3c_i2sv2_rate_calc *info, unsigned int *fstab, unsigned int rate, struct clk *clk)
 
 EXPORT_SYMBOL_GPL (s3c_i2sv2_iis_calc_rate)
 
int s3c_i2sv2_probe (struct snd_soc_dai *dai, struct s3c_i2sv2_info *i2s, unsigned long base)
 
 EXPORT_SYMBOL_GPL (s3c_i2sv2_probe)
 
int s3c_i2sv2_register_dai (struct device *dev, int id, struct snd_soc_dai_driver *drv)
 
 EXPORT_SYMBOL_GPL (s3c_i2sv2_register_dai)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define bit_set (   v,
  b 
)    (((v) & (b)) ? 1 : 0)

Definition at line 55 of file s3c-i2s-v2.c.

#define msecs_to_loops (   t)    (loops_per_jiffy / 1000 * HZ * t)

Definition at line 226 of file s3c-i2s-v2.c.

#define S3C2412_I2S_DEBUG_CON   0

Definition at line 48 of file s3c-i2s-v2.c.

#define s3c2412_i2s_resume   NULL

Definition at line 731 of file s3c-i2s-v2.c.

#define s3c2412_i2s_suspend   NULL

Definition at line 730 of file s3c-i2s-v2.c.

Function Documentation

EXPORT_SYMBOL_GPL ( s3c_i2sv2_get_clock  )
EXPORT_SYMBOL_GPL ( s3c_i2sv2_iis_calc_rate  )
EXPORT_SYMBOL_GPL ( s3c_i2sv2_probe  )
EXPORT_SYMBOL_GPL ( s3c_i2sv2_register_dai  )
MODULE_LICENSE ( "GPL"  )
struct clk* s3c_i2sv2_get_clock ( struct snd_soc_dai cpu_dai)
read

Definition at line 564 of file s3c-i2s-v2.c.

int s3c_i2sv2_iis_calc_rate ( struct s3c_i2sv2_rate_calc info,
unsigned int fstab,
unsigned int  rate,
struct clk clk 
)

Definition at line 579 of file s3c-i2s-v2.c.

int s3c_i2sv2_probe ( struct snd_soc_dai dai,
struct s3c_i2sv2_info i2s,
unsigned long  base 
)

s3c_i2sv2_probe - probe for i2s device helper : The ASoC DAI structure supplied to the original probe. : Our local i2s structure to fill in. : The base address for the registers.

Definition at line 641 of file s3c-i2s-v2.c.

int s3c_i2sv2_register_dai ( struct device dev,
int  id,
struct snd_soc_dai_driver drv 
)

s3c_i2sv2_register_dai - register dai with soc core : DAI device : DAI ID : The driver structure to register

Fill in any missing fields and then register the given dai with the soc core.

Definition at line 734 of file s3c-i2s-v2.c.