Tiny Core Extensions > TCE Q&A Forum
Discrepancies - alsasound script versus alsaconf
SamK:
I have a few venerable PC's which I am looking to press back into service conducting light duties with TC3x. Currently they are performing really well, but one is having a problem with sound from an ISA "Creative ViBRA16X PnP" card. Sound output fails when configured using
sudo /usr/local/etc/init.d/alsasound start
but works if configured using
sudo alsaconf
The card is found during boot-up, as shown by this extract from dmesg:
--- Quote ---isapnp: Scanning for PnP cards...
pnp 01:01.00: increased option port range from 0x388-0x388 to 0x388-0x3f8
pnp 01:01.00: increased option port range from 0x388-0x388 to 0x388-0x3f8
01:01: card 'Creative ViBRA16X PnP'
isapnp: 1 Plug & Play card detected total
--- End quote ---
No kernel module is loaded for it.
lsmod
--- Quote ---Module Size Used by Not tainted
cifs 161640 2
squashfs 14728 25
ramzswap 10240 1
loop 8068 50
scsi_wait_scan 276 0
via_rhine 12704 0
--- End quote ---
Alsa is listed in OnBoot and after running
sudo /usr/local/etc/init.d/alsasound start
--- Quote ---amixer: Mixer attach default error: No such file or directory
--- End quote ---
sound is not reproduced using
speaker-test --channels=2
however, additional kernel modules are loaded
lsmod
--- Quote ---Module Size Used by Not tainted
snd_seq_dummy 648 0
snd_seq_oss 15364 0
snd_seq_midi_event 2624 1 snd_seq_oss
snd_seq 26036 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device 2808 3 snd_seq_dummy,snd_seq_oss,snd_seq
snd_pcm_oss 24484 0
snd_pcm 37628 1 snd_pcm_oss
snd_timer 10564 2 snd_seq,snd_pcm
snd_page_alloc 4016 1 snd_pcm
snd_mixer_oss 8648 1 snd_pcm_oss
snd 26200 7 snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_oss
soundcore 2640 1 snd
cifs 161640 2
squashfs 14728 37
ramzswap 10240 1
loop 8068 74
scsi_wait_scan 276 0
via_rhine 12704 0
--- End quote ---
After running
sudo alsaconf
sound is reproduced using
speaker-test --channels=2
however, yet further kernel modules are loaded
lsmod
--- Quote ---Module Size Used by Not tainted
snd_sb16 5144 0
snd_opl3_lib 4888 1 snd_sb16
snd_sb16_dsp 4696 1 snd_sb16
snd_sb16_csp 5932 1 snd_sb16
snd_sb_common 7184 3 snd_sb16,snd_sb16_dsp,snd_sb16_csp
snd_hwdep 3004 2 snd_opl3_lib,snd_sb16_csp
snd_mpu401_uart 2780 1 snd_sb16
snd_rawmidi 10004 1 snd_mpu401_uart
snd_seq_dummy 648 0
snd_seq_oss 15364 0
snd_seq_midi_event 2624 1 snd_seq_oss
snd_seq 26036 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device 2808 5 snd_opl3_lib,snd_rawmidi,snd_seq_dummy,snd_seq_oss,snd_seq
snd_pcm_oss 24484 0
snd_pcm 37628 3 snd_sb16,snd_sb16_dsp,snd_pcm_oss
snd_timer 10564 3 snd_opl3_lib,snd_seq,snd_pcm
snd_page_alloc 4016 1 snd_pcm
snd_mixer_oss 8648 1 snd_pcm_oss
snd 26200 15 snd_sb16,snd_opl3_lib,snd_sb16_dsp,snd_sb16_csp,snd_sb_common,
snd_hwdep,snd_mpu401_uart,snd_rawmidi,snd_seq_oss,snd_seq,
snd_seq_device,snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_oss
soundcore 2640 1 snd
cifs 161640 2
squashfs 14728 37
ramzswap 10240 1
loop 8068 74
scsi_wait_scan 276 0
via_rhine 12704 0
--- End quote ---
This is hindering a simple, automated set-up of sound at boot-up. I suppose one could load each of the modules individually during boot-up but it does seem rather clumsy and inelegant. As alsaconf is able to successfully conduct the set-up is it possible for the alsasound script to do likewise?
(Modified by Jason w to fit on page)
Jason W:
It has been a while since I dealt with ISA sound cards, but I have a few laying around including an sb16 that I can play with. Does alsaconf find that card non-interactively? I can't remember if it does. If it does, then I can likely work a routine into the alsasound script for PnP ISA cards.
Jason W:
Upon viewing alsaconf, it has various options that can be used, and perhaps one of those options can be used to probe only legacy PnP cards non-interactively. That would be better than duplicating the functionality in alsasound that would slow things down for everyone.
If there is not an option to probe for PnP ISA cards and either fail or succeed non-interactively I will see if I can add it in. Folks with ISA cards then could just use the alsaconf command instead of alsasound, but will serve the same purpose.
Jason W:
There is not an option to run alsaconf for PCI or ISA PnP cards without interaction, so I will aim for adding that as an option for those cases that need alsaconf.
Or I may be able to add the lines to /usr/local/etc/init.d/alsasound to probe for PnP when no PCI card has been found, along with a "status" option so it will play well with the services tool in base.
SamK:
--- Quote from: Jason W ---It has been a while since I dealt with ISA sound cards...
--- End quote ---
Yeah me too, and I suspect for many others also. I had to spend time "scratching my brain" to remember what to do.
--- Quote from: Jason W ---Upon viewing alsaconf, it has various options that can be used, and perhaps one of those options can be used to probe only legacy PnP cards non-interactively.
[...]
If there is not an option to probe for PnP ISA cards and either fail or succeed non-interactively I will see if I can add it in.
--- End quote ---
I've had a look at the help options and cannot find one which is specifically for legacy PnP cards, or fails/succeeds in the way you describe.
Manually requesting a list of cards returns:
sudo alsaconf --listprobe
--- Code: ---opl3sa2 cs4236 cs4232 cs4231 es18xx es1688 sb16 sb8
--- End code ---
I don't know if this varies with different cards.
Manually probing the card returns:
sudo alsaconf --probe sb16
--- Code: --- 0 [S16 ]: SB16 - Sound Blaster 16
--- End code ---
Probing the other candidates (from --listprobe) returns either failed or no card found.
I cannot see how it goes on to identify which modules to install.
Not much help, but here's hoping you fare better.
(Note: caught twice in cross-posting but thought I would offer it anyway.)
Navigation
[0] Message Index
[#] Next page
Go to full version