[linux-audio-dev] ioctl() call fails. (fwd)

Brad Arant barant at barant.com
Thu Jul 10 12:32:01 UTC 2003


In brief - ioctl calls are the way the UNIX/Linux environment can configure
devices. The software you are using is attempting to manipulate the sound
card device but the driver does not support it.

This particular ioctl request (SNDCTL_DSP_GETODELAY) is not widely
implemented on older sound card drivers.



-----Original Message-----
From: linux-audio-dev-admin at music.columbia.edu
[mailto:linux-audio-dev-admin at music.columbia.edu]On Behalf Of
Doru-Catalin Togea
Sent: Wednesday, July 09, 2003 11:29 PM
To: linux-audio-dev at music.columbia.edu
Subject: [linux-audio-dev] ioctl() call fails. (fwd)


Hi!

I posted the following on the comp.os.linux.development.apps newsgroup,
but I believe that maybe this forum is even more appropriate for the
questions I have. (I would have cross-posted if I knew how to cross-post
between a news-group and an e-mail based disscussion group. I am using
PINE).

---------- Forwarded message ----------
Date: Thu, 10 Jul 2003 08:25:00 +0200
From: Doru-Catalin Togea <doru-cat at ifi.uio.no>
Newsgroups: comp.os.linux.development.apps
Subject: ioctl() call fails.

Hi!

I am running RedHat 9.0 on a Toshiba Sattelite. It has a Yamaha
sound-card which has been identified by the sound-card configuration
programme to be a "YMF-745 [DS-1E Audio Controller]" card, and the
"ymfpci" module is used for it.

I can test-play the sound in the sound-card configuration programme, I can
play music CD's with the CD-Player application shipped with RedHat 9.0 and
I can play mp3s with xmms (after installing its mp3 support). So I guess
my sound-card is pretty much up and running.

I am using my PC for some research work involving multimedia (I am working
on my master's thesis). I have compiled a set of tools implementing an
adaptive video streaming protocol, (the Quasar Pipeline, available from
http://ogiworks.org/quasar/) but when playing back video with sound
enabled the application crashes with the following message:

** ERROR **: SNDCTL_DSP_GETODELAY: Inappropriate ioctl for device
aborting...
Aborted

I can playback the video with sound disabled. I also had the same problem
with Redhat 7.3, so I guess the cause of the problem is my sound-card.

Can anyone tell me what the ioctl() does? I read the man page but it is
scarce. The author of the software I have installed tells me that the call
is issued in order to synchronize video and audio playback.

I guess some of you have quite some programming experience, so I wonder
what do your guts tell you about this situation? Do you think that if I
could track down the place(s) where the call(s) is/are made I could then
adjust the calls so that my sound-card will understand the call(s)? Or is
my card so old that it does not support the ioctl() call at all?

Thanks if anyone can help,
Catalin


--

	<<<< ================================== >>>>
	<<     We are what we repeatedly do.      >>
	<<  Excellence, therefore, is not an act  >>
	<<             but a habit.               >>
	<<<< ================================== >>>>




More information about the Linux-audio-dev mailing list