All of lore.kernel.org
 help / color / mirror / Atom feed
* Playback open error: Inappropriate ioctl for device
@ 2010-07-18  6:13 John Simpson
  2010-07-19 11:07 ` Clemens Ladisch
  0 siblings, 1 reply; 6+ messages in thread
From: John Simpson @ 2010-07-18  6:13 UTC (permalink / raw)
  To: alsa-devel

On 7/13/10, Clemens Ladisch <clemens@ladisch.de> wrote:
> John Simpson wrote:
>  > I've been trying to use the alsa-lib API, but I haven't been able to
>  > get anything to compile.
>  >
>  > ~/alsa/alsa-lib-1.0.22/test$ for f in *.c; do echo; cc $f 2>&1 | head -n2; done
>
> > ...
>  > Did I miss something?
>
>  The makefile.
>
>  If alsa-lib is installed correctly, the only option you need for your
>  own programs is -lasound.
>
>

Ok, now I can compile several of the test programs, but I am still not
able to generate sound.

[1|user@Nokia-N810-43-7|~/alsa-lib-1.0.23/test]cc -lasound control.c -o control
[1|user@Nokia-N810-43-7|~/alsa-lib-1.0.23/test]./control
Soundcard #1:
  card - 0
  id - 'EAC'
  driver - 'EAC'
  name - 'OMAP24xx EAC'
  longname - 'OMAP24xx EAC with codec TLV320AIC33'
  mixername - 'TLV320AIC33'
  components - ''
  PCM next device error: Inappropriate ioctl for device
  RAWMIDI next device error: Inappropriate ioctl for device
[1|user@Nokia-N810-43-7|~/alsa-lib-1.0.23/test]cc -lasound pcm.c -o pcm
[1|user@Nokia-N810-43-7|~/alsa-lib-1.0.23/test]./pcm
Playback device is plughw:0,0
Stream parameters are 44100Hz, S16_LE, 1 channels
Sine wave rate is 440.0000Hz
Using transfer method: write
Playback open error: Inappropriate ioctl for device
[1|user@Nokia-N810-43-7|~/alsa-lib-1.0.23/test]cc -lasound pcm_min.c -o pcm_min
[1|user@Nokia-N810-43-7|~/alsa-lib-1.0.23/test]./pcm_min
Playback open error: Inappropriate ioctl for device

I sure appreciate the help... I'm feeling a bit dense at the oment :-(

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

end of thread, other threads:[~2010-08-03 20:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-18  6:13 Playback open error: Inappropriate ioctl for device John Simpson
2010-07-19 11:07 ` Clemens Ladisch
2010-07-19 17:16   ` John Simpson
2010-07-19 23:37     ` John Simpson
2010-07-21  5:17       ` John Simpson
2010-08-03 20:06         ` John Simpson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.