* hw/sw params API in alsa-lib miscompiled, result: unusable alsa-utils
@ 2017-03-20 14:19 Deweloper
2017-03-21 8:10 ` Clemens Ladisch
0 siblings, 1 reply; 3+ messages in thread
From: Deweloper @ 2017-03-20 14:19 UTC (permalink / raw)
To: alsa-devel
Hi,
I built alsa-lib and alsa-utils (v.1.1.3) from sources, using GCC 6.
When I tried launching arecord, it failed due to lack of memory.
During analysis I found out that:
- the message is printed because realloc(buf, period_size) returns NULL
- realloc() returns NULL because period_size is 0
- period_size is 0 because snd_pcm_hw_params_get_period_size() puts 0
to *frames (instead of 32768) and returns 32768 (instead of 0)
- snd_pcm_hw_params_get_period_size() misbehaves in this way because
although a NEW API header is used, the OLD API implementation is
actually called
So it seems that I've run into exactly the same problem which was
described by John Spencer in August 2013:
http://mailman.alsa-project.org/pipermail/alsa-devel/2013-August/065031.html
> my problem is that the old version is getting called instead of the
> new one
Did anything change in this matter since August, 2013?
--
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: hw/sw params API in alsa-lib miscompiled, result: unusable alsa-utils
2017-03-20 14:19 hw/sw params API in alsa-lib miscompiled, result: unusable alsa-utils Deweloper
@ 2017-03-21 8:10 ` Clemens Ladisch
2017-03-21 16:33 ` Deweloper
0 siblings, 1 reply; 3+ messages in thread
From: Clemens Ladisch @ 2017-03-21 8:10 UTC (permalink / raw)
To: alsa-devel
Deweloper wrote:
> I built alsa-lib
How?
Regards,
Clemens
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: hw/sw params API in alsa-lib miscompiled, result: unusable alsa-utils
2017-03-21 8:10 ` Clemens Ladisch
@ 2017-03-21 16:33 ` Deweloper
0 siblings, 0 replies; 3+ messages in thread
From: Deweloper @ 2017-03-21 16:33 UTC (permalink / raw)
To: alsa-devel
On Tue, 21 Mar 2017 09:10:09 +0100
Clemens Ladisch <clemens@ladisch.de> wrote:
> Deweloper wrote:
> > I built alsa-lib
>
> How?
>
./configure --host=i586-buildroot-linux-uclibc \
--prefix=/usr --disable-static --enable-shared \
--disable-aload --disable-topology --disable-thread-safety \
--disable-rawmidi --disable-hwdep --disable-seq --disable-ucm \
--disable-alisp --disable-old-symbols --disable-python \
--with-max-cards=8 --with-pcm-plugins= --with-ctl-plugins=
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-03-21 16:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-20 14:19 hw/sw params API in alsa-lib miscompiled, result: unusable alsa-utils Deweloper
2017-03-21 8:10 ` Clemens Ladisch
2017-03-21 16:33 ` Deweloper
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).