From: Clemens Ladisch <clemens@ladisch.de>
To: Alicia Romero <alromor84@gmail.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: Problem with "set_period_size"
Date: Thu, 23 Feb 2012 15:59:44 +0100 [thread overview]
Message-ID: <4F465460.4020106@ladisch.de> (raw)
In-Reply-To: <CAKjtJDVC2tZi8FLAo4ADZKr1iB5e0sX9t-jjPQF25F+R0NXBog@mail.gmail.com>
Alicia Romero wrote:
> stream->pb_frames = (snd_pcm_uframes_t) 640;
> snd_pcm_hw_params_set_period_size (stream->pb_pcm, params,
> &stream->pb_frames, NULL);
You forgot to check the return value. I'd guess it's -EINVAL.
Regards,
Clemens
next prev parent reply other threads:[~2012-02-23 14:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAKjtJDWJSwoO982Hk5hK44khY5Jw=wMrW3QhrincvJ_iTLDGEg@mail.gmail.com>
2012-02-23 14:06 ` Problem with "set_period_size" Alicia Romero
2012-02-23 14:59 ` Clemens Ladisch [this message]
[not found] ` <CAKjtJDWJMAZA+ekTVmTc0vgg7Jo-3kc4uwSUPCz4KCocM5SRZg@mail.gmail.com>
2012-02-24 13:01 ` Clemens Ladisch
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=4F465460.4020106@ladisch.de \
--to=clemens@ladisch.de \
--cc=alromor84@gmail.com \
--cc=alsa-devel@alsa-project.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox