v2.2.4: /dev/dsp corrupted?

Meino Christian Cramer (root@solfire.ludwigsburg.netsurf.de)
Wed, 24 Mar 1999 20:27:48 GMT


Hi!

On 2.2.3. I used the alsa-driver suite for sound. No problems:
Configure, compile install in one go.

Same on 2.2.4.

Until I called a FAX decoder software for HAMs, which runs fine under
2.2.3 with alsa.

I recompiled the alsa stuff for 2.2.4.
A strace of a call of the fax decoder program (acfax) show the follwing:

open("/dev/dsp", O_RDWR) = 6 <<<<< !!!
open("/dev/mixer", O_RDWR) = 7
ioctl(7, SOUND_MIXER_WRITE_LINE, 0xbfffed20) = 0
ioctl(7, SOUND_MIXER_WRITE_VOLUME, 0xbfffed1c) = 0
ioctl(7, SOUND_MIXER_WRITE_RECSRC, 0xbfffed18) = 0
close(7) = 0
ioctl(6, SNDCTL_DSP_SPEED, 0xbfffed14) = 0
ioctl(6, SNDCTL_DSP_SETFMT, 0xbfffed10) = 0
ioctl(6, SNDCTL_DSP_STEREO, 0xbfffed0c) = 0
ioctl(6, SNDCTL_DSP_GETBLKSIZE, 0x80586d4) = 0
write(2, "selecting middle filter\n", 24) = 24
fstat(1, {st_dev=makedev(8, 21), st_ino=162678, st_mode=S_IFCHR|0622, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=0,
st_rdev=makedev(3, 1), st_atime=99/03/24-20:01:00, st_mtime=99/03/24-20:01:03, st_ctime=99/03/24-19:57:29}) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40008000
ioctl(1, TCGETS, {c_iflags=0x2506, c_oflags=0x5, c_cflags=0xbf, c_lflags=0x8a3b, c_line=64, c_cc="\x03\x1c\x7f\x15\x04\x00\x01\x00\
x11\x13\x1a\x00\x12\x0f\x17\x16\x00\x05\x08"}) = 0
write(1, "block size is 1024 bytes\n", 25) = 25
ioctl(6, SNDCTL_DSP_SPEED, 0xbfffecfc) = 0
write(2, "speed set to 8000\n", 18) = 18
ioctl(6, SNDCTL_DSP_SYNC, 0) = 0
ioctl(6, SNDCTL_DSP_SPEED, 0xbfffed1c) = 0
write(2, "speed set to 8000\n", 18) = 18
ioctl(6, SNDCTL_DSP_SYNC, 0) = 0
write(1, "redrawing from 0, 0, corepos = 0"..., 33) = 33
write(2, "dspxid from XtAppAddInput is 134"..., 39) = 39
read(6, 0x8098d70, 1024) = -1 EIO (I/O error) <<<< !!!!
stat("/etc/locale/C/libc.cat", 0xbfffe8d8) = -1 ENOENT (No such file or directory)
stat("/usr/share/locale/C/libc.cat", 0xbfffe8d8) = -1 ENOENT (No such file or directory)
stat("/usr/share/locale/libc/C", 0xbfffe8d8) = -1 ENOENT (No such file or directory)
stat("/usr/share/locale/C/libc.cat", 0xbfffe8d8) = -1 ENOENT (No such file or directory)
stat("/usr/local/share/locale/C/libc.cat", 0xbfffe8d8) = -1 ENOENT (No such file or directory)
write(2, "do_receive: I/O error\n", 22) = 22
_exit(1)

For me it looks like some problems concerning /dev/dsp,
cause the software (acfax and the alsadriver) run well under 2.2.3 and do
recompile under 2.2.4 without problems, but get one when executed.

Any comments?

KEEP HACKING!

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/