These data were submitted on: Wednesday, June, 9, 2004 at 07:26:37
---------------------------------------------------------------------------
NAME: Pierre Vanhoucke
CALL: ON5GN
E-mail: pierre.vanhoucke@skynet.be
MOTHERBOARD:: Dell Dimension 8250
CPU Speed:: 2.4 Ghz
RAM in MB:: 1024 MB
SOUND CARD:: Delta 44
SOUND DRIVER(S):: Alsa 1.0.4
ADDITIONAL CARD1:: PCI128
VIDEO CARD:: ATI Radeon 7000 / 32Mb
VIDEO DRIVER:: ATI Radeon driver
LINUX DISTRIBUTION:: SUSE
LINUX VERSION:: 9.1
KERNEL VERSION:: 2.6.4-54.5
GCC VERSION:: 3.3.3
SVGALIB VERSION:: 1.9.19
LINRAD VERSION:: Linrad-01.20
Analog section: WSE RX2500
WSE RX10700
Expanded Spectrum System / Time Machine
TEXT:
HOW TO USE ALSA FOR A DELTA44 CARD WITH LINRAD 01.20
( DUAL CHANNEL AND SAMPLING AT 96000 Hz )
19-6-2004
1. ALSA AND LINRAD.
Using Alsa-drivers with Linrad has been a hot subject for years. With the
current Alsa-versions, many popular soundcards as p.e. the Soundblaster
AudioPCI128 can now succesfully be configured and used with Linrad.
The Delta44 card however was an exception.
During the processing of the Linrad menu option U, the following error
message was generated:
Internal error 1040 (errno=22)
routine: set analog_io file:setad.c
Call to ioctl failed (SNDCTL_DSP_SPEED) .
Searching the Linrad archives I discovered that back in 2002 Leif gave a
hint to solve this problem:
Hint
The patch was applied to Linrad version 01.20 by adapting the line numbers
to the actual version of the setad.c routine.
After the recompilation of Linrad I was able to go through the menu option "U"
without the error message, and succesfully configure the Delta 44 card for
input.
A further check of the content of par_userint also revealed that the
sampling speed of the Delta44 card was correctly set at 96000.
Leif plans to include this patch in Linrad 01.21 .
2. SETUP DETAILS OF SVGALIB, ALSA AND LINRAD:
1. Svgalib 1.9.19 and ATI Radeon 7000 32MB /AGP card:
There is a known installation problem with 'svgalib_helper.o':
see DF9CY's solution described in the Linrad User Data Bank
Modify libvga.config with 'mouse PS2' and 'HorizSync 31.5 90'
Note: there is a minor problem with the ATI Radeon driver: vgatest works OK
for mode 13 ( 1280x1024, 256 colours), but the background colours of
/dev/tty1 are not reset to their original, 64K value upon exit.
( problem reported to matan@svgalib.org on 17-6-2004 )
2. The Alsa version that comes with Suse 9.1 is 1.0.4
3. The soundcards were configured with YAST2:
An AudioPCI128 card was selected as card 0.
A Delta44 card was selected as card 1.
4. Linrad is always started in runlevel 1 to avoid potential
interferences from other (alsa-related ) processes.
5. To start Linrad, the following shell was created and saved as
/usr/bin/lira:
#!/bin/bash
# 1. Start Alsa
rcalsasound start
# 2. Load svgalib_helper
insmod /usr/local/src/svgalib-1.9.19/kernel/svgalib_helper/svgalib_helper.o
# 3. Set output mixer for PCI128 card
amixer -c0 sset PCM,0 100% 100% unmute
amixer -c0 sset Master,0 50% 50%
# 4. Set input mixer for Delta44
amixer -c1 cset numid=34 12 #set speed to 96000
amixer -c1 cset numid=49 32 #set volume adc0 to 25 %
amixer -c1 cset numid=51 32 #set volume adc1 to 25 %
amixer -c1 cset numid=53 32 #set volume adc2 to 25 %
amixer -c1 cset numid=55 32 #set volume adc3 to 25 %
# 5. Start linrad
cd /home/pierre/linrad/linrad-01.20
./linrad
# 6. Stop alsa
rcalsasound stop
exit
6. Linrad parameters:
Initial setup parameters:
mlockall= N ( Y freezes the system ! )
usleep=N
video mode =13
fontscale=1
mouse speed reduction =1
Menu option "U":
Following devices are displayed:
01 /dev/dsp0 (corresponding with the PCI128 card )
02 /dev/dsp1 (corresponding with the Delta44 )
49 /dev/dsp49 (correponding with ??????? )
Select device number for input?: 2
Open /dev/dsp1 as RDONLY or RDWR (O/W)?: O
Select radio interface?: 4
Select sampling rate?: 96000
Select device number for output?: 1
Use close and reopen?: Y
P.S. The 'max da speed' parameter in par_userint was changed from 192000
to 8000 with joe.
Menu option "D":
Hint: set baseband storage time to 10, if you want to save buffer storage.
Have fun with Linrad
73 Pierre /ON5GN
----------------------------------------------------------------------