|
#define | CARD_NAME "NeoMagic 256AV/ZX" |
|
#define | DRIVER_NAME "NM256" |
|
#define | NM_SIGNATURE 0x4e4d0000 |
|
#define | NM_SIG_MASK 0xffff0000 |
|
#define | NM_PORT2_SIZE 4096 |
|
#define | NM_MIXER_OFFSET 0x600 |
|
#define | NM_MAX_PLAYBACK_COEF_SIZE 0x5000 |
|
#define | NM_MAX_RECORD_COEF_SIZE 0x1260 |
|
#define | NM_INT_REG 0xa04 |
|
#define | NM_PLAYBACK_INT 0x40 |
|
#define | NM_RECORD_INT 0x100 |
|
#define | NM_MISC_INT_1 0x4000 |
|
#define | NM_MISC_INT_2 0x1 |
|
#define | NM_ACK_INT(chip, X) snd_nm256_writew(chip, NM_INT_REG, (X) << 1) |
|
#define | NM_MIXER_STATUS_OFFSET 0xa04 |
|
#define | NM_MIXER_READY_MASK 0x0800 |
|
#define | NM_MIXER_PRESENCE 0xa06 |
|
#define | NM_PRESENCE_MASK 0x0050 |
|
#define | NM_PRESENCE_VALUE 0x0040 |
|
#define | NM2_PLAYBACK_INT 0x10000 |
|
#define | NM2_RECORD_INT 0x80000 |
|
#define | NM2_MISC_INT_1 0x8 |
|
#define | NM2_MISC_INT_2 0x2 |
|
#define | NM2_ACK_INT(chip, X) snd_nm256_writel(chip, NM_INT_REG, (X)) |
|
#define | NM2_MIXER_STATUS_OFFSET 0xa06 |
|
#define | NM2_MIXER_READY_MASK 0x0800 |
|
#define | NM_PLAYBACK_REG_OFFSET 0x0 |
|
#define | NM_RECORD_REG_OFFSET 0x200 |
|
#define | NM_RATE_REG_OFFSET 2 |
|
#define | NM_RATE_STEREO 1 |
|
#define | NM_RATE_BITS_16 2 |
|
#define | NM_RATE_MASK 0xf0 |
|
#define | NM_PLAYBACK_ENABLE_REG (NM_PLAYBACK_REG_OFFSET + 0x1) |
|
#define | NM_PLAYBACK_ENABLE_FLAG 1 |
|
#define | NM_PLAYBACK_ONESHOT 2 |
|
#define | NM_PLAYBACK_FREERUN 4 |
|
#define | NM_AUDIO_MUTE_REG (NM_PLAYBACK_REG_OFFSET + 0x18) |
|
#define | NM_AUDIO_MUTE_LEFT 0x8000 |
|
#define | NM_AUDIO_MUTE_RIGHT 0x0080 |
|
#define | NM_RECORD_ENABLE_REG (NM_RECORD_REG_OFFSET + 0) |
|
#define | NM_RECORD_ENABLE_FLAG 1 |
|
#define | NM_RECORD_FREERUN 2 |
|
#define | NM_COEFF_START_OFFSET 0x1c |
|
#define | NM_COEFF_END_OFFSET 0x20 |
|
#define | NM_RBUFFER_START (NM_RECORD_REG_OFFSET + 0x4) |
|
#define | NM_RBUFFER_END (NM_RECORD_REG_OFFSET + 0x10) |
|
#define | NM_RBUFFER_WMARK (NM_RECORD_REG_OFFSET + 0xc) |
|
#define | NM_RBUFFER_CURRP (NM_RECORD_REG_OFFSET + 0x8) |
|
#define | NM_PBUFFER_START (NM_PLAYBACK_REG_OFFSET + 0x4) |
|
#define | NM_PBUFFER_END (NM_PLAYBACK_REG_OFFSET + 0x14) |
|
#define | NM_PBUFFER_WMARK (NM_PLAYBACK_REG_OFFSET + 0xc) |
|
#define | NM_PBUFFER_CURRP (NM_PLAYBACK_REG_OFFSET + 0x8) |
|
#define | snd_nm256_playback_mark(chip, s) snd_nm256_pcm_mark(chip, s, NM_PBUFFER_WMARK) |
|
#define | snd_nm256_capture_mark(chip, s) snd_nm256_pcm_mark(chip, s, NM_RBUFFER_WMARK) |
|
#define | NM256_PM_OPS NULL |
|
|
| MODULE_AUTHOR ("Takashi Iwai <[email protected]>") |
|
| MODULE_DESCRIPTION ("NeoMagic NM256AV/ZX") |
|
| MODULE_LICENSE ("GPL") |
|
| MODULE_SUPPORTED_DEVICE ("{{NeoMagic,NM256AV},""{NeoMagic,NM256ZX}}") |
|
| module_param (index, int, 0444) |
|
| MODULE_PARM_DESC (index,"Index value for "CARD_NAME" soundcard.") |
|
| module_param (id, charp, 0444) |
|
| MODULE_PARM_DESC (id,"ID string for "CARD_NAME" soundcard.") |
|
| module_param (playback_bufsize, int, 0444) |
|
| MODULE_PARM_DESC (playback_bufsize,"DAC frame size in kB for "CARD_NAME" soundcard.") |
|
| module_param (capture_bufsize, int, 0444) |
|
| MODULE_PARM_DESC (capture_bufsize,"ADC frame size in kB for "CARD_NAME" soundcard.") |
|
| module_param (force_ac97, bool, 0444) |
|
| MODULE_PARM_DESC (force_ac97,"Force to use AC97 codec for "CARD_NAME" soundcard.") |
|
| module_param (buffer_top, int, 0444) |
|
| MODULE_PARM_DESC (buffer_top,"Set the top address of audio buffer for "CARD_NAME" soundcard.") |
|
| module_param (use_cache, bool, 0444) |
|
| MODULE_PARM_DESC (use_cache,"Enable the cache for coefficient table access.") |
|
| module_param (vaio_hack, bool, 0444) |
|
| MODULE_PARM_DESC (vaio_hack,"Enable workaround for Sony VAIO notebooks.") |
|
| module_param (reset_workaround, bool, 0444) |
|
| MODULE_PARM_DESC (reset_workaround,"Enable AC97 RESET workaround for some laptops.") |
|
| module_param (reset_workaround_2, bool, 0444) |
|
| MODULE_PARM_DESC (reset_workaround_2,"Enable extended AC97 RESET workaround for some other laptops.") |
|
| module_param (enable, bool, 0444) |
|
| MODULE_DEVICE_TABLE (pci, snd_nm256_ids) |
|
| module_pci_driver (nm256_driver) |
|