Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
snd_line6_pcm Struct Reference

#include <pcm.h>

Data Fields

struct usb_line6line6
 
struct line6_pcm_propertiesproperties
 
struct snd_pcmpcm
 
struct urburb_audio_out [LINE6_ISO_BUFFERS]
 
struct urburb_audio_in [LINE6_ISO_BUFFERS]
 
unsigned charbuffer_out
 
unsigned charbuffer_in
 
unsigned charprev_fbuf
 
int prev_fsize
 
snd_pcm_uframes_t pos_out
 
unsigned bytes_out
 
unsigned count_out
 
unsigned period_out
 
snd_pcm_uframes_t pos_out_done
 
unsigned bytes_in
 
unsigned count_in
 
unsigned period_in
 
snd_pcm_uframes_t pos_in_done
 
unsigned long active_urb_out
 
int max_packet_size
 
int ep_audio_read
 
int ep_audio_write
 
unsigned long active_urb_in
 
unsigned long unlink_urb_out
 
unsigned long unlink_urb_in
 
spinlock_t lock_audio_out
 
spinlock_t lock_audio_in
 
spinlock_t lock_trigger
 
int volume_playback [2]
 
int volume_monitor
 
unsigned long flags
 
int last_frame_in
 
int last_frame_out
 

Detailed Description

Definition at line 182 of file pcm.h.

Field Documentation

unsigned long active_urb_in

Bit mask of active capture URBs.

Definition at line 310 of file pcm.h.

unsigned long active_urb_out

Bit mask of active playback URBs.

Definition at line 290 of file pcm.h.

unsigned char* buffer_in

Temporary buffer for capture. Since the packet size is not known in advance, this buffer is large enough to store maximum size packets.

Definition at line 220 of file pcm.h.

unsigned char* buffer_out

Temporary buffer for playback. Since the packet size is not known in advance, this buffer is large enough to store maximum size packets.

Definition at line 213 of file pcm.h.

unsigned bytes_in

Count processed bytes for capture. This is modulo period size (to determine when a period is finished).

Definition at line 267 of file pcm.h.

unsigned bytes_out

Count processed bytes for playback. This is modulo period size (to determine when a period is finished).

Definition at line 242 of file pcm.h.

unsigned count_in

Counter to create desired capture sample rate.

Definition at line 272 of file pcm.h.

unsigned count_out

Counter to create desired playback sample rate.

Definition at line 247 of file pcm.h.

int ep_audio_read

USB endpoint for listening to audio data.

Definition at line 300 of file pcm.h.

int ep_audio_write

USB endpoint for writing audio data.

Definition at line 305 of file pcm.h.

unsigned long flags

Several status bits (see LINE6_BIT_*).

Definition at line 369 of file pcm.h.

int last_frame_in

Definition at line 371 of file pcm.h.

int last_frame_out

Definition at line 371 of file pcm.h.

struct usb_line6* line6

Pointer back to the Line6 driver data structure.

Definition at line 186 of file pcm.h.

spinlock_t lock_audio_in

Spin lock to protect updates of the capture buffer positions (not contents!)

Definition at line 332 of file pcm.h.

spinlock_t lock_audio_out

Spin lock to protect updates of the playback buffer positions (not contents!)

Definition at line 326 of file pcm.h.

spinlock_t lock_trigger

Spin lock to protect trigger.

Definition at line 337 of file pcm.h.

int max_packet_size

Maximum size of USB packet.

Definition at line 295 of file pcm.h.

ALSA pcm stream

Definition at line 196 of file pcm.h.

unsigned period_in

Capture period size in bytes

Definition at line 277 of file pcm.h.

unsigned period_out

Playback period size in bytes

Definition at line 252 of file pcm.h.

snd_pcm_uframes_t pos_in_done

Processed frame position in the capture buffer. The contents of the output ring buffer have been consumed by the USB subsystem (i.e., sent to the USB device) up to this position.

Definition at line 285 of file pcm.h.

Free frame position in the playback buffer.

Definition at line 235 of file pcm.h.

snd_pcm_uframes_t pos_out_done

Processed frame position in the playback buffer. The contents of the output ring buffer have been consumed by the USB subsystem (i.e., sent to the USB device) up to this position.

Definition at line 260 of file pcm.h.

unsigned char* prev_fbuf

Previously captured frame (for software monitoring).

Definition at line 225 of file pcm.h.

int prev_fsize

Size of previously captured frame (for software monitoring).

Definition at line 230 of file pcm.h.

Properties.

Definition at line 191 of file pcm.h.

unsigned long unlink_urb_in

Bit mask of capture URBs currently being unlinked.

Definition at line 320 of file pcm.h.

unsigned long unlink_urb_out

Bit mask of playback URBs currently being unlinked.

Definition at line 315 of file pcm.h.

struct urb* urb_audio_in[LINE6_ISO_BUFFERS]

URBs for audio capture.

Definition at line 206 of file pcm.h.

struct urb* urb_audio_out[LINE6_ISO_BUFFERS]

URBs for audio playback.

Definition at line 201 of file pcm.h.

int volume_monitor

PCM monitor volume.

Definition at line 347 of file pcm.h.

int volume_playback[2]

PCM playback volume (left and right).

Definition at line 342 of file pcm.h.


The documentation for this struct was generated from the following file: