Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
u_uac1.c File Reference
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/device.h>
#include <linux/delay.h>
#include <linux/ctype.h>
#include <linux/random.h>
#include <linux/syscalls.h>
#include "u_uac1.h"

Go to the source code of this file.


#define FILE_PCM_PLAYBACK   "/dev/snd/pcmC0D0p"
#define FILE_PCM_CAPTURE   "/dev/snd/pcmC0D0c"
#define FILE_CONTROL   "/dev/snd/controlC0"


 module_param (fn_play, charp, S_IRUGO)
 MODULE_PARM_DESC (fn_play,"Playback PCM device file name")
 module_param (fn_cap, charp, S_IRUGO)
 MODULE_PARM_DESC (fn_cap,"Capture PCM device file name")
 module_param (fn_cntl, charp, S_IRUGO)
 MODULE_PARM_DESC (fn_cntl,"Control device file name")
int __init gaudio_setup (struct gaudio *card)
void gaudio_cleanup (void)

Macro Definition Documentation

#define FILE_CONTROL   "/dev/snd/controlC0"

Definition at line 28 of file u_uac1.c.

#define FILE_PCM_CAPTURE   "/dev/snd/pcmC0D0c"

Definition at line 27 of file u_uac1.c.

#define FILE_PCM_PLAYBACK   "/dev/snd/pcmC0D0p"

Definition at line 26 of file u_uac1.c.

Function Documentation

void gaudio_cleanup ( void  )

gaudio_cleanup - remove ALSA device interface

This is called to free all resources allocated by ().

Definition at line 320 of file u_uac1.c.

int __init gaudio_setup ( struct gaudio card)

gaudio_setup - setup ALSA interface and preparing for USB transfer

This sets up PCM, mixer or MIDI ALSA devices fore USB gadget using.

Returns negative errno, or zero on success

Definition at line 301 of file u_uac1.c.

module_param ( fn_play  ,
charp  ,
module_param ( fn_cap  ,
charp  ,
module_param ( fn_cntl  ,
charp  ,
MODULE_PARM_DESC ( fn_play  ,
"Playback PCM device file name  
MODULE_PARM_DESC ( fn_cap  ,
"Capture PCM device file name  
MODULE_PARM_DESC ( fn_cntl  ,
"Control device file name