[PlanetCCRMA] audigy2 and cmedia - no sound no midi

Fernando Pablo Lopez-Lezcano nando@ccrma.Stanford.EDU
Sat Oct 16 17:52:59 2004

On Sat, 2004-10-16 at 17:30, michel access wrote:
> hi there all - just took the plunge last week with
> linux for the first time - first installed mandrake -
> had many problems and as noobie couldnt figure out
> head and tail than came across the ccrma site and the
> installation pages with the step by step detailed
> decriptions won me over so createted another partition
> and installed fc1. Up to here everything ok (i think -
> didnt check sound as continued imidiatly with the
> ccrma instalation) - than upgraded the kernel and
> booted into the ccrma kernel - all works - than came
> alsa and ruined my weekend...
> after many searched and editing various files i've
> ended up with the following
> modules.conf - 
> alias eth0 8139too
> alias char-major-81 bttv
> alias usb-controller usb-uhci
> alias ieee1394-controller ohci1394
> # --- BEGIN: Generated by ALSACONF, do not edit. ---
> # --- ALSACONF verion 1.0.4 ---
> alias char-major-116 snd
> alias char-major-14 soundcore
> alias snd-card-0 snd-emu10k1
> alias snd-card-1 snd-cmipci
> 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
> alias sound-slot-1 snd-card-1
> alias sound-service-1-0 snd-mixer-oss
> alias sound-service-1-1 snd-seq-oss
> alias sound-service-1-3 snd-pcm-oss
> alias sound-service-1-8 snd-seq-oss
> alias sound-service-1-12 snd-pcm-oss
> #--- Options 
> options snd major=116 cards_limit=2 device_mode=0666
> device_gid=0 device_uid=0

The previous lines should be just one, could be the mailer that split

> options snd-emu10k1 index=0
> options snd-cmipci index=1
> options snd-cmipci mpu_port=0x330 fm_port=0x388
> #--- Keep modules from being autocleaned
> add options -k snd-card-0
> add options -k snd-card-1
> # --- END: Generated by ALSACONF, do not edit. ---

Otherwise looks good to  me. 

> -----------------# cat /proc/asound/oss/sndstat

It would be better to look at the alsa native stuff, /proc/asound/cards
and /proc/asounddevices. The one you are listing is the OSS emulation

> Sound Driver:3.8.1a-980706 (ALSA v1.0.4 emulation
> code)
> Kernel: Linux localhost.localdomain
> 2.4.26-1.ll.rhfc1.ccrma #1 Sat Apr 17 21:19:40 PDT
> 2004 i686
> Config options: 0
> Installed drivers:
> Type 10: ALSA emulation
> Card config:
> Sound Blaster Audigy2 (rev.4) at 0x9400, irq 10
> C-Media PCI CMI8738-MC6 (model 55) at 0xb800, irq 11
> Audio devices:
> 0: EMU10K1 (DUPLEX)
> Synth devices: NOT ENABLED IN CONFIG
> Midi devices:
> 0: Audigy MPU-401 (UART)
> 1: MPU-401 MIDI 1-0
> Timers:
> 7: system timer
> Mixers:
> 0: SigmaTel STAC9721/23
> 1: CMedia PCI
> Q1 - Does 'synth devices: NOT ENABLED IN CONFIG'
> sounds right? where is the synth of the audigy? or the
> onboard cmedia?

I don't have experience with the audigy but if you want to use the
internal synth you have to load a soundfont into it. I don't remember
what the command is for that. 

> Q2 - Where does the SigmaTel turned out from? never
> heard of it as part of the audigy2 chipset...

My guess is that it is the a/d d/a converters. 

> than after /sbin/chkconfig --add alsasound
> on /sbin/chkconfig --list alsasound
> i get:
> alsasound       0:off   1:off   2:on    3:on    4:on  
>  5:on    6:off
> Q3 are they supposed to be off?

345 are on and that's fine. 

> state after all this - no sound from both cards, kmid
> (the only programme i can figure out to check my midi
> input) dont show anything in midi devices and in the
> volume control mixer i have a tab for cmedia and one
> for sigmatel but no emu10k1... 

Start a native ALSA mixer, for example "gamix". That should show a mixer
for both cards. Or in a terminal the ncurses based alsamixer. 

It looks like the driver loaded fine, the next step is to use an ALSA
mixer to make sure the volumes for the devices you are interested in are
up (for "main" and "pcm", for example) and not muted (in gamix, the
small button below the fader has to be "on" - that is pressed). 

Do you have a wav file? Try playing it from a terminal with "aplay". For

  aplay --device=hw:0 filename.wav
(for the first card)
  aplay --device=hw:1 filename.wav
(for the second)

If you hear sound then you are there. Next comes figuring out which
applications would be useful for what you are trying to do, and learning
to use them.

-- Fernando