any help would be immensely appreciated.  or if someone would just say this doesn't 
work, that too would put me out of my misery.  

status with alsa  
-  alsa-driver-0.9.0rc8b
-  alsa-lib-0.9.0rc8c
-  alsa-utils-0.9.0rc8a

i run redhat 8.0 and i use gnome.

The good:
my sound is good.  i can hear sound from the line in, mic, my cd player, realplayer.

The problems:

1.  the warnings about vmalloc_to_page during driver build
2.  aplay and arecord do not work.  they return 

aplay: pcm_write:1024: write error: Input/output error
arecord: pcm_read:1105: read error: Input/output error

3.  mpg123 plays and repeats the same 1/2 second long after the job is killed
4.  line in cannot be set to capture
5.  no error messages in dmesg or /var/log/messgaes

Background information

1. contents of .asoundrc
        pcm.via82xx {
           type hw
           card 0
        }

        ctl.via82xx {
           type hw
           card 0
        }

2. /sbin/modinfo soundcore
filename:    /lib/modules/2.4.18-14/kernel/drivers/sound/soundcore.o
description: "Core sound module"
author:      "Alan Cox"
license:     "GPL"

3.  How i installed the driver, libs, and utils
PATH=$PATH:/sbin
cd /usr/src/alsa/alsa-driver-0.9.0rc8b
./configure --with-cards=via82xx --with-sequencer=yes
# configure looks good, no errors
make

# warnings - a sample of warnings for vmalloc_to_page
In file included from /usr/src/alsa/alsa-driver-0.9.0rc8b/include/sound/driver.h:43,
                 from ../../alsa-kernel/core/ioctl32/hwdep32.c:21,
                 from hwdep32.c:2:
/usr/src/alsa/alsa-driver-0.9.0rc8b/include/adriver.h:325:1: warning: 
"vmalloc_to_page" redefined
In file included from /lib/modules/2.4.18-14/build/include/linux/modversions.h:1217,
                 from /usr/src/alsa/alsa-driver-0.9.0rc8b/include/adriver.h:40,
                 from /usr/src/alsa/alsa-driver-0.9.0rc8b/include/sound/driver.h:43,
                 from ../../alsa-kernel/core/ioctl32/hwdep32.c:21,
                 from hwdep32.c:2:
/lib/modules/2.4.18-14/build/include/linux/modules/ksyms.ver:2889:1: warning: this is 
the location of the previous definition
In file included from /usr/src/alsa/alsa-driver-0.9.0rc8b/include/sound/driver.h:43,
                 from ../../alsa-kernel/core/ioctl32/ioctl32.c:21,
                 from ioctl32.c:2:
/usr/src/alsa/alsa-driver-0.9.0rc8b/include/adriver.h:325:1: warning: 
"vmalloc_to_page" redefined
In file included from /lib/modules/2.4.18-14/build/include/linux/modversions.h:1217,
                 from /usr/src/alsa/alsa-driver-0.9.0rc8b/include/adriver.h:40,
                 from /usr/src/alsa/alsa-driver-0.9.0rc8b/include/sound/driver.h:43,
                 from ../../alsa-kernel/core/ioctl32/ioctl32.c:21,
                 from ioctl32.c:2:
/lib/modules/2.4.18-14/build/include/linux/modules/ksyms.ver:2889:1: warning: this is 
the location of the previous definition
In file included from /usr/src/alsa/alsa-driver-0.9.0rc8b/include/sound/driver.h:43,
                 from ../../alsa-kernel/core/ioctl32/pcm32.c:21,
                 from pcm32.c:2:
/usr/src/alsa/alsa-driver-0.9.0rc8b/include/adriver.h:325:1: warning: 
"vmalloc_to_page" redefined
In file included from /lib/modules/2.4.18-14/build/include/linux/modversions.h:1217,
                 from /usr/src/alsa/alsa-driver-0.9.0rc8b/include/adriver.h:40,
                 from /usr/src/alsa/alsa-driver-0.9.0rc8b/include/sound/driver.h:43,
                 from ../../alsa-kernel/core/ioctl32/pcm32.c:21,
                 from pcm32.c:2:
/lib/modules/2.4.18-14/build/include/linux/modules/ksyms.ver:2889:1: warning: this is 
the location of the previous definition
In file included from /usr/src/alsa/alsa-driver-0.9.0rc8b/include/sound/driver.h:43,
                 from ../../alsa-kernel/core/ioctl32/rawmidi32.c:21,
                 from rawmidi32.c:2:
/usr/src/alsa/alsa-driver-0.9.0rc8b/include/adriver.h:325:1: warning: 
"vmalloc_to_page" redefined

make install

# alsa modules successfully compiled 
# dumps this code at the end
/sbin/depmod -a 2.4.18-14 
if [ -L /usr/include/sound ]; then \
        rm -f /usr/include/sound; \
        ln -sf /usr/src/alsa/alsa-driver-0.9.0rc8b/include/sound /usr/include/sound; \
else \
        rm -rf /usr/include/sound; \
        install -d -m 755 -g root -o root /usr/include/sound; \
        for f in include/sound/*.h; do \
                install -m 644 -g root -o root $f /usr/include/sound; \
        done \
fi
if [ -d /sbin/init.d ]; then \
  install -m 755 -g root -o root utils/alsasound /sbin/init.d/alsasound; \
elif [ -d /etc/rc.d/init.d ]; then \
  install -m 755 -g root -o root utils/alsasound /etc/rc.d/init.d/alsasound; \
elif [ -d /etc/init.d ]; then \
  install -m 755 -g root -o root utils/alsasound /etc/init.d/alsasound; \
fi
cat WARNING

WARNING!!! The mixer channels for the ALSA driver are muted by default!!!
**************************************************************************
You would use some ALSA or OSS mixer to set the appropriate volume.

./snddevices
chmod a+rw /dev/dsp /dev/mixer /dev/sequencer /dev/midi

cd ../alsa-lib-0.9.0rc8c
./configure
make
make install

cd ../alsa-utils-0.9.0rc8a
./configure
make
make install

4.  inserting the modules into the kernel occurred without a problem.
i took out the references to sound in modules.conf before i booted

modprobe snd-via82xx
modprobe snd-pcm-oss
modprobe snd-mixer-oss
modprobe snd-seq-oss

before (during previous installations of alsa) i would use the script 
cat /proc/modules|gawk '/^snd-/{print $1}'|xargs -i rmmod {}
 
and when i inserted the modules it would complain about unresolved modules

5.  arecord and aplay don't work

arecord -d 10 -f cd -t wav test-arecord.wav
Recording WAVE 'test-arecord.wav' : Signed 16 bit Little Endian, Rate 44100 Hz,
Stereo
arecord: pcm_read:1105: read error: Input/output error

aplay op_19_magic_flute_allegretto_fuggite_o_voi_belta_fallace.wav
Playing WAVE 'op_19_magic_flute_allegretto_fuggite_o_voi_belta_fallace.wav' : Signed 
16 bit Little Endian, Rate 44100 Hz, Stereo
aplay: pcm_write:1024: write error: Input/output error

6.  mpg123 constantly repeats 1/2 second of sound.

7. amixer - can't set the Line capture to on, but i can set it to on for Mic

amixer set Mic 100 unmute capture
Simple mixer control 'Mic',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined cswitch cswitch-joined 
cswitch-exclusive
  Capture exclusive group: 0
  Playback channels: Mono
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono: Playback 31 [100%] [on]
  Front Left: Capture [on]
  Front Right: Capture [on]

but 
Simple mixer control 'Line',0
  Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-joined cswitch-exclusive
  Capture exclusive group: 0
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Front Left: Playback 31 [100%] [on] Capture [off]
  Front Right: Playback 31 [100%] [on] Capture [off]

there are no errors in /var/log/messages 

8.  modules.conf
changed modules.conf to
alias parport_lowlevel parport_pc
alias eth0 8139too
alias usb-controller ehci-hcd
options ide-cd dma=1
# alias sound-slot-0 via82cxxx_audio
alias usb-controller1 usb-uhci
alias ieee1394-controller ohci1394
alias char-major-81 bttv

# # ALSA native device support
alias char-major-116 snd
options snd major=116 cards_limit=1
alias snd-card-0 snd-via82xx

# # OSS/Free setup
alias char-major-14 soundcore
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

post-install sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null 2>&1 || :
pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S >/dev/null 2>&1 || :

9.  modules loaded
/sbin/lsmod
Module                  Size  Used by    Not tainted
sr_mod                 18136   0  (autoclean)
snd-pcm-oss            44900   0  (autoclean)
snd-mixer-oss          16408   0  (autoclean) [snd-pcm-oss]
snd-via82xx            15692   0  (autoclean)
snd-pcm                82272   0  (autoclean) [snd-pcm-oss snd-via82xx]
snd-timer              19592   0  (autoclean) [snd-pcm]
snd-page-alloc          8672   0  (autoclean) [snd-via82xx snd-pcm]
snd-ac97-codec         44320   0  (autoclean) [snd-via82xx]
snd-mpu401-uart         4828   0  (autoclean) [snd-via82xx]
snd-rawmidi            18592   0  (autoclean) [snd-mpu401-uart]
snd-seq-device          6284   0  (autoclean) [snd-rawmidi]
snd                    43652   0  (autoclean) [snd-pcm-oss snd-mixer-oss snd-via82xx 
snd-pcm snd-timer snd-ac97-codec snd-mpu401-uart snd-rawmidi snd-seq-device]
soundcore               6500   4  (autoclean) [snd]
binfmt_misc             7524   1
parport_pc             19108   1  (autoclean)
lp                      8996   0  (autoclean)
parport                37152   1  (autoclean) [parport_pc lp]
autofs                 13348   0  (autoclean) (unused)
8139too                17704   1
mii                     2156   0  [8139too]
ipt_REJECT              3736   6  (autoclean)
iptable_filter          2412   1  (autoclean)
ip_tables              14840   2  [ipt_REJECT iptable_filter]
ide-scsi               10512   0
scsi_mod              107176   2  [sr_mod ide-scsi]
ide-cd                 33608   0
cdrom                  33696   0  [sr_mod ide-cd]
ohci1394               20076   0  (unused)
ieee1394               46988   0  [ohci1394]
mousedev                5524   1
keybdev                 2976   0  (unused)
hid                    22244   0  (unused)
input                   5888   0  [mousedev keybdev hid]
usb-uhci               26188   0  (unused)
ehci-hcd               17448   0  (unused)
usbcore                77056   1  [hid usb-uhci ehci-hcd]
ext3                   70400   2
jbd                    52212   2  [ext3]

9. /sbin/lspci
00:00.0 Host bridge: VIA Technologies, Inc.: Unknown device 3116
00:01.0 PCI bridge: VIA Technologies, Inc. VT8633 [Apollo Pro266 AGP]
00:08.0 FireWire (IEEE 1394): Lucent Microelectronics FW323 (rev 05)
00:09.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
00:09.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
00:0b.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ 
(rev 10)
00:10.0 USB Controller: VIA Technologies, Inc. USB (rev 80)
00:10.1 USB Controller: VIA Technologies, Inc. USB (rev 80)
00:10.2 USB Controller: VIA Technologies, Inc. USB (rev 80)
00:10.3 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 82)
00:11.0 ISA bridge: VIA Technologies, Inc. VT8233A ISA Bridge
00:11.1 IDE interface: VIA Technologies, Inc. VT82C586B PIPC Bus Master IDE (rev 06)
00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233 AC97 Audio 
Controller (rev 50)
01:00.0 VGA compatible controller: nVidia Corporation NV17 [GeForce4 MX420] (rev a3)

10. cat /proc/asound/cards
0 [8235           ]: VIA8233 - VIA 8235
                     VIA 8235 at 0xe400, irq 11

11. the documentation in
    http://www.alsa-project.org/~valentyn/Alsa-sound-mini-HOWTO-6.html 
    says that...

You can find installed cards in /proc/asound/cards, then find
information about card0 in /proc/asound/0, /proc/asound/1 for card1
etcetera. 

If cat /proc/asound/card1/pcm0 shows something like

      ES1370 DAC2/ADC
      Playback isn't active.
      Record isn't active.

but i don't have a /proc/asound/card0/pcm0.  i have
/proc/asound/card0/pcm0* where * is c or p

12. ls /dev/snd/
controlC0  pcmC0D0c  pcmC0D0p  pcmC0D1c  pcmC0D1p  timer




-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to