mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [sparc] Weird ioctl() bug in 2.2.19 (fwd)
@ 2001-10-31 10:41 Alex Buell
  2001-10-31 17:29 ` David S. Miller
  0 siblings, 1 reply; 11+ messages in thread
From: Alex Buell @ 2001-10-31 10:41 UTC (permalink / raw)
  To: Mailing List - Linux Kernel

Right now I'm looking into why SNDCTL_DSP_SETFMT is failing on 2.2.19
sparc. I've been trying to get ESD to work on my SS20 box so I can play
music.

The situation is that the ioctl() is failing with -EINVAL for a perfectly
valid argument.

Here's the strace output from running ESD (snipped for brevity)

open("/dev/dsp", O_WRONLY)              = 3
ioctl(3, 0x6004500a, 0xefffe944)        = 0
write(1, "DEBUG: 60045005\n", 16DEBUG: 60045005)       = 16
write(1, "DEBUG: 00000010\n", 16DEBUG: 00000010)       = 16
ioctl(3, 0x60045005, 0xefffe944)        = -1 EINVAL (Invalid argument)

The debug statements I put in ESD shows the right argument with the right
value is being passed by the ioctl() call. 0x00000010 is AFTM_S16_BE, by
the way.

I've had a look at audio.c in /drivers/sbus/audio (lines 1046 to 1144),
and everything looks correct, down to the parameters, so why is it
returning -EINVAL?

Weird. Any ideas?

-- 
Top posters will be automatically killfiled.

http://www.tahallah.demon.co.uk


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2001-11-01 19:29 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-31 10:41 [sparc] Weird ioctl() bug in 2.2.19 (fwd) Alex Buell
2001-10-31 17:29 ` David S. Miller
2001-10-31 18:28   ` Alex Buell
2001-10-31 18:32   ` David S. Miller
2001-10-31 20:00     ` Alex Buell
2001-11-01  3:52     ` Paul Mackerras
2001-11-01 13:19       ` Alex Buell
2001-11-01 16:00         ` Peter Jones
2001-11-01 16:21           ` Alex Buell
2001-11-01 16:27             ` Peter Jones
2001-11-01 19:28               ` Alex Buell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®