Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
audio.c File Reference
#include <linux/spinlock.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/usb.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include "device.h"
#include "audio.h"

Go to the source code of this file.

Macros

#define N_URBS   32
 
#define CLOCK_DRIFT_TOLERANCE   5
 
#define FRAMES_PER_URB   8
 
#define BYTES_PER_FRAME   512
 
#define CHANNELS_PER_STREAM   2
 
#define BYTES_PER_SAMPLE   3
 
#define BYTES_PER_SAMPLE_USB   4
 
#define MAX_BUFFER_SIZE   (128*1024)
 
#define MAX_ENDPOINT_SIZE   512
 
#define ENDPOINT_CAPTURE   2
 
#define ENDPOINT_PLAYBACK   6
 
#define MAKE_CHECKBYTE(dev, stream, i)   (stream << 1) | (~(i / (dev->n_streams * BYTES_PER_SAMPLE_USB)) & 1)
 

Functions

int snd_usb_caiaq_audio_init (struct snd_usb_caiaqdev *dev)
 
void snd_usb_caiaq_audio_free (struct snd_usb_caiaqdev *dev)
 

Macro Definition Documentation

#define BYTES_PER_FRAME   512

Definition at line 32 of file audio.c.

#define BYTES_PER_SAMPLE   3

Definition at line 34 of file audio.c.

#define BYTES_PER_SAMPLE_USB   4

Definition at line 35 of file audio.c.

#define CHANNELS_PER_STREAM   2

Definition at line 33 of file audio.c.

#define CLOCK_DRIFT_TOLERANCE   5

Definition at line 30 of file audio.c.

#define ENDPOINT_CAPTURE   2

Definition at line 39 of file audio.c.

#define ENDPOINT_PLAYBACK   6

Definition at line 40 of file audio.c.

#define FRAMES_PER_URB   8

Definition at line 31 of file audio.c.

#define MAKE_CHECKBYTE (   dev,
  stream,
  i 
)    (stream << 1) | (~(i / (dev->n_streams * BYTES_PER_SAMPLE_USB)) & 1)

Definition at line 42 of file audio.c.

#define MAX_BUFFER_SIZE   (128*1024)

Definition at line 36 of file audio.c.

#define MAX_ENDPOINT_SIZE   512

Definition at line 37 of file audio.c.

#define N_URBS   32

Definition at line 29 of file audio.c.

Function Documentation

void snd_usb_caiaq_audio_free ( struct snd_usb_caiaqdev dev)

Definition at line 881 of file audio.c.

int snd_usb_caiaq_audio_init ( struct snd_usb_caiaqdev dev)

Definition at line 783 of file audio.c.