Advanced Linux Sound Architecture - Driver
==========================================
Configuration guide
Kernel Configuration
====================
To enable ALSA support you need at least to build the kernel with
primary sound card support (CONFIG_SOUND). Since ALSA can emulate OSS,
you don't have to choose any of the OSS modules.
Enable "OSS API emulation" (CONFIG_SND_OSSEMUL) and both OSS mixer and
PCM supports if you want to run OSS applications with ALSA.
If you want to support the WaveTable functionality on cards such as
SB Live! then you need to enable "Sequencer support"
(CONFIG_SND_SEQUENCER).
To make ALSA debug messages more verbose, enable the "Verbose printk"
and "Debug" options. To check for memory leaks, turn on "Debug memory"
too. "Debug detection" will add checks for the detection of cards.
Please note that all the ALSA ISA drivers support the Linux isapnp API
(if the card supports ISA PnP). You don't need to configure the cards
using isapnptools.
Creating ALSA devices
=====================
This depends on your distribution, but normally you use the /dev/MAKEDEV
script to create the necessary device nodes. On some systems you use a
script named 'snddevices'.
Module parameters
=================
The user can load modules with options. If the module supports more than
one card and you have more than one card of the same type then you can
specify multiple values for the option separated by commas.
Prior to version 0.9.0rc4 options had a 'snd_' prefix. This was removed.
Module snd
----------
The core ALSA module. It is used by all ALSA card drivers.
It takes the following options which have global effects.
major - major number for sound driver
- Default: 116
cards_limit
- limiting card index for auto-loading (1-8)
- Default: 1
- For auto-loading more than one card, specify this
option together with snd-card-X aliases.
Module snd-pcm-oss
------------------
The PCM OSS emulation module.
This module takes options which change the mapping of devices.
dsp_map - PCM device number maps assigned to the 1st OSS device.
- Default: 0
adsp_map - PCM device number maps assigned to the 2st OSS device.
- Default: 1
nonblock_open
- Don't block opening busy PCM devices. Default: 1
For example, when dsp_map=2, /dev/dsp will be mapped to PCM #2 of
the card #0. Similarly, when adsp_map=0, /dev/adsp will be mapped
to PCM #0 of the card #0.
For changing the second or later card, specify the option with
commas, such like "dsp_map=0,1".
nonblock_open option is used to change the behavior of the PCM
regarding opening the device. When this option is non-zero,
opening a busy OSS PCM device won't be blocked but return
immediately with EAGAIN (just like O_NONBLOCK flag).
Module snd-rawmidi
------------------
This module takes options which change the mapping of devices.
similar to those of the snd-pcm-oss module.
midi_map - MIDI device number maps assigned to the 1st OSS device.
- Default: 0
amidi_map - MIDI device number maps assigned to the 2st OSS device.
- Default: 1
Common parameters for top sound card modules
--------------------------------------------
Each of top level sound card module takes the following options.
index - index (slot #) of sound card
- Values: 0 through 31 or negative
- If nonnegative, assign that index number
- if negative, interpret as a bitmask of permissible
indices; the first free permitted index is assigned
- Default: -1
id - card ID (identifier or name)
- Can be up to 15 characters long
- Default: the card type
- A directory by this name is created under /proc/asound/
containing information about the card
- This ID can be used instead of the index number in
identifying the card
enable - enable card
- Default: enabled, for PCI and ISA PnP cards
Module snd-adlib
----------------
Module for AdLib FM cards.
port - port # for OPL chip
This module supports multiple cards. It does not support autoprobe, so
the port must be specified. For actual AdLib FM cards it will be 0x388.
Note that this card does not have PCM support and no mixer; only FM
synthesis.
Make sure you have "sbiload" from the alsa-tools package available and,
after loading the module, find out the assigned ALSA sequencer port
number through "sbiload -l". Example output:
Port Client name Port name
64:0 OPL2 FM synth OPL2 FM Port
Load the std.sb and drums.sb patches also supplied by sbiload:
sbiload -p 64:0 std.sb drums.sb
If you use this driver to drive an OPL3, you can use std.o3 and drums.o3
instead. To have the card produce sound, use aplaymidi from alsa-utils:
aplaymidi -p 64:0 foo.mid
Module snd-ad1816a
------------------
Module for sound cards based on Analog Devices AD1816A/AD1815 ISA chips.
port - port # for AD1816A chip (PnP setup)
mpu_port - port # for MPU-401 UART (PnP setup)
fm_port - port # for OPL3 (PnP setup)
irq - IRQ # for AD1816A chip (PnP setup)
mpu_irq - IRQ # for MPU-401 UART (PnP setup)
dma1 - first DMA # for AD1816A chip (PnP setup)
dma2 - second DMA # for AD1816A chip (PnP setup)
clockfreq - Clock frequency for AD1816A chip (default = 0, 33000Hz)
This module supports multiple cards, autoprobe and PnP.
Module snd-ad1848
-----------------
Module for sound cards based on AD1848/AD1847/CS4248 ISA chips.
port - port # for AD1848 chip
irq - IRQ # for AD1848 chip
dma1 - DMA # for AD1848 chip (0,1,3)
This module supports multiple cards. It does not support autoprobe
thus main port must be specified!!! Other ports are optional.
The power-management is supported.
Module snd-ad1889
-----------------
Module for Analog Devices AD1889 chips.
ac97_quirk - AC'97 workaround for strange hardware
See the description of intel8x0 module for details.
This module supports multiple cards.
Module snd-ali5451
------------------
Module for ALi M5451 PCI chip.
pcm_channels - Number of hardware channels assigned for PCM
spdif - Support SPDIF I/O
- Default: disabled
This module supports one chip and autoprobe.
The power-management is supported.
Module snd-als100
-----------------
Module for sound cards based on Avance Logic ALS100/ALS120 ISA chips.
port - port # for ALS100 (SB16) chip (PnP setup)
irq - IRQ # for ALS100 (SB16) chip (PnP setup)
dma8 - 8-bit DMA # for ALS100 (SB16) chip (PnP setup)
dma16 - 16-bit DMA # for ALS100 (SB16) chip (PnP setup)
mpu_port - port # for MPU-401 UART (PnP setup)
mpu_irq - IRQ # for MPU-401 (PnP setup)
fm_port - port # for OPL3 FM (PnP setup)
This module supports multiple cards, autoprobe and PnP.
The power-management is supported.
Module snd-als300
-----------------
Module for Avance Logic ALS300 and ALS300+
This module supports multiple cards.
The power-management is supported.
Module snd-als4000
------------------
Module for sound cards based on Avance Logic ALS4000 PCI chip.
joystick_port - port # for legacy joystick support.
0 = disabled (default), 1 = auto-detect
This module supports multiple cards, autoprobe and PnP.
The power-management is supported.
Module snd-atiixp
-----------------
Module for ATI IXP 150/200/250/400 AC97 controllers.
ac97_clock - AC'97 clock (default = 48000)
ac97_quirk - AC'97 workaround for strange hardware
See "AC97 Quirk Option" section below.
ac97_codec - Workaround to specify which AC'97 codec
instead of probing. If this works for you
file a bug with your `lspci -vn` output.
-2
没有合适的资源?快使用搜索试试~ 我知道了~
嵌入式Linux驱动程序和系统开发(精讲实例)_源码
共2000个文件
c:1155个
h:492个
makefile:167个
4星 · 超过85%的资源 需积分: 50 749 下载量 64 浏览量
2010-08-16
09:13:23
上传
评论 11
收藏 8.23MB ZIP 举报
温馨提示
嵌入式Linux驱动程序和系统开发(精讲实例)源码分两部分: part01:是源程序。 part02:是出版社的图书介绍 两部分合成一个完整的CD
资源推荐
资源详情
资源评论
收起资源包目录
嵌入式Linux驱动程序和系统开发(精讲实例)_源码 (2000个子文件)
patch.Makefile.2.4.0-test10 589B
patch.Makefile.top.2.4.0-test10 362B
alsamixer.1 6KB
arecord.1 5KB
aplay.1 5KB
amixer.1 4KB
amidi.1 3KB
speaker-test.1 3KB
aconnect.1 3KB
iecset.1 3KB
alsactl.1 3KB
arecordmidi.1 2KB
aseqnet.1 2KB
aplaymidi.1 1KB
aseqdump.1 809B
patch.Makefile.top.2.4.1 365B
patch.Makefile.2.4.1 204B
README.1st 108B
README.1st 84B
patch.Makefile.2.4.2 308B
midifile.3 10KB
patch.mem.c.2.3.34 422B
Makefile_driver_2.6 225B
alsaconf.8 3KB
ABOUT-NLS 79KB
README.aconnect 1KB
sndo-mixer.alisp 3KB
aliases.alisp 687B
sndoc-mixer.alisp 250B
sndop-mixer.alisp 250B
alsasound 6KB
Makefile.am 2KB
Makefile.am 2KB
Makefile.am 2KB
Makefile.am 2KB
Makefile.am 1KB
Makefile.am 1KB
Makefile.am 849B
Makefile.am 719B
Makefile.am 696B
Makefile.am 664B
Makefile.am 648B
Makefile.am 624B
Makefile.am 578B
Makefile.am 391B
Makefile.am 369B
Makefile.am 369B
Makefile.am 325B
Makefile.am 273B
Makefile.am 264B
Makefile.am 264B
Makefile.am 245B
Makefile.am 241B
Makefile.am 221B
Makefile.am 219B
Makefile.am 218B
Makefile.am 207B
Makefile.am 206B
Makefile.am 205B
Makefile.am 204B
Makefile.am 204B
Makefile.am 189B
Makefile.am 179B
Makefile.am 173B
Makefile.am 171B
Makefile.am 171B
Makefile.am 170B
Makefile.am 149B
Makefile.am 146B
Makefile.am 130B
Makefile.am 128B
Makefile.am 106B
Makefile.am 97B
Makefile.am 90B
Makefile.am 44B
Makefile.am 35B
Makefile.am 31B
Makefile.am 15B
README.aseqnet 2KB
INSTALL.asihpi-alsa 4KB
README.asihpi-alsa 894B
cwcdma.asp 4KB
PXA255功能框图.bmp 2.31MB
传感器系统硬件结构图.bmp 2.31MB
移动校园_系统模型.bmp 421KB
buildrpm 905B
buildrpm 883B
buildrpm 837B
patch_realtek.c 356KB
nm256_coef.c 301KB
pcm.c 231KB
pdplus.c 209KB
hpifunc.c 206KB
hdsp.c 147KB
pdplus-pga-a.c 136KB
pdplus-pga-d.c 136KB
seq.c 133KB
hdspm.c 125KB
trident_main.c 123KB
yss225.c 118KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
zhaolisong
- 粉丝: 2
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
- 4
- 5
- 6
前往页