Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
psc-i2s.c File Reference
#include <linux/init.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/suspend.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/initval.h>
#include <sound/soc.h>
#include <asm/mach-au1x00/au1000.h>
#include <asm/mach-au1x00/au1xxx_psc.h>
#include "psc.h"

Go to the source code of this file.

Macros

#define AU1XPSC_I2S_DAIFMT
 
#define AU1XPSC_I2S_DIR   (SND_SOC_DAIDIR_PLAYBACK | SND_SOC_DAIDIR_CAPTURE)
 
#define AU1XPSC_I2S_RATES   SNDRV_PCM_RATE_8000_192000
 
#define AU1XPSC_I2S_FMTS   (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE)
 
#define I2SSTAT_BUSY(stype)   ((stype) == SNDRV_PCM_STREAM_PLAYBACK ? PSC_I2SSTAT_TB : PSC_I2SSTAT_RB)
 
#define I2SPCR_START(stype)   ((stype) == SNDRV_PCM_STREAM_PLAYBACK ? PSC_I2SPCR_TS : PSC_I2SPCR_RS)
 
#define I2SPCR_STOP(stype)   ((stype) == SNDRV_PCM_STREAM_PLAYBACK ? PSC_I2SPCR_TP : PSC_I2SPCR_RP)
 
#define I2SPCR_CLRFIFO(stype)   ((stype) == SNDRV_PCM_STREAM_PLAYBACK ? PSC_I2SPCR_TC : PSC_I2SPCR_RC)
 
#define AU1XPSCI2S_PMOPS   NULL
 

Functions

 module_platform_driver (au1xpsc_i2s_driver)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DESCRIPTION ("Au12x0/Au1550 PSC I2S ALSA ASoC audio driver")
 
 MODULE_AUTHOR ("Manuel Lauss")
 

Macro Definition Documentation

#define AU1XPSC_I2S_DAIFMT
Value:
SND_SOC_DAIFMT_NB_NF)

Definition at line 30 of file psc-i2s.c.

#define AU1XPSC_I2S_DIR   (SND_SOC_DAIDIR_PLAYBACK | SND_SOC_DAIDIR_CAPTURE)

Definition at line 35 of file psc-i2s.c.

#define AU1XPSC_I2S_FMTS   (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE)

Definition at line 41 of file psc-i2s.c.

#define AU1XPSC_I2S_RATES   SNDRV_PCM_RATE_8000_192000

Definition at line 38 of file psc-i2s.c.

#define AU1XPSCI2S_PMOPS   NULL

Definition at line 410 of file psc-i2s.c.

#define I2SPCR_CLRFIFO (   stype)    ((stype) == SNDRV_PCM_STREAM_PLAYBACK ? PSC_I2SPCR_TC : PSC_I2SPCR_RC)

Definition at line 50 of file psc-i2s.c.

#define I2SPCR_START (   stype)    ((stype) == SNDRV_PCM_STREAM_PLAYBACK ? PSC_I2SPCR_TS : PSC_I2SPCR_RS)

Definition at line 46 of file psc-i2s.c.

#define I2SPCR_STOP (   stype)    ((stype) == SNDRV_PCM_STREAM_PLAYBACK ? PSC_I2SPCR_TP : PSC_I2SPCR_RP)

Definition at line 48 of file psc-i2s.c.

#define I2SSTAT_BUSY (   stype)    ((stype) == SNDRV_PCM_STREAM_PLAYBACK ? PSC_I2SSTAT_TB : PSC_I2SSTAT_RB)

Definition at line 44 of file psc-i2s.c.

Function Documentation

MODULE_AUTHOR ( "Manuel Lauss"  )
MODULE_DESCRIPTION ( "Au12x0/Au1550 PSC I2S ALSA ASoC audio driver )
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( au1xpsc_i2s_driver  )