From: Timur Tabi <timur@freescale.com>
To: alsa-devel@alsa-project.org
Subject: params_buffer_size() and params_period_bytes() are returning the same value
Date: Wed, 14 Nov 2007 15:53:33 -0600 [thread overview]
Message-ID: <473B6E5D.3040303@freescale.com> (raw)
I have an ASOC v1 driver that I'm wrapping up. I've noticed something weird in
my hw_params() function. I have this code:
size_t buffer_size = params_buffer_size(hw_params);
size_t period_size = params_period_bytes(hw_params);
printk(KERN_INFO "%s: buffer_size=%x period_size=%x\n", __FUNCTION__,
buffer_size, period_size);
printk(KERN_INFO "%s: params_periods=%u\n", __FUNCTION__,
params_periods(hw_params));
And it produces this output:
fsl_dma_hw_params: buffer_size=5dc0 period_size=5dc0
fsl_dma_hw_params: params_periods=4
Why am I getting the same value for buffer_size and period_size? buffer_size
should be four times period_size.
--
Timur Tabi
Linux kernel developer at Freescale
next reply other threads:[~2007-11-14 21:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-14 21:53 Timur Tabi [this message]
2007-11-14 21:57 ` params_buffer_size() and params_period_bytes() are returning the same value Timur Tabi
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=473B6E5D.3040303@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.