Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
siu_dai.c File Reference
#include <linux/delay.h>
#include <linux/firmware.h>
#include <linux/pm_runtime.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <asm/clock.h>
#include <asm/siu.h>
#include <sound/control.h>
#include <sound/soc.h>
#include "siu.h"

Go to the source code of this file.

Data Structures

struct  format_flag
 
struct  port_flag
 

Macros

#define SIU_MAX_VOLUME   0x7fff
 
#define PRAM_SIZE   0x2000
 
#define XRAM_SIZE   0x800
 
#define YRAM_SIZE   0x800
 
#define XRAM_OFFSET   0x4000
 
#define YRAM_OFFSET   0x6000
 
#define REG_OFFSET   0xc000
 
#define PLAYBACK_ENABLED   1
 
#define CAPTURE_ENABLED   2
 
#define VOLUME_CAPTURE   0
 
#define VOLUME_PLAYBACK   1
 
#define DFLT_VOLUME_LEVEL   0x08000800
 

Functions

int siu_init_port (int port, struct siu_port **port_info, struct snd_card *card)
 
void siu_free_port (struct siu_port *port_info)
 
 module_platform_driver (siu_driver)
 
 MODULE_AUTHOR ("Carlos Munoz <[email protected]>")
 
 MODULE_DESCRIPTION ("ALSA SoC SH7722 SIU driver")
 
 MODULE_LICENSE ("GPL")
 

Variables

struct siu_info * siu_i2s_data
 

Macro Definition Documentation

#define CAPTURE_ENABLED   2

Definition at line 52 of file siu_dai.c.

#define DFLT_VOLUME_LEVEL   0x08000800

Definition at line 56 of file siu_dai.c.

#define PLAYBACK_ENABLED   1

Definition at line 51 of file siu_dai.c.

#define PRAM_SIZE   0x2000

Definition at line 43 of file siu_dai.c.

#define REG_OFFSET   0xc000

Definition at line 49 of file siu_dai.c.

#define SIU_MAX_VOLUME   0x7fff

Definition at line 40 of file siu_dai.c.

#define VOLUME_CAPTURE   0

Definition at line 54 of file siu_dai.c.

#define VOLUME_PLAYBACK   1

Definition at line 55 of file siu_dai.c.

#define XRAM_OFFSET   0x4000

Definition at line 47 of file siu_dai.c.

#define XRAM_SIZE   0x800

Definition at line 44 of file siu_dai.c.

#define YRAM_OFFSET   0x6000

Definition at line 48 of file siu_dai.c.

#define YRAM_SIZE   0x800

Definition at line 45 of file siu_dai.c.

Function Documentation

MODULE_AUTHOR ( "Carlos Munoz <[email protected]>"  )
MODULE_DESCRIPTION ( "ALSA SoC SH7722 SIU driver )
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( siu_driver  )
void siu_free_port ( struct siu_port *  port_info)

Definition at line 502 of file siu_dai.c.

int siu_init_port ( int  port,
struct siu_port **  port_info,
struct snd_card card 
)

Definition at line 464 of file siu_dai.c.

Variable Documentation

struct siu_info* siu_i2s_data

Definition at line 75 of file siu_dai.c.