[alsa-devel] Playback open error: Inappropriate ioctl for device

John Simpson john at swajime.com
Sun Jul 18 08:13:42 CEST 2010


On 7/13/10, Clemens Ladisch <clemens at 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 at Nokia-N810-43-7|~/alsa-lib-1.0.23/test]cc -lasound control.c -o control
[1|user at 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 at Nokia-N810-43-7|~/alsa-lib-1.0.23/test]cc -lasound pcm.c -o pcm
[1|user at 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 at Nokia-N810-43-7|~/alsa-lib-1.0.23/test]cc -lasound pcm_min.c -o pcm_min
[1|user at 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 :-(


More information about the Alsa-devel mailing list