My main problem is that I can't find documentation for alsa 0.9. The
source code has a README.1st which says that documentation is provided in a
separate alsa-doc package. There is no link to any such package, nor is there
any package in any obvious place on the ftp site. The web site has
documentation, but it's for 0.5 and doing what I did for 0.5 doesn't work
for 0.9.
My sound card is a Shark Predator ISA with a midi board attached
(ad1816a-based). It's obscure enough that even getting the card recognized
requires a patch. (Patch at end of message.) The card works completely under
0.5 (after patching).
When playing midi (playmidi -e) or playing a CD, it does work. However,
alsamixer works backwards--the lower the number, the louder the sound is (unless
I put it down to 0, which does turn the sound off).
Playing regular sound doesn't work (mixer or not). I get the following:
root:/usr/local/src/alsa-driver-0.9.0beta7/cards# aplay --version
aplay: version 0.9.0beta7 by Jaroslav Kysela <[EMAIL PROTECTED]>
root:/usr/local/src/root:/usr/local/src/alsa-driver-0.9.0beta7/cards# aplay
/mnt/c:/sounds/beware*.wav
Playing WAVE '/mnt/c:/sounds/bewareilive.wav' : Unsigned 8 bit, Rate 10026 Hz, Mono
aplay: pcm_write:870: write error: Input/output error
I can't cat a file to /dev/audio either.
My Linux version is a stock Mandrake 8 install:
Linux version 2.4.3-20mdk ([EMAIL PROTECTED]) (gcc version egcs-2.91.66
19990314/Linux (egcs-1.1.2 release / Linux-Mandrake 8.0)) #1 Sun Apr 15 23:03:10 CEST
2001
Here's the relevant part of my modules.conf:
# ALSA native
alias char-major-116 snd
options snd snd_major=116 snd_cards_limit=1
alias snd-card-0 snd-card-ad1816a
#OSS/Free emulation
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
This is exactly what worked in 0.5. If anything changed, if I need extra
modules, or if I need an extra configuration file or need to delete an old 0.5
one, I don't know--I don't have any documentation. (Does ad1816a even work in
0.9?)
Oh, here's the patch to get my card recognized:
0.9:
*** card-ad1816a.c.orig Sun Sep 16 01:25:55 2001
--- card-ad1816a.c Sun Sep 16 01:32:13 2001
***************
*** 35,41 ****
"{Analog Devices,AD1815},"
"{Analog Devices,AD1816A},"
"{TerraTec,Base 64},"
! "{Aztech/Newcom SC-16 3D}}");
static int snd_index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 1-MAX */
static char *snd_id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */
--- 35,42 ----
"{Analog Devices,AD1815},"
"{Analog Devices,AD1816A},"
"{TerraTec,Base 64},"
! "{Aztech/Newcom SC-16 3D},"
! "{Shark Predator ISA}}");
static int snd_index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 1-MAX */
static char *snd_id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */
***************
*** 113,118 ****
--- 114,121 ----
ISAPNP_AD1816A('T','E','R',0x1411,'A','D','S',0x7180,0x7181),
/* Analog Devices AD1816A - Aztech/Newcom SC-16 3D */
ISAPNP_AD1816A('A','Z','T',0x1022,'A','Z','T',0x1018,0x2002),
+ /* Shark Predator ISA - added by Ken Arromdee */
+ ISAPNP_AD1816A('S','M','M',0x7180,'A','D','S',0x7180,0x7181),
{ ISAPNP_CARD_END, }
};
0.5:
*** card-ad1816a.c.orig Sat Jul 21 00:51:30 2001
--- card-ad1816a.c Sat Jul 21 00:07:17 2001
***************
*** 36,41 ****
--- 36,42 ----
ISAPNP: ADS7181=ADS7180,ADS7181\n\
ISAPNP: LWC1061=ADS7180,ADS7181\n\
ISAPNP: TER1411=ADS7180,ADS7181\n\
+ ISAPNP: SMM7180=ADS7180,ADS7181\n\
");
int snd_index[SND_CARDS] = SND_DEFAULT_IDX; /* Index 1-MAX */
***************
*** 111,116 ****
--- 112,121 ----
(ISAPNP_VENDOR('A','D','S')<<16)|ISAPNP_FUNCTION(0x7181), /* mpu401 */
/* Analog Devices AD1816A - Terratec Base 64 */
(ISAPNP_VENDOR('T','E','R')<<16)|ISAPNP_DEVICE(0x1411), /* device */
+ (ISAPNP_VENDOR('A','D','S')<<16)|ISAPNP_FUNCTION(0x7180), /* audio */
+ (ISAPNP_VENDOR('A','D','S')<<16)|ISAPNP_FUNCTION(0x7181), /* mpu401 */
+ /* Shark Predator ISA */
+ (ISAPNP_VENDOR('S','M','M')<<16)|ISAPNP_DEVICE(0x7180), /* device */
(ISAPNP_VENDOR('A','D','S')<<16)|ISAPNP_FUNCTION(0x7180), /* audio */
(ISAPNP_VENDOR('A','D','S')<<16)|ISAPNP_FUNCTION(0x7181), /* mpu401 */
0 /* end */
_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user