Sound problems...

Andrew S. Townley linux-thinkpad@www.bm-soft.com
Fri, 09 Apr 1999 00:38:19 +0000


Hello everyone.

I'm working on about two weeks of having RH5.1 on my TP770X Model
9459-7AU.  Thanks to Bill's X stuff, I have X working great in beautiful
16bpp color.  Also, I have just about everything I need working
correctly--except the sound.  I tried the native sound.  I tried the
alsa stuff.  Nothing has worked so far.  I downloaded and tried various
configurations from the WWW and messed with alsaconf myself.  Currently,
I can play CD's through the built-in speakers, but that's it.

I have been going by the system resources report burped out by Win98 to
try and get everything working.  Finally, after messing with this all
day today, I can get the sound drivers to load along with my 2 pcmcia
cards.  I'm including my relevant configuration information (lots of it
:) in the hopes that someone can see what's different between what I
have and what they have.

Thanks in advance,

ast

$ uname -a
Linux ishtar 2.0.34 #2 Sat Mar 27 15:26:53 CST 1999 i686 unknown

Here's the conf.modules file:
=============================

alias sound snd-card-0

# --- BEGIN: Generated by ALSACONF, do not edit. ---
alias char-major-116 snd
alias char-major-14 snd
alias snd-card-0 snd-card-cs4236
alias sound-slot-0 snd-card-0
alias sound-service-0-3 snd-pcm1-oss
alias sound-service-0-12 snd-pcm1-oss#

options snd snd_major=116 snd_cards_limit=1 snd_device_mode=0666
snd_device_gid=0 snd_device_uid=0
options snd-card-cs4236 snd_index=1 snd_id=CARD_1 snd_port=0x530
snd_cport=0x538 snd_mpu_port=0x330 snd_fm_port=0x388 snd_jport=0x200
snd_irq=5 snd_mpu_irq=11 snd_dma1=0 snd_dma2=1
# --- END: Generated by ALSACONF, do not edit. ---

Here's my /etc/pcmcia/config.opts file:
=======================================
# Local PCMCIA Configuration File
#
# System resources available for PCMCIA devices
#
#include port 0x100-0x3ff, memory 0xc0000-0xfffff
#include port 0x300-0x3ff, memory 0x60000000-0x60ffffff
include port 0x120-0x2FF, memory 0x08000000-0x08003FFF
#
# Extra port range for IBM Token Ring
#
#include port 0xa00-0xaff
#
# Resources we should not use, even if they appear to be available
#
# First built-in serial port
exclude irq 4
# Second built-in serial port
# exclude irq 3
# First built-in parallel port
exclude irq 7
#
#
#### ThinkPad 770X
## sound
exclude irq 5
## floppy
exclude irq 6
## DSP
exclude irq 10
## MIDI
exclude irq 11

# exclude the memory regions for the sound
# joystick
exclude port 0x200-0x207
# CODEC
exclude port 0x220-0x233
exclude port 0x388-0x38B
exclude port 0x530-0x537
# Virtual MPU-401
exclude port 0x330-0x331
# Control registers
exclude port 0x538-0x53F

# exclude the memory regions for the DSP
exclude port 0x130-0x13F

# disk controller
exclude port 0x170-0x177
exclude port 0x1F0-0x1F7

# ThinkPad Modem
exclude port 0x3F8-0x3FF

# Options for loadable modules
#
# To fix sluggish network with IBM ethernet adapter...
#module "pcnet_cs" opts "mem_speed=600"
#
# Options for Xircom Netwave driver...
#module "netwave_cs" opts "domain=0x100 scramble_key=0x0"


Here's the contents of all the /proc/asound files
=================================================
::::::::::::::
/proc/asound/cards
::::::::::::::
0 [CARD_1         ]: CS4236 - CS4239
                     CS4239 at 0x530, irq 5, dma 0&1
::::::::::::::
/proc/asound/devices
::::::::::::::
  0: [0]   : control
  4: [0- 0]: mixer
  8: [0- 0]: raw midi
 16: [0- 0]: digital audio
::::::::::::::
/proc/asound/meminfo
::::::::::::::
Driver using 3 pages (12288 bytes) of kernel memory for data.
::::::::::::::
/proc/asound/oss-devices
::::::::::::::
  0: [0- 0]: mixer
  2: [0- 2]: raw midi
  9: [0- 9]: raw midi
::::::::::::::
/proc/asound/pcm
::::::::::::::
00-00: CS4232 : CS4239
::::::::::::::
/proc/asound/synth
::::::::::::::
00-00: OPL3 FM
::::::::::::::
/proc/asound/timers
::::::::::::::
00-00: CS4239 : 9.945us (1-65535)
XX-XX: unlimited system timer : 10000.0us (1-10000000)
::::::::::::::
/proc/asound/version
::::::::::::::
Advanced Linux Sound Architecture Driver Version 0.3.0-pre4.
Compiled in Apr  8 1999 for kernel 2.0.34 with versioned symbols.

Here's the contents of the /proc/devices file
=============================================
$ cat /proc/devices
Character devices:
 1 mem
 2 pty
 3 ttyp
 4 ttyp
 5 cua
 7 vcs
10 misc
14 snd
116 alsa
127 pcmcia

Block devices:
 1 ramdisk
 2 fd
 3 ide0
 9 md
22 ide1

Here's the contents of the /proc/dma file
=========================================
$ cat /proc/dma
 0: CS4236+ - DMA1
 1: CS4236+ - DMA2
 4: cascade

Here's the contents of the /proc/interrupts file
================================================
$ cat /proc/interrupts
 0:     176301   timer
 1:       6046   keyboard
 2:          0   cascade
 3:       3908   3c589_cs
 5:          0 + CS4236+
 8:          1 + rtc
10:          5   i82365
11:          0 + CS4236+ - MPU401
12:      69351   PS/2 Mouse
13:          1   math error
14:      89727 + ide0
15:       5780 + ide1

Here's the contents of the /proc/ioports file
=============================================
$ cat /proc/ioports
0000-001f : dma1
0020-003f : pic1
0040-005f : timer
0060-006f : keyboard
0070-007f : rtc
0080-009f : dma page reg
00a0-00bf : pic2
00c0-00df : dma2
00f0-00ff : npu
0170-0177 : ide1
01f0-01f7 : ide0
0200-0207 : CS4236+ - joystick
0210-021f : 3c589_cs
02f8-02ff : serial_cs
0330-0331 : CS4236+ - MPU-401
0376-0376 : ide1
0388-038b : CS4236+ - FM
03c0-03df : vga+
03f0-03f5 : floppy
03f6-03f6 : ide0
03f7-03f7 : floppy DIR
0530-0533 : CS4236+
0538-053f : CS4236+ - control
fcf0-fcf7 : IDE DMA
fcf8-fcff : IDE DMA

Here's the currently running modules
====================================
$ lsmod
Module         Pages    Used by
aha152x_cs         6		0
autofs             2		1 (autoclean)
serial_cs          1		0
3c589_cs           2		1
ds                 2	[aha152x_cs serial_cs 3c589_cs]	2
i82365             5		2
pcmcia_core        9	[aha152x_cs serial_cs 3c589_cs ds i82365]	0
ntfs               9		2 (autoclean)
nls_iso8859_1      1		4 (autoclean)
nls_cp437          1		4 (autoclean)
vfat               4		4 (autoclean)
snd-card-cs4236    1		1
snd-mpu401-uart    1	[snd-card-cs4236]	0
snd-midi           4	[snd-card-cs4236 snd-mpu401-uart]	0
snd-cs4236         2	[snd-card-cs4236]	0
snd-opl3           1	[snd-card-cs4236]	0
snd-synth          1	[snd-card-cs4236 snd-opl3]	0
snd-cs4231         4	[snd-card-cs4236 snd-cs4236]	0
snd-timer          1	[snd-opl3 snd-cs4231]	0
snd-mixer          4	[snd-card-cs4236 snd-cs4236 snd-cs4231]	1
snd-pcm1           5	[snd-cs4236 snd-cs4231]	0
snd-pcm            3	[snd-card-cs4236 snd-cs4236 snd-cs4231 snd-pcm1]	

snd               11	[snd-card-cs4236 snd-mpu401-uart snd-midi snd-opl3
snd-synth snd-cs4231 snd-timer snd-mixer snd-pcm1 snd-pcm]	1