From: Uli Franke <uli.franke@weiss.ch>
To: Clemens Ladisch <clemens@ladisch.de>,
"alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>
Subject: Re: Test device for automated testing
Date: Thu, 17 Sep 2015 10:09:32 +0200 [thread overview]
Message-ID: <55FA753C.5050002@weiss.ch> (raw)
In-Reply-To: <55F97CFD.9080608@ladisch.de>
On 16.09.2015 16:30, Clemens Ladisch wrote:
> Uli Franke wrote:
>> I tried the "null" but this fails when setting hw parameters with an
>> assertion.
>
> In theory, the null device does not have any restrictions. But an
> assertion indicates a programming error (somewhere). What is the
> message, and what are the hw parameters?
The assertion fails with
pcm_params.c:2360: _snd_pcm_hw_params_internal: Assertion `err >= 0' failed.
There's only a single result on google [1] which discusses this
assertion but the thread doesn't result in any meaningful conclusion.
I assembled a small test program which causes this very assertion to fail.
#include <alsa/asoundlib.h>
int main ()
{
snd_pcm_hw_params_t *params;
snd_pcm_t *pcm;
snd_pcm_open(&pcm, "null", SND_PCM_STREAM_PLAYBACK, 0);
snd_pcm_hw_params_malloc(¶ms);
snd_pcm_hw_params_any(pcm, params);
snd_pcm_hw_params(pcm, params);
return 0;
}
I appended some system specs [2] (in case you should need more, just let
me know).
Regards
Uli
____
[1] http://sourceforge.net/p/cmus/mailman/message/32707782/
[2] System specs:
uli@ankerklause:~/.../dlna/wdmr$ uname -a
Linux ankerklause 3.16.0-46-generic #62~14.04.1-Ubuntu SMP Tue Aug 11
16:28:19 UTC 2015 i686 i686 i686 GNU/Linux
uli@ankerklause:~/.../dlna/wdmr$ aptitude show libasound2
Package: libasound2
State: installed
Automatically installed: yes
Multi-Arch: same
Version: 1.0.27.2-3ubuntu7
Priority: optional
Section: libs
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: i386
Uncompressed Size: 1'208 k
Depends: libc6 (>= 2.16), libasound2-data (>= 1.0.27.2-3ubuntu7)
PreDepends: multiarch-support
Suggests: libasound2-plugins (>= 1.0.24)
Breaks: bluez-alsa (<= 4.94-2), libasound2-plugin-equal (<= 0.6-1),
libasound2-plugins (< 1.0.24)
Provided by: liboss4-salsa-asound2
Description: shared library for ALSA applications
This package contains the ALSA library and its standard plugins, as well
as the required configuration files.
ALSA is the Advanced Linux Sound Architecture.
Homepage: http://www.alsa-project.org/
prev parent reply other threads:[~2015-09-17 8:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-16 12:32 Test device for automated testing Uli Franke
2015-09-16 12:59 ` Clemens Ladisch
2015-09-16 13:15 ` Uli Franke
2015-09-16 14:30 ` Clemens Ladisch
2015-09-17 8:09 ` Uli Franke [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55FA753C.5050002@weiss.ch \
--to=uli.franke@weiss.ch \
--cc=alsa-devel@alsa-project.org \
--cc=clemens@ladisch.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.