Running 32 bit apps under 64 bit kernel
I have AMD64 machine running 64 bit 2.6.9-rc3 kernel. 64 bit sound apps run fine, but 32 bit apps do not:
$ aplay file.wav aplay: main:508: audio open error: Invalid argument
And I find in my syslog:
ioctl32(aplay:1080): Unknown cmd fd(3) cmd(80045500){00} arg(ffffd77c) on /dev/snd/controlC0
A strace segment:
open("/dev/snd/controlC0", O_RDONLY) = 3
close(3) = 0
open("/dev/snd/controlC0", O_RDWR) = 3
ioctl(3, USBDEVFS_CONTROL, 0xffffd76c) = -1 EINVAL (Invalid argument)
close(3) = 0write(2, "aplay: main:508: ", 17aplay: main:508: ) = 17write(2, "audio open error: Invalid argume"..., 34audio open error: Invalid argument) = 34
The same segment with 64 bit aplay binary:
open("/dev/snd/controlC0", O_RDONLY) = 3
close(3) = 0
open("/dev/snd/controlC0", O_RDWR) = 3
ioctl(3, USBDEVFS_CONTROL, 0x7fbffff41c) = 0
ioctl(3, 0x40045532, 0x7fbffff464) = 0
open("/dev/snd/pcmC0D0p", O_RDWR) = 4
close(3) = 0Signature · 8 lines
Koef. ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl
At Tue, 12 Oct 2004 16:56:57 +0200,
Quoted 6 lines · Koef
I have AMD64 machine running 64 bit 2.6.9-rc3 kernel. 64 bit sound apps run fine, but 32 bit apps do not:
$ aplay file.wav aplay: main:508: audio open error: Invalid argument
Did you snd-ioctl32?
Takashi
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
Quoted 6 lines · Takashi Iwai
Quoted 3 lines · Koef
I have AMD64 machine running 64 bit 2.6.9-rc3 kernel. 64 bit sound apps run fine, but 32 bit apps do not:
Did you snd-ioctl32?
Ah! So that's the magic word. I apologize for not finding this in the documentation ;-) All is well now.
Thanks, Koef.
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl