Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
mop500_ab8500.c File Reference
#include <linux/module.h>
#include <linux/device.h>
#include <linux/io.h>
#include <linux/clk.h>
#include <mach/hardware.h>
#include <sound/soc.h>
#include <sound/soc-dapm.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include "ux500_pcm.h"
#include "ux500_msp_dai.h"
#include "../codecs/ab8500-codec.h"

Go to the source code of this file.

Data Structures

struct  mop500_ab8500_drvdata
 

Macros

#define TX_SLOT_MONO   0x0008
 
#define TX_SLOT_STEREO   0x000a
 
#define RX_SLOT_MONO   0x0001
 
#define RX_SLOT_STEREO   0x0003
 
#define TX_SLOT_8CH   0x00FF
 
#define RX_SLOT_8CH   0x00FF
 
#define DEF_TX_SLOTS   TX_SLOT_STEREO
 
#define DEF_RX_SLOTS   RX_SLOT_MONO
 
#define DRIVERMODE_NORMAL   0
 
#define DRIVERMODE_CODEC_ONLY   1
 

Enumerations

enum  mclk { MCLK_SYSCLK, MCLK_ULPCLK }
 

Functions

int mop500_ab8500_startup (struct snd_pcm_substream *substream)
 
void mop500_ab8500_shutdown (struct snd_pcm_substream *substream)
 
int mop500_ab8500_hw_params (struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params)
 
int mop500_ab8500_machine_init (struct snd_soc_pcm_runtime *rtd)
 
void mop500_ab8500_remove (struct snd_soc_card *card)
 

Variables

struct snd_soc_ops mop500_ab8500_ops []
 

Macro Definition Documentation

#define DEF_RX_SLOTS   RX_SLOT_MONO

Definition at line 39 of file mop500_ab8500.c.

#define DEF_TX_SLOTS   TX_SLOT_STEREO

Definition at line 38 of file mop500_ab8500.c.

#define DRIVERMODE_CODEC_ONLY   1

Definition at line 42 of file mop500_ab8500.c.

#define DRIVERMODE_NORMAL   0

Definition at line 41 of file mop500_ab8500.c.

#define RX_SLOT_8CH   0x00FF

Definition at line 36 of file mop500_ab8500.c.

#define RX_SLOT_MONO   0x0001

Definition at line 33 of file mop500_ab8500.c.

#define RX_SLOT_STEREO   0x0003

Definition at line 34 of file mop500_ab8500.c.

#define TX_SLOT_8CH   0x00FF

Definition at line 35 of file mop500_ab8500.c.

#define TX_SLOT_MONO   0x0008

Definition at line 31 of file mop500_ab8500.c.

#define TX_SLOT_STEREO   0x000a

Definition at line 32 of file mop500_ab8500.c.

Enumeration Type Documentation

enum mclk
Enumerator:
MCLK_SYSCLK 
MCLK_ULPCLK 

Definition at line 53 of file mop500_ab8500.c.

Function Documentation

int mop500_ab8500_hw_params ( struct snd_pcm_substream substream,
struct snd_pcm_hw_params params 
)

Definition at line 221 of file mop500_ab8500.c.

int mop500_ab8500_machine_init ( struct snd_soc_pcm_runtime rtd)

Definition at line 351 of file mop500_ab8500.c.

void mop500_ab8500_remove ( struct snd_soc_card card)

Definition at line 419 of file mop500_ab8500.c.

void mop500_ab8500_shutdown ( struct snd_pcm_substream substream)

Definition at line 207 of file mop500_ab8500.c.

int mop500_ab8500_startup ( struct snd_pcm_substream substream)

Definition at line 198 of file mop500_ab8500.c.

Variable Documentation

struct snd_soc_ops mop500_ab8500_ops[]
Initial value:
= {
{
}
}

Definition at line 343 of file mop500_ab8500.c.