From alsa-devel-owner@alsa.jcu.cz  Sun Sep  6 19:31:34 1998
Received: from hans.math.upenn.edu (HANS.MATH.UPENN.EDU [130.91.49.156])
	by marvin.jcu.cz (8.8.8/8.8.8) with ESMTP id TAA00298
	for <alsa-devel@alsa.jcu.cz>; Sun, 6 Sep 1998 19:30:42 +0200
Received: from anua (volodya@DIALIN0658.UPENN.EDU [128.91.18.146])
	by hans.math.upenn.edu (8.8.5/8.8.5) with SMTP id NAA22077
	for <alsa-devel@alsa.jcu.cz>; Sun, 6 Sep 1998 13:30:25 -0400 (EDT)
From: Vladimir Dergachev <vladimid@eniac.seas.upenn.edu>
To: alsa-devel@alsa.jcu.cz
Subject: kmix, alsa 0.2.0pre6, kernel 2.1.119
Date: Sun, 6 Sep 1998 13:21:54 -0400
Content-Type: text/plain
MIME-Version: 1.0
Message-Id: <98090613341200.00257@anua>
Content-Transfer-Encoding: 8bit
Reply-To: alsa-devel@alsa.jcu.cz
Sender: alsa-devel-owner@alsa.jcu.cz
Precedence: list

I have installed alsa 0.2.0pre 6 , kmix (version 1.0) and kernel 2.1.119.

When I start kmix the kernel emits an oops and kmix does sigsegv.
After this any attempt to use kmix or any other mixer locks machine solid.

I traced this problem to kmix attempting to read mixer device number 9
here is a portion of  log of strace kmix

....
open("/dev/mixer", O_RDWR)              = 6
ioctl(6, 0x80044dfe, 0x8076af4)         = 0
ioctl(6, 0x80044dfd, 0x8076af8)         = 0
ioctl(6, 0x80044dff, 0x8076afc)         = 0
ioctl(6, 0x80044dfb, 0x8076b00)         = 0
....
ioctl(6, 0x80044d00, 0xbffffac0)        = 0
ioctl(6, 0x80044d01, 0xbffffac0)        = 0
ioctl(6, 0x80044d02, 0xbffffac0)        = 0
ioctl(6, 0x80044d03, 0xbffffac0)        = 0
ioctl(6, 0x80044d04, 0xbffffac0)        = 0
ioctl(6, 0x80044d05, 0xbffffac0)        = 0
ioctl(6, 0x80044d06, 0xbffffac0)        = 0
ioctl(6, 0x80044d07, 0xbffffac0)        = 0
ioctl(6, 0x80044d08, 0xbffffac0)        = 0
ioctl(6, 0x80044d09 <unfinished ...>
+++ killed by SIGSEGV +++

The offensive ioctl is MIXER_READ(9) . I made a temporary workaround by
disabling kmix to work with mixer device higher than 8..

I am not on this list so please Cc: me if you have comments/requests/replies.
I attached information on my computer below.

                            Vladimir Dergachev

PS
anua:/proc/asound# cat cards
0 [card1          ]: SB16 - Sound Blaster 16
                     Sound Blaster 16 at 0x220, irq 5, dma 1&5
anua:/proc/asound# cat /dev/sndstat
Sound Driver:3.8.1a-980706 (ALSA v0.2.0-pre6 emulation code)
Kernel: Linux anua 2.1.119 #1 SMP Tue Sep 1 02:48:29 EDT 1998 i586
Config options: 0

Installed drivers:
Type 10: ALSA emulation

Card config:
Sound Blaster 16 at 0x220, irq 5, dma 1&5

Audio devices: NOT ENABLED IN CONFIG

Synth devices:
0: OPL3 FM

Midi devices:
0: MPU-401 (UART)

Timers:
7: system timer

Mixers:
0: CTL1745
anua:/proc# cat cpuinfo
processor       : 0
cpu family      : 5
model           : K6 (PR166 - PR266)
vendor_id       : AuthenticAMD
stepping        : 1
fdiv_bug        : no
hlt_bug         : no
sep_bug         : no
f00f_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr mce cx8 mmx
bogomips        : 465.31

anua:/proc/sys/kernel# uname -a
Linux anua 2.1.119 #1 SMP Tue Sep 1 02:48:29 EDT 1998 i586 unknown

