#include <linux/module.h>
#include <linux/init.h>
#include <linux/device.h>
#include <linux/interrupt.h>
#include <linux/vmalloc.h>
#include <linux/dma-mapping.h>
#include <linux/pci.h>
#include <linux/slab.h>
#include <linux/delay.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/control.h>
#include <sound/initval.h>
#include <sound/tlv.h>
#include "cx25821.h"
#include "cx25821-reg.h"
Go to the source code of this file.
|
| module_param_array (enable, bool, NULL, 0444) |
|
| MODULE_PARM_DESC (enable,"Enable cx25821 soundcard. default enabled.") |
|
| module_param_array (index, int, NULL, 0444) |
|
| MODULE_PARM_DESC (index,"Index value for cx25821 capture interface(s).") |
|
| MODULE_DESCRIPTION ("ALSA driver module for cx25821 based capture cards") |
|
| MODULE_AUTHOR ("Hiep Huynh") |
|
| MODULE_LICENSE ("GPL") |
|
| MODULE_SUPPORTED_DEVICE ("{{Conexant,25821}") |
|
| module_param (debug, int, 0644) |
|
| MODULE_PARM_DESC (debug,"enable debug messages") |
|
| MODULE_DEVICE_TABLE (pci, cx25821_audio_pci_tbl) |
|
| late_initcall (cx25821_alsa_init) |
|
| module_exit (cx25821_audio_fini) |
|
#define AUD_INT_BER_IRQ (1 << 20) |
#define AUD_INT_DN_RISCI1 (1 << 0) |
#define AUD_INT_DN_RISCI2 (1 << 4) /* yes, 3 is skipped */ |
#define AUD_INT_DN_SYNC (1 << 12) |
#define AUD_INT_MCHG_IRQ (1 << 21) |
#define AUD_INT_OPC_ERR (1 << 16) |
#define AUD_INT_RDS_DN_RISCI1 (1 << 2) |
#define AUD_INT_RDS_DN_RISCI2 (1 << 6) |
#define AUD_INT_RDS_DN_SYNC (1 << 14) |
#define AUD_INT_UP_RISCI1 (1 << 1) |
#define AUD_INT_UP_RISCI2 (1 << 5) |
#define AUD_INT_UP_SYNC (1 << 13) |
#define DEFAULT_FIFO_SIZE 384 |
#define dprintk_core |
( |
|
level, |
|
|
|
fmt, |
|
|
|
arg... |
|
) |
| |
#define GP_COUNT_CONTROL_RESET 0x3 |
#define PCI_MSK_AUD_EXT (1 << 4) |
#define PCI_MSK_AUD_INT (1 << 3) |
#define pr_fmt |
( |
|
fmt | ) |
KBUILD_MODNAME ": " fmt |
late_initcall |
( |
cx25821_alsa_init |
| ) |
|
MODULE_AUTHOR |
( |
"Hiep Huynh" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
pci |
, |
|
|
cx25821_audio_pci_tbl |
|
|
) |
| |
module_exit |
( |
cx25821_audio_fini |
| ) |
|
MODULE_PARM_DESC |
( |
enable |
, |
|
|
"Enable cx25821 soundcard. default enabled." |
|
|
) |
| |
MODULE_PARM_DESC |
( |
debug |
, |
|
|
"enable debug messages" |
|
|
) |
| |
MODULE_SUPPORTED_DEVICE |
( |
| ) |
|