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

Go to the source code of this file.

Data Structures

struct  f_audio_buf
 
struct  f_audio
 

Macros

#define OUT_EP_MAX_PACKET_SIZE   200
 
#define F_AUDIO_AC_INTERFACE   0
 
#define F_AUDIO_AS_INTERFACE   1
 
#define F_AUDIO_NUM_INTERFACES   2
 
#define UAC_DT_AC_HEADER_LENGTH   UAC_DT_AC_HEADER_SIZE(F_AUDIO_NUM_INTERFACES)
 
#define UAC_DT_TOTAL_LENGTH
 
#define INPUT_TERMINAL_ID   1
 
#define FEATURE_UNIT_ID   2
 
#define OUTPUT_TERMINAL_ID   3
 

Functions

 module_param (req_buf_size, int, S_IRUGO)
 
 MODULE_PARM_DESC (req_buf_size,"ISO OUT endpoint request buffer size")
 
 module_param (req_count, int, S_IRUGO)
 
 MODULE_PARM_DESC (req_count,"ISO OUT endpoint request count")
 
 module_param (audio_buf_size, int, S_IRUGO)
 
 MODULE_PARM_DESC (audio_buf_size,"Audio buffer size")
 
 DECLARE_UAC_AC_HEADER_DESCRIPTOR (2)
 
 DECLARE_UAC_FEATURE_UNIT_DESCRIPTOR (0)
 
 DECLARE_UAC_FORMAT_TYPE_I_DISCRETE_DESC (1)
 
int __init control_selector_init (struct f_audio *audio)
 
int __init audio_bind_config (struct usb_configuration *c)
 

Macro Definition Documentation

#define F_AUDIO_AC_INTERFACE   0

Definition at line 44 of file f_uac1.c.

#define F_AUDIO_AS_INTERFACE   1

Definition at line 45 of file f_uac1.c.

#define F_AUDIO_NUM_INTERFACES   2

Definition at line 46 of file f_uac1.c.

#define FEATURE_UNIT_ID   2

Definition at line 90 of file f_uac1.c.

#define INPUT_TERMINAL_ID   1

Definition at line 77 of file f_uac1.c.

#define OUT_EP_MAX_PACKET_SIZE   200

Definition at line 19 of file f_uac1.c.

#define OUTPUT_TERMINAL_ID   3

Definition at line 127 of file f_uac1.c.

#define UAC_DT_AC_HEADER_LENGTH   UAC_DT_AC_HEADER_SIZE(F_AUDIO_NUM_INTERFACES)

Definition at line 59 of file f_uac1.c.

#define UAC_DT_TOTAL_LENGTH

Function Documentation

int __init audio_bind_config ( struct usb_configuration c)

audio_bind_config - add USB audio function to a configuration : the configuration to supcard the USB audio function Context: single threaded during gadget setup

Returns zero on success, else negative errno.

Definition at line 730 of file f_uac1.c.

int __init control_selector_init ( struct f_audio audio)

Definition at line 706 of file f_uac1.c.

DECLARE_UAC_AC_HEADER_DESCRIPTOR ( )
DECLARE_UAC_FEATURE_UNIT_DESCRIPTOR ( )
DECLARE_UAC_FORMAT_TYPE_I_DISCRETE_DESC ( )
module_param ( req_buf_size  ,
int  ,
S_IRUGO   
)
module_param ( req_count  ,
int  ,
S_IRUGO   
)
module_param ( audio_buf_size  ,
int  ,
S_IRUGO   
)
MODULE_PARM_DESC ( req_buf_size  ,
"ISO OUT endpoint request buffer size  
)
MODULE_PARM_DESC ( req_count  ,
"ISO OUT endpoint request count  
)
MODULE_PARM_DESC ( audio_buf_size  ,
"Audio buffer size  
)