Sound problems...

Bill Mair linux-thinkpad@www.bm-soft.com
Fri, 09 Apr 1999 10:03:02 +0200


Andrew S. Townley wrote:

> 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#

Hopefully the # at the end of the above line is not really there.

> 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. ---

As far as I can see it should work, but Iīve disabled the Joystick
(snd_jport=-1) and the
FM synth (snd_mpu_port=-1, not required snd_mpu_irq).

Use amixer (or xamixer as I suggest on my pages) and make sure that all of
the required
audio levels are set as required, and that the channels are not muted. I
actually had
ALSA working for a whole day without any sound because I forgot to unmute the

channels.

If you are sure that this is all OK then try aplay against an .au or similar
audio file
and see what happens. The biggest problem with ALSA is that various progs
require
a "--with-alsa" when you call ./configure to enable their (if any) ALSA
support.

When everything is as you want it the issue the "alsactl store" to save the
current
audio setting into /etc/asound.conf.

Oh another thing you could try:
    1. remove the "alias sound snd-card-0" entry (Donīt just comment it out:
see /etc/rc.d/rc.sysinit)
    2. change the alias sound-s* entries to snd-s*
        [ RH looks for "alias sound" in conf.modules. (Better would be "alias
sound " note the trailing blank ) ]
    3. add the following two lines to /etc/rc.d/rc.local:
        modprobe snd-card-0
        alsactl restore

I do it this way because ALSA didnīt seem to be initalizing correctly when
being started from
/etc/rc.d/rc.sysinit.

Bill.