Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
bf5xx-tdm-pcm.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/dma-mapping.h>
#include <linux/gfp.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>
#include <asm/dma.h>
#include "bf5xx-tdm-pcm.h"
#include "bf5xx-tdm.h"
#include "bf5xx-sport.h"

Go to the source code of this file.

Macros

#define PCM_BUFFER_MAX   0x8000
 
#define FRAGMENT_SIZE_MIN   (4*1024)
 
#define FRAGMENTS_MIN   2
 
#define FRAGMENTS_MAX   32
 

Functions

 module_platform_driver (bfin_tdm_driver)
 
 MODULE_AUTHOR ("Barry Song")
 
 MODULE_DESCRIPTION ("ADI Blackfin TDM PCM DMA module")
 
 MODULE_LICENSE ("GPL")
 

Variables

struct snd_pcm_ops bf5xx_pcm_tdm_ops
 

Macro Definition Documentation

#define FRAGMENT_SIZE_MIN   (4*1024)

Definition at line 47 of file bf5xx-tdm-pcm.c.

#define FRAGMENTS_MAX   32

Definition at line 49 of file bf5xx-tdm-pcm.c.

#define FRAGMENTS_MIN   2

Definition at line 48 of file bf5xx-tdm-pcm.c.

#define PCM_BUFFER_MAX   0x8000

Definition at line 46 of file bf5xx-tdm-pcm.c.

Function Documentation

MODULE_AUTHOR ( "Barry Song"  )
MODULE_DESCRIPTION ( "ADI Blackfin TDM PCM DMA module )
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( bfin_tdm_driver  )

Variable Documentation

struct snd_pcm_ops bf5xx_pcm_tdm_ops
Initial value:
= {
.open = bf5xx_pcm_open,
.hw_params = bf5xx_pcm_hw_params,
.hw_free = bf5xx_pcm_hw_free,
.prepare = bf5xx_pcm_prepare,
.trigger = bf5xx_pcm_trigger,
.pointer = bf5xx_pcm_pointer,
.copy = bf5xx_pcm_copy,
.silence = bf5xx_pcm_silence,
}

Definition at line 233 of file bf5xx-tdm-pcm.c.