Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
atmel_ssc_dai.h File Reference
#include <linux/types.h>
#include <linux/atmel-ssc.h>
#include "atmel-pcm.h"

Go to the source code of this file.

Data Structures

struct  atmel_ssc_state
 
struct  atmel_ssc_info
 

Macros

#define ATMEL_SYSCLK_MCK   0 /* SSC uses AT91 MCK as system clock */
 
#define ATMEL_SSC_CMR_DIV   0 /* MCK divider for BCLK */
 
#define ATMEL_SSC_TCMR_PERIOD   1 /* BCLK divider for transmit FS */
 
#define ATMEL_SSC_RCMR_PERIOD   2 /* BCLK divider for receive FS */
 
#define SSC_DIR_MASK_UNUSED   0
 
#define SSC_DIR_MASK_PLAYBACK   1
 
#define SSC_DIR_MASK_CAPTURE   2
 
#define SSC_START_CONTINUOUS   0
 
#define SSC_START_TX_RX   1
 
#define SSC_START_LOW_RF   2
 
#define SSC_START_HIGH_RF   3
 
#define SSC_START_FALLING_RF   4
 
#define SSC_START_RISING_RF   5
 
#define SSC_START_LEVEL_RF   6
 
#define SSC_START_EDGE_RF   7
 
#define SSS_START_COMPARE_0   8
 
#define SSC_CKI_FALLING   0
 
#define SSC_CKI_RISING   1
 
#define SSC_CKO_NONE   0
 
#define SSC_CKO_CONTINUOUS   1
 
#define SSC_CKO_TRANSFER   2
 
#define SSC_CKS_DIV   0
 
#define SSC_CKS_CLOCK   1
 
#define SSC_CKS_PIN   2
 
#define SSC_FSEDGE_POSITIVE   0
 
#define SSC_FSEDGE_NEGATIVE   1
 
#define SSC_FSOS_NONE   0
 
#define SSC_FSOS_NEGATIVE   1
 
#define SSC_FSOS_POSITIVE   2
 
#define SSC_FSOS_LOW   3
 
#define SSC_FSOS_HIGH   4
 
#define SSC_FSOS_TOGGLE   5
 
#define START_DELAY   1
 

Functions

int atmel_ssc_set_audio (int ssc)
 

Macro Definition Documentation

#define ATMEL_SSC_CMR_DIV   0 /* MCK divider for BCLK */

Definition at line 42 of file atmel_ssc_dai.h.

#define ATMEL_SSC_RCMR_PERIOD   2 /* BCLK divider for receive FS */

Definition at line 44 of file atmel_ssc_dai.h.

#define ATMEL_SSC_TCMR_PERIOD   1 /* BCLK divider for transmit FS */

Definition at line 43 of file atmel_ssc_dai.h.

#define ATMEL_SYSCLK_MCK   0 /* SSC uses AT91 MCK as system clock */

Definition at line 39 of file atmel_ssc_dai.h.

#define SSC_CKI_FALLING   0

Definition at line 68 of file atmel_ssc_dai.h.

#define SSC_CKI_RISING   1

Definition at line 69 of file atmel_ssc_dai.h.

#define SSC_CKO_CONTINUOUS   1

Definition at line 73 of file atmel_ssc_dai.h.

#define SSC_CKO_NONE   0

Definition at line 72 of file atmel_ssc_dai.h.

#define SSC_CKO_TRANSFER   2

Definition at line 74 of file atmel_ssc_dai.h.

#define SSC_CKS_CLOCK   1

Definition at line 78 of file atmel_ssc_dai.h.

#define SSC_CKS_DIV   0

Definition at line 77 of file atmel_ssc_dai.h.

#define SSC_CKS_PIN   2

Definition at line 79 of file atmel_ssc_dai.h.

#define SSC_DIR_MASK_CAPTURE   2

Definition at line 50 of file atmel_ssc_dai.h.

#define SSC_DIR_MASK_PLAYBACK   1

Definition at line 49 of file atmel_ssc_dai.h.

#define SSC_DIR_MASK_UNUSED   0

Definition at line 48 of file atmel_ssc_dai.h.

#define SSC_FSEDGE_NEGATIVE   1

Definition at line 83 of file atmel_ssc_dai.h.

#define SSC_FSEDGE_POSITIVE   0

Definition at line 82 of file atmel_ssc_dai.h.

#define SSC_FSOS_HIGH   4

Definition at line 90 of file atmel_ssc_dai.h.

#define SSC_FSOS_LOW   3

Definition at line 89 of file atmel_ssc_dai.h.

#define SSC_FSOS_NEGATIVE   1

Definition at line 87 of file atmel_ssc_dai.h.

#define SSC_FSOS_NONE   0

Definition at line 86 of file atmel_ssc_dai.h.

#define SSC_FSOS_POSITIVE   2

Definition at line 88 of file atmel_ssc_dai.h.

#define SSC_FSOS_TOGGLE   5

Definition at line 91 of file atmel_ssc_dai.h.

#define SSC_START_CONTINUOUS   0

Definition at line 57 of file atmel_ssc_dai.h.

#define SSC_START_EDGE_RF   7

Definition at line 64 of file atmel_ssc_dai.h.

#define SSC_START_FALLING_RF   4

Definition at line 61 of file atmel_ssc_dai.h.

#define SSC_START_HIGH_RF   3

Definition at line 60 of file atmel_ssc_dai.h.

#define SSC_START_LEVEL_RF   6

Definition at line 63 of file atmel_ssc_dai.h.

#define SSC_START_LOW_RF   2

Definition at line 59 of file atmel_ssc_dai.h.

#define SSC_START_RISING_RF   5

Definition at line 62 of file atmel_ssc_dai.h.

#define SSC_START_TX_RX   1

Definition at line 58 of file atmel_ssc_dai.h.

#define SSS_START_COMPARE_0   8

Definition at line 65 of file atmel_ssc_dai.h.

#define START_DELAY   1

Definition at line 93 of file atmel_ssc_dai.h.

Function Documentation

int atmel_ssc_set_audio ( int  ssc_id)

atmel_ssc_set_audio - Allocate the specified SSC for audio use.

Definition at line 816 of file atmel_ssc_dai.c.