From: Timur Tabi <timur@freescale.com>
To: ALSA development <alsa-devel@alsa-project.org>
Subject: Is params_format() valid in the _hw_params() function?
Date: Tue, 15 Jul 2008 17:08:10 -0500 [thread overview]
Message-ID: <487D1FCA.9030605@freescale.com> (raw)
My ASoC driver programs the sample size in the _prepare() callback function,
because I was under the impression that the sample size cannot be known in the
_hw_params() callback function. However, I just ran a test, and it appears that
the params_format() macro does return the right value. Once I know the format,
I can determine the same size.
Is this always true, even in OSS emulation? I know very little about ALSA and
OSS application programming, so I don't know what causes _hw_params() to be
called vs. _prepare(). If it turns out that params_format() does work in
_hw_params(), I can greatly simplify my driver.
--
Timur Tabi
Linux kernel developer at Freescale
next reply other threads:[~2008-07-15 22:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-15 22:08 Timur Tabi [this message]
2008-07-16 8:40 ` Is params_format() valid in the _hw_params() function? 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=487D1FCA.9030605@freescale.com \
--to=timur@freescale.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 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.