#include <asm/io.h>
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/init.h>
#include <linux/pci.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/dma-mapping.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/info.h>
#include <sound/ac97_codec.h>
#include <sound/mpu401.h>
#include <sound/initval.h>
Go to the source code of this file.
|
| MODULE_AUTHOR ("Matt Wu <[email protected]>") |
|
| MODULE_DESCRIPTION ("ALI M5451") |
|
| MODULE_LICENSE ("GPL") |
|
| MODULE_SUPPORTED_DEVICE ("{{ALI,M5451,pci},{ALI,M5451}}") |
|
| module_param (index, int, 0444) |
|
| MODULE_PARM_DESC (index,"Index value for ALI M5451 PCI Audio.") |
|
| module_param (id, charp, 0444) |
|
| MODULE_PARM_DESC (id,"ID string for ALI M5451 PCI Audio.") |
|
| module_param (pcm_channels, int, 0444) |
|
| MODULE_PARM_DESC (pcm_channels,"PCM Channels") |
|
| module_param (spdif, bool, 0444) |
|
| MODULE_PARM_DESC (spdif,"Support SPDIF I/O") |
|
| module_param (enable, bool, 0444) |
|
| MODULE_DEVICE_TABLE (pci, snd_ali_ids) |
|
| module_pci_driver (ali5451_driver) |
|
#define ADDRESS_IRQ 0x00000020 |
#define ALI5451_SPDIF |
( |
|
xname, |
|
|
|
xindex, |
|
|
|
value |
|
) |
| |
Value:
.put = snd_ali5451_spdif_put, .private_value =
value}
Definition at line 1742 of file ali5451.c.
#define ALI_5451_V02 0x02 |
#define ALI_AC97_GPIO 0x4c |
#define ALI_AC97_GPIO_DATA_SHIFT 16 |
#define ALI_AC97_GPIO_ENABLE 0x8000 |
#define ALI_AC97_READ 0x44 |
#define ALI_AC97_WRITE 0x40 |
#define ALI_CENTER_CHANNEL 24 |
#define ALI_CHANNEL_REGS 8 |
#define ALI_CSO_ALPHA_FMS 0xe0 |
#define ALI_ESO_DELTA 0xe8 |
#define ALI_GLOBAL_CONTROL 0xd4 |
#define ALI_GLOBAL_REGS 56 |
#define ALI_GVSEL_PAN_VOC_CTRL_EC 0xf0 |
#define ALI_LEF_CHANNEL 23 |
#define ALI_LEGACY_DMAR0 0x00 /* ADR0 */ |
#define ALI_LEGACY_DMAR11 0x0b /* MOD */ |
#define ALI_LEGACY_DMAR15 0x0f /* MMR */ |
#define ALI_LEGACY_DMAR4 0x04 /* CNT0 */ |
#define ALI_MODEM_IN_CHANNEL 21 |
#define ALI_MODEM_OUT_CHANNEL 20 |
#define ALI_PCM_IN_CHANNEL 31 |
#define ALI_PCM_IN_ENABLE 0x80000000 /* bit 31 */ |
#define ALI_SBBL_SBCL 0xc0 |
#define ALI_SBCTRL_SBE2R_SBDD 0xc4 |
#define ALI_SBDELTA_DELTA_R 0xac |
#define ALI_SCTRL_CODEC1_READY (1 << 24) |
#define ALI_SCTRL_CODEC2_READY (1 << 25) |
#define ALI_SCTRL_GPIO_IN2 (1 << 13) |
#define ALI_SCTRL_GPIO_OUT_EN (1 << 23) |
#define ALI_SCTRL_LINE_IN2 (1 << 9) |
#define ALI_SCTRL_LINE_OUT_EN (1 << 20) |
#define ALI_SPDIF_CS 0x70 |
#define ALI_SPDIF_CTRL 0x74 |
#define ALI_SPDIF_IN_CH_ENABLE 0x00080000 /* bit 19 */ |
#define ALI_SPDIF_IN_CH_STATUS 0x40 |
#define ALI_SPDIF_IN_CHANNEL 19 |
#define ALI_SPDIF_IN_FUNC_ENABLE 0x02 |
#define ALI_SPDIF_IN_SUPPORT 0x00000800 /* bit 11 */ |
#define ALI_SPDIF_OUT_CH_ENABLE 0x00008000 /* bit 15 */ |
#define ALI_SPDIF_OUT_CH_STATUS 0xbf |
#define ALI_SPDIF_OUT_CHANNEL 15 |
#define ALI_SPDIF_OUT_ENABLE 0x20 |
#define ALI_SPDIF_OUT_SEL_PCM 0x00000400 /* bit 10 */ |
#define ALI_SURR_LEFT_CHANNEL 26 |
#define ALI_SURR_RIGHT_CHANNEL 25 |
#define ENDLP_IE 0x00001000 |
#define GPIO_IRQ 0x01000000 |
#define MIDLP_IE 0x00002000 |
#define MIXER_OVERFLOW 0x00000800 |
#define MIXER_UNDERFLOW 0x00000400 |
#define snd_ali_printk |
( |
|
format, |
|
|
|
args... |
|
) |
| |
#define SNDRV_ALI_VOICE_TYPE_OTH 02 |
#define SNDRV_ALI_VOICE_TYPE_PCM 01 |
#define TARGET_REACHED 0x00008000 |
MODULE_DESCRIPTION |
( |
"ALI M5451" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
pci |
, |
|
|
snd_ali_ids |
|
|
) |
| |
module_param |
( |
id |
, |
|
|
charp |
, |
|
|
0444 |
|
|
) |
| |
module_param |
( |
pcm_channels |
, |
|
|
int |
, |
|
|
0444 |
|
|
) |
| |
MODULE_PARM_DESC |
( |
pcm_channels |
, |
|
|
"PCM Channels" |
|
|
) |
| |
module_pci_driver |
( |
ali5451_driver |
| ) |
|
MODULE_SUPPORTED_DEVICE |
( |
"{{ALI,M5451,pci},{ALI,M5451}}" |
| ) |
|