* 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
* Re: Playback open error: Inappropriate ioctl for device
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
0 siblings, 1 reply; 6+ messages in thread
From: Clemens Ladisch @ 2010-07-19 11:07 UTC (permalink / raw)
To: john; +Cc: alsa-devel
John Simpson wrote:
> [1|user@Nokia-N810-43-7|~/alsa-lib-1.0.23/test]cc -lasound control.c -o control
These test programs can be compiled with "make check".
> [1|user@Nokia-N810-43-7|~/alsa-lib-1.0.23/test]./control
> PCM next device error: Inappropriate ioctl for device
On embedded devices, this usually happens when the library is not
compiled with the same machine architecture options as the kernel,
which makes some structures have a different size due to different
sizes for 'long' or different alignment.
Regards,
Clemens
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Playback open error: Inappropriate ioctl for device
2010-07-19 11:07 ` Clemens Ladisch
@ 2010-07-19 17:16 ` John Simpson
2010-07-19 23:37 ` John Simpson
0 siblings, 1 reply; 6+ messages in thread
From: John Simpson @ 2010-07-19 17:16 UTC (permalink / raw)
To: alsa-devel
On 7/19/10, Clemens Ladisch <clemens@ladisch.de> wrote:
> John Simpson wrote:
>> [1|user@Nokia-N810-43-7|~/alsa-lib-1.0.23/test]cc -lasound control.c -o
>> control
>
> These test programs can be compiled with "make check".
Thanks! I needed that :-D
Works good on my ubuntu system.
>
>> [1|user@Nokia-N810-43-7|~/alsa-lib-1.0.23/test]./control
>> PCM next device error: Inappropriate ioctl for device
>
> On embedded devices, this usually happens when the library is not
> compiled with the same machine architecture options as the kernel,
> which makes some structures have a different size due to different
> sizes for 'long' or different alignment.
Somewhere in the mess, I bricked my n810.
I'm trying this time with
https://garage.maemo.org/plugins/scmsvn/viewcvs.php/trunk/alsa-lib/test/?root=dsp-alsa
but I'm still having no success ( see inquiry at
https://garage.maemo.org/pipermail/dsp-alsa-user/2010-July/000002.html
)
j
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Playback open error: Inappropriate ioctl for device
2010-07-19 17:16 ` John Simpson
@ 2010-07-19 23:37 ` John Simpson
2010-07-21 5:17 ` John Simpson
0 siblings, 1 reply; 6+ messages in thread
From: John Simpson @ 2010-07-19 23:37 UTC (permalink / raw)
To: alsa-devel
On 7/19/10, John Simpson <john@swajime.com> wrote:
> On 7/19/10, Clemens Ladisch <clemens@ladisch.de> wrote:
>> John Simpson wrote:
>>> [1|user@Nokia-N810-43-7|~/alsa-lib-1.0.23/test]cc -lasound control.c -o
>>> control
>>
>> These test programs can be compiled with "make check".
>
> Thanks! I needed that :-D
> Works good on my ubuntu system.
>
>>
>>> [1|user@Nokia-N810-43-7|~/alsa-lib-1.0.23/test]./control
>>> PCM next device error: Inappropriate ioctl for device
>>
>> On embedded devices, this usually happens when the library is not
>> compiled with the same machine architecture options as the kernel,
>> which makes some structures have a different size due to different
>> sizes for 'long' or different alignment.
>
> Somewhere in the mess, I bricked my n810.
> I'm trying this time with
> https://garage.maemo.org/plugins/scmsvn/viewcvs.php/trunk/alsa-lib/test/?root=dsp-alsa
> but I'm still having no success ( see inquiry at
> https://garage.maemo.org/pipermail/dsp-alsa-user/2010-July/000002.html
> )
>
Still no luck.
I went through the complete process again with 1.0.25. It bricks my n810. :-(
I logged the install process at http://www.swajime.com/n810/alsa-lib.log
I don't see anything that I've done wrong ?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Playback open error: Inappropriate ioctl for device
2010-07-19 23:37 ` John Simpson
@ 2010-07-21 5:17 ` John Simpson
2010-08-03 20:06 ` John Simpson
0 siblings, 1 reply; 6+ messages in thread
From: John Simpson @ 2010-07-21 5:17 UTC (permalink / raw)
To: alsa-devel
On 7/19/10, John Simpson <john@swajime.com> wrote:
> On 7/19/10, John Simpson <john@swajime.com> wrote:
>> On 7/19/10, Clemens Ladisch <clemens@ladisch.de> wrote:
>>> John Simpson wrote:
>>>> [1|user@Nokia-N810-43-7|~/alsa-lib-1.0.23/test]cc -lasound control.c -o
>>>> control
>>>
>>> These test programs can be compiled with "make check".
>>
>> Thanks! I needed that :-D
>> Works good on my ubuntu system.
>>
>>>
>>>> [1|user@Nokia-N810-43-7|~/alsa-lib-1.0.23/test]./control
>>>> PCM next device error: Inappropriate ioctl for device
>>>
>>> On embedded devices, this usually happens when the library is not
>>> compiled with the same machine architecture options as the kernel,
>>> which makes some structures have a different size due to different
>>> sizes for 'long' or different alignment.
>>
>> Somewhere in the mess, I bricked my n810.
>> I'm trying this time with
>> https://garage.maemo.org/plugins/scmsvn/viewcvs.php/trunk/alsa-lib/test/?root=dsp-alsa
>> but I'm still having no success ( see inquiry at
>> https://garage.maemo.org/pipermail/dsp-alsa-user/2010-July/000002.html
>> )
>>
>
>
> Still no luck.
> I went through the complete process again with 1.0.25. It bricks my n810.
> :-(
> I logged the install process at http://www.swajime.com/n810/alsa-lib.log
>
> I don't see anything that I've done wrong ?
>
I think I'm getting closer.
I believe I've found the right version of the alsa-lib for the n810 (
finally :-| ).
However I am still getting the ioctl error instead of sound. :-(
The short version:
[1|user@Nokia-N810-43-7|~/src]apt-get source libasound2
[1|user@Nokia-N810-43-7|~/src/alsa-lib-1.0.14sa]./configure
[1|user@Nokia-N810-43-7|~/src/alsa-lib-1.0.14sa]make
[1|user@Nokia-N810-43-7|~/src/alsa-lib-1.0.14sa]sudo make install
[1|user@Nokia-N810-43-7|~/src/alsa-lib-1.0.14sa]make check
[1|user@Nokia-N810-43-7|~/src/alsa-lib-1.0.14sa]ls
acinclude.m4 ChangeLog config.sub debian include
ltconfig Makefile.in NOTES utils
aclocal.m4 config.guess configure depcomp INSTALL
ltmain.sh MEMORY-LEAK src version
alsalisp config.log configure.in doc install-sh
Makefile missing test
aserver config.status COPYING hgcompile libtool
Makefile.am modules TODO
[1|user@Nokia-N810-43-7|~/src/alsa-lib-1.0.14sa]cd test
[1|user@Nokia-N810-43-7|~/src/alsa-lib-1.0.14sa/test]ls
control Makefile midiloop oldapi pcm_min.c queue_timer
seq timer.c
control.c Makefile.am midiloop.c oldapi.c pcm_min.o
queue_timer.c seq.c timer.o
control.o Makefile.in midiloop.o oldapi.o pcm.o
queue_timer.o seq-decoder.c
latency midifile.3 namehint pcm playmidi1 rawmidi seq.o
latency.c midifile.c namehint.c pcm.c playmidi1.c rawmidi.c
seq-sender.c
latency.o midifile.h namehint.o pcm_min playmidi1.o rawmidi.o timer
[1|user@Nokia-N810-43-7|~/src/alsa-lib-1.0.14sa/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|~/src/alsa-lib-1.0.14sa/test]./pcm_min
Playback open error: Inappropriate ioctl for device
[1|user@Nokia-N810-43-7|~/src/alsa-lib-1.0.14sa/test]cat
../../alsa-lib_1.0.14sa-2maemo2.dsc
Format: 1.0
Source: alsa-lib
Version: 1.0.14sa-2maemo2
Binary: lib32asound2-dev, lib64asound2, lib32asound2, libasound2-dev,
libasound2, libasound2-doc, libasound2-dbg, lib64asound2-dev
Maintainer: Debian ALSA Maintainers <pkg-alsa-devel@lists.alioth.debian.org>
Architecture: any
Standards-Version: 3.7.2
Build-Depends: debhelper (>= 4.2.32), quilt (>= 0.40), autotools-dev,
doxygen, libc6-dev-powerpc [ppc64], libc6-dev-i386 [amd64],
libc6-dev-ppc64 [powerpc], libc6-dev-s390x [s390], libc6-dev-sparc64
[sparc], lib32gcc1 [amd64 ppc64], libc6-dev (>= 2.5) [armel]
Vcs-Browser: http://svn.debian.org/wsvn/pkg-alsa/trunk/alsa-lib/
Uploaders: Jordi Mallach <jordi@debian.org>, Mikael Magnusson
<mikma@users.sourceforge.net>, Elimar Riesebieter <riesebie@lxtec.de>,
Marc-Andre Lureau <marc-andre.lureau@nokia.com>
Vcs-Svn: svn://svn.debian.org/pkg-alsa/trunk/alsa-lib
Files:
5542a18a1479e4de4b9890e30e94588e 1099165 alsa-lib_1.0.14sa.orig.tar.gz
fc02aa3dbf2f66fb090e02ada703cc1d 47455 alsa-lib_1.0.14sa-2maemo2.diff.gz
I logged the complete install process at
http://www.swajime.com/n810/alsa-lib_1.0.14sa-2maemo2.log
Again ... any help will be appreciated.
--
John Wesley Simpson
SwaJime's Cove℠
www.swajime.com
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Playback open error: Inappropriate ioctl for device
2010-07-21 5:17 ` John Simpson
@ 2010-08-03 20:06 ` John Simpson
0 siblings, 0 replies; 6+ messages in thread
From: John Simpson @ 2010-08-03 20:06 UTC (permalink / raw)
To: alsa-devel
On Wed, Jul 21, 2010 at 12:17 AM, John Simpson <john@swajime.com> wrote:
> On 7/19/10, John Simpson <john@swajime.com> wrote:
>> On 7/19/10, John Simpson <john@swajime.com> wrote:
>>> On 7/19/10, Clemens Ladisch <clemens@ladisch.de> wrote:
>>>> John Simpson wrote:
>>>>> [1|user@Nokia-N810-43-7|~/alsa-lib-1.0.23/test]cc -lasound control.c -o
>>>>> control
>>>>
>>>> These test programs can be compiled with "make check".
>>>
>>> Thanks! I needed that :-D
>>> Works good on my ubuntu system.
>>>
>>>>
>>>>> [1|user@Nokia-N810-43-7|~/alsa-lib-1.0.23/test]./control
>>>>> PCM next device error: Inappropriate ioctl for device
>>>>
>>>> On embedded devices, this usually happens when the library is not
>>>> compiled with the same machine architecture options as the kernel,
>>>> which makes some structures have a different size due to different
>>>> sizes for 'long' or different alignment.
>>>
>>> Somewhere in the mess, I bricked my n810.
>>> I'm trying this time with
>>> https://garage.maemo.org/plugins/scmsvn/viewcvs.php/trunk/alsa-lib/test/?root=dsp-alsa
>>> but I'm still having no success ( see inquiry at
>>> https://garage.maemo.org/pipermail/dsp-alsa-user/2010-July/000002.html
>>> )
>>>
>>
>>
>> Still no luck.
>> I went through the complete process again with 1.0.25. It bricks my n810.
>> :-(
>> I logged the install process at http://www.swajime.com/n810/alsa-lib.log
>>
>> I don't see anything that I've done wrong ?
>>
>
> I think I'm getting closer.
> I believe I've found the right version of the alsa-lib for the n810 (
> finally :-| ).
> However I am still getting the ioctl error instead of sound. :-(
>
> The short version:
> [1|user@Nokia-N810-43-7|~/src]apt-get source libasound2
> [1|user@Nokia-N810-43-7|~/src/alsa-lib-1.0.14sa]./configure
> [1|user@Nokia-N810-43-7|~/src/alsa-lib-1.0.14sa]make
> [1|user@Nokia-N810-43-7|~/src/alsa-lib-1.0.14sa]sudo make install
> [1|user@Nokia-N810-43-7|~/src/alsa-lib-1.0.14sa]make check
> [1|user@Nokia-N810-43-7|~/src/alsa-lib-1.0.14sa]ls
> acinclude.m4 ChangeLog config.sub debian include
> ltconfig Makefile.in NOTES utils
> aclocal.m4 config.guess configure depcomp INSTALL
> ltmain.sh MEMORY-LEAK src version
> alsalisp config.log configure.in doc install-sh
> Makefile missing test
> aserver config.status COPYING hgcompile libtool
> Makefile.am modules TODO
>
> [1|user@Nokia-N810-43-7|~/src/alsa-lib-1.0.14sa]cd test
>
> [1|user@Nokia-N810-43-7|~/src/alsa-lib-1.0.14sa/test]ls
> control Makefile midiloop oldapi pcm_min.c queue_timer
> seq timer.c
> control.c Makefile.am midiloop.c oldapi.c pcm_min.o
> queue_timer.c seq.c timer.o
> control.o Makefile.in midiloop.o oldapi.o pcm.o
> queue_timer.o seq-decoder.c
> latency midifile.3 namehint pcm playmidi1 rawmidi seq.o
> latency.c midifile.c namehint.c pcm.c playmidi1.c rawmidi.c
> seq-sender.c
> latency.o midifile.h namehint.o pcm_min playmidi1.o rawmidi.o timer
>
> [1|user@Nokia-N810-43-7|~/src/alsa-lib-1.0.14sa/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|~/src/alsa-lib-1.0.14sa/test]./pcm_min
> Playback open error: Inappropriate ioctl for device
>
> [1|user@Nokia-N810-43-7|~/src/alsa-lib-1.0.14sa/test]cat
> ../../alsa-lib_1.0.14sa-2maemo2.dsc
> Format: 1.0
> Source: alsa-lib
> Version: 1.0.14sa-2maemo2
> Binary: lib32asound2-dev, lib64asound2, lib32asound2, libasound2-dev,
> libasound2, libasound2-doc, libasound2-dbg, lib64asound2-dev
> Maintainer: Debian ALSA Maintainers <pkg-alsa-devel@lists.alioth.debian.org>
> Architecture: any
> Standards-Version: 3.7.2
> Build-Depends: debhelper (>= 4.2.32), quilt (>= 0.40), autotools-dev,
> doxygen, libc6-dev-powerpc [ppc64], libc6-dev-i386 [amd64],
> libc6-dev-ppc64 [powerpc], libc6-dev-s390x [s390], libc6-dev-sparc64
> [sparc], lib32gcc1 [amd64 ppc64], libc6-dev (>= 2.5) [armel]
> Vcs-Browser: http://svn.debian.org/wsvn/pkg-alsa/trunk/alsa-lib/
> Uploaders: Jordi Mallach <jordi@debian.org>, Mikael Magnusson
> <mikma@users.sourceforge.net>, Elimar Riesebieter <riesebie@lxtec.de>,
> Marc-Andre Lureau <marc-andre.lureau@nokia.com>
> Vcs-Svn: svn://svn.debian.org/pkg-alsa/trunk/alsa-lib
> Files:
> 5542a18a1479e4de4b9890e30e94588e 1099165 alsa-lib_1.0.14sa.orig.tar.gz
> fc02aa3dbf2f66fb090e02ada703cc1d 47455 alsa-lib_1.0.14sa-2maemo2.diff.gz
>
>
> I logged the complete install process at
> http://www.swajime.com/n810/alsa-lib_1.0.14sa-2maemo2.log
>
> Again ... any help will be appreciated.
>
After setting up these packages in my jaunty chroot ( from
http://talk.maemo.org/showthread.php?t=27735 ), and much thrashing
(log lost), I managed to get pcm.c working both in jaunty and in
diablo:
libpci3 (1:3.0.0-4ubuntu8) ...
lsof (4.78.dfsg.1-4) ...
pciutils (1:3.0.0-4ubuntu8) ...
linux-sound-base (1.0.18.dfsg-1ubuntu8) ...
alsa-base (1.0.18.dfsg-1ubuntu8) ...
alsa-utils (1.0.18-1ubuntu11) ...
I'm not exactly sure if that's what fixed it or if it was something I
did via diablo.
So ... based on this new evidence, I don't think it's the kernel or the driver.
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
^ 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.