Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
s3c-i2s-v2.h File Reference

Go to the source code of this file.

Data Structures

struct  s3c_i2sv2_info
 
struct  s3c_i2sv2_rate_calc
 

Macros

#define __SND_SOC_S3C24XX_S3C_I2SV2_I2S_H   __FILE__
 
#define S3C_I2SV2_DIV_BCLK   (1)
 
#define S3C_I2SV2_DIV_RCLK   (2)
 
#define S3C_I2SV2_DIV_PRESCALER   (3)
 
#define S3C_I2SV2_CLKSRC_PCLK   0
 
#define S3C_I2SV2_CLKSRC_AUDIOBUS   1
 
#define S3C_I2SV2_CLKSRC_CDCLK   2
 
#define S3C_FEATURE_CDCLKCON   (1 << 0)
 

Functions

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

Macro Definition Documentation

#define __SND_SOC_S3C24XX_S3C_I2SV2_I2S_H   __FILE__

Definition at line 22 of file s3c-i2s-v2.h.

#define S3C_FEATURE_CDCLKCON   (1 << 0)

Definition at line 35 of file s3c-i2s-v2.h.

#define S3C_I2SV2_CLKSRC_AUDIOBUS   1

Definition at line 29 of file s3c-i2s-v2.h.

#define S3C_I2SV2_CLKSRC_CDCLK   2

Definition at line 30 of file s3c-i2s-v2.h.

#define S3C_I2SV2_CLKSRC_PCLK   0

Definition at line 28 of file s3c-i2s-v2.h.

#define S3C_I2SV2_DIV_BCLK   (1)

Definition at line 24 of file s3c-i2s-v2.h.

#define S3C_I2SV2_DIV_PRESCALER   (3)

Definition at line 26 of file s3c-i2s-v2.h.

#define S3C_I2SV2_DIV_RCLK   (2)

Definition at line 25 of file s3c-i2s-v2.h.

Function Documentation

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.