From: Clemens Ladisch <clemens@ladisch.de>
To: alsa-devel@alsa-project.org
Subject: Re: [PATCH 2/2] Improve hw_params documentation
Date: Thu, 17 Nov 2011 14:27:51 +0100 [thread overview]
Message-ID: <4EC50BD7.1050703@ladisch.de> (raw)
In-Reply-To: <CAN8cciYAvUuBScTDTVsuBVaUwvisizgX8TKtyrH9faS5J9090w@mail.gmail.com>
Raymond Yau wrote:
> The logic of your program is wrong since your program did not set
> channel, rate and format
It is allowed to not set some parameters; snd_pcm_hw_params() then
chooses some random values for them.
> The buffer and period calculation is only valid after you have choose
> the format and channels
This is wrong; parameters can be set in any order.
(As long as format/channels are not yet set, the exact relationship
between frames and bytes is not yet known, but this is handled by
the parameters being intervals.)
Regards,
Clemens
next prev parent reply other threads:[~2011-11-17 13:27 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-16 19:56 [PATCH 2/2] Improve hw_params documentation Andrew Eikum
2011-11-16 21:20 ` Clemens Ladisch
2011-11-16 21:31 ` Andrew Eikum
2011-11-16 22:08 ` Clemens Ladisch
2011-11-17 14:02 ` Andrew Eikum
2011-11-21 22:31 ` Raymond Yau
2011-11-22 13:41 ` Andrew Eikum
2011-11-22 23:57 ` Raymond Yau
2011-11-17 0:45 ` Raymond Yau
2011-11-17 13:27 ` Clemens Ladisch [this message]
2011-11-19 1:28 ` Raymond Yau
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=4EC50BD7.1050703@ladisch.de \
--to=clemens@ladisch.de \
--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 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.