Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
usbusx2yaudio.c File Reference
#include <linux/interrupt.h>
#include <linux/slab.h>
#include <linux/usb.h>
#include <linux/moduleparam.h>
#include <sound/core.h>
#include <sound/info.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include "usx2y.h"
#include "usbusx2y.h"

Go to the source code of this file.

Data Structures

struct  s_c2


#define nr_of_packs()   nrpacks
#define NOOF_SETRATE_URBS   ARRAY_SIZE(SetRate48000)


 module_param (nrpacks, int, 0444)
 MODULE_PARM_DESC (nrpacks,"Number of packets per URB.")
int usX2Y_audio_create (struct snd_card *card)

Macro Definition Documentation

#define NOOF_SETRATE_URBS   ARRAY_SIZE(SetRate48000)

Definition at line 647 of file usbusx2yaudio.c.

#define nr_of_packs ( )    nrpacks

Definition at line 50 of file usbusx2yaudio.c.

4 /* Default value used for nr of packs per urb.
1 to 4 have been tested ok on uhci.
To use 3 on ohci, you'd need a patch:
look for "0000425-linux-2.6.9-rc4-mm1_ohci-hcd.patch.gz" on
1, 2 and 4 work out of the box on ohci, if I recall correctly.
Bigger is safer operation,
smaller gives lower latencies.

Definition at line 45 of file usbusx2yaudio.c.

y /* If your system works ok with this module's parameter
nrpacks set to 1, you might as well comment
this #define out, and thereby produce smaller, faster code.
You'd also set USX2Y_NRPACKS to 1 then.

Definition at line 46 of file usbusx2yaudio.c.

Function Documentation

module_param ( nrpacks  ,
int  ,
MODULE_PARM_DESC ( nrpacks  ,
"Number of packets per URB."   
int usX2Y_audio_create ( struct snd_card card)

Definition at line 1001 of file usbusx2yaudio.c.