Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
mmp-pcm.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/dma-mapping.h>
#include <linux/dmaengine.h>
#include <linux/platform_data/dma-mmp_tdma.h>
#include <linux/platform_data/mmp_audio.h>
#include <sound/pxa2xx-lib.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>
#include <sound/dmaengine_pcm.h>

Go to the source code of this file.

Data Structures

struct  mmp_dma_data
 

Macros

#define MMP_PCM_INFO
 
#define MMP_PCM_FORMATS
 

Functions

int mmp_pcm_new (struct snd_soc_pcm_runtime *rtd)
 
 module_platform_driver (mmp_pcm_driver)
 
 MODULE_AUTHOR ("Leo Yan <[email protected]>")
 
 MODULE_DESCRIPTION ("MMP Soc Audio DMA module")
 
 MODULE_LICENSE ("GPL")
 

Variables

struct snd_pcm_ops mmp_pcm_ops
 
struct snd_soc_platform_driver mmp_soc_platform
 

Macro Definition Documentation

#define MMP_PCM_FORMATS
Value:
SNDRV_PCM_FMTBIT_S24_LE | \
SNDRV_PCM_FMTBIT_S32_LE)

Definition at line 38 of file mmp-pcm.c.

#define MMP_PCM_INFO
Value:
SNDRV_PCM_INFO_MMAP_VALID | \
SNDRV_PCM_INFO_INTERLEAVED | \
SNDRV_PCM_INFO_PAUSE | \
SNDRV_PCM_INFO_RESUME)

Definition at line 32 of file mmp-pcm.c.

Function Documentation

int mmp_pcm_new ( struct snd_soc_pcm_runtime rtd)

Definition at line 233 of file mmp-pcm.c.

MODULE_AUTHOR ( "Leo Yan <[email protected]>"  )
MODULE_DESCRIPTION ( "MMP Soc Audio DMA module )
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( mmp_pcm_driver  )

Variable Documentation

struct snd_pcm_ops mmp_pcm_ops
Initial value:
= {
.open = mmp_pcm_open,
.close = mmp_pcm_close,
.hw_params = mmp_pcm_hw_params,
.mmap = mmp_pcm_mmap,
}

Definition at line 172 of file mmp-pcm.c.

struct snd_soc_platform_driver mmp_soc_platform
Initial value:
= {
.ops = &mmp_pcm_ops,
.pcm_new = mmp_pcm_new,
.pcm_free = mmp_pcm_free_dma_buffers,
}

Definition at line 254 of file mmp-pcm.c.