linux/drivers/mxc/asrc/mxc_asrc.c File Reference
MXC Asynchronous Sample Rate Converter.
More...
Detailed Description
MXC Asynchronous Sample Rate Converter.
Function Documentation
static void __exit asrc_exit |
( |
void |
|
) |
[static] |
Exit and free the asrc data
static __init int asrc_init |
( |
void |
|
) |
[static] |
static long asrc_ioctl |
( |
struct file * |
file, |
|
|
unsigned int |
cmd, |
|
|
unsigned long |
arg | |
|
) |
| | [static] |
asrc interface - function
- Parameters:
-
| inode | struct inode * |
| file | struct file * |
| cmd | unsigned int |
| arg | unsigned long |
- Returns:
- 0 success, ENODEV for invalid device instance, -1 for other errors.
static irqreturn_t asrc_isr |
( |
int |
irq, |
|
|
void * |
dev_id | |
|
) |
| | [static] |
static int mxc_asrc_close |
( |
struct inode * |
inode, |
|
|
struct file * |
file | |
|
) |
| | [static] |
asrc interface - close function
- Parameters:
-
| inode | struct inode * |
| file | structure file * |
- Returns:
- status 0 Success, EINTR busy lock error, ENOBUFS remap_page error
static int mxc_asrc_mmap |
( |
struct file * |
file, |
|
|
struct vm_area_struct * |
vma | |
|
) |
| | [static] |
asrc interface - mmap function
- Parameters:
-
| file | structure file * |
| vma | structure vm_area_struct * |
- Returns:
- status 0 Success, EINTR busy lock error, ENOBUFS remap_page error
static int mxc_asrc_open |
( |
struct inode * |
inode, |
|
|
struct file * |
file | |
|
) |
| | [static] |
asrc interface - open function
- Parameters:
-
| inode | structure inode * |
| file | structure file * |
- Returns:
- status 0 success, ENODEV invalid device instance, ENOBUFS failed to allocate buffer, ERESTARTSYS interrupted by user
static int mxc_asrc_probe |
( |
struct platform_device * |
pdev |
) |
[static] |
Entry point for the asrc device
- Parameters:
-
| pdev | Pionter to the registered platform device |
- Returns:
- Error code indicating success or failure
References asrc_isr().
static int mxc_asrc_remove |
( |
struct platform_device * |
pdev |
) |
[static] |
Exit asrc device
- Parameters:
-
| pdev | Pionter to the registered platform device |
- Returns:
- Error code indicating success or failure
Variable Documentation
Initial value:mxc asrc driver definition