From: Carlos Munoz <carlos@kenati.com>
To: Lee Revell <rlrevell@joe-job.com>
Cc: alsa-devel <alsa-devel@lists.sourceforge.net>
Subject: Re: snd_pcm_hw_params_get_period_size() returning 0
Date: Fri, 31 Mar 2006 18:20:42 -0800 [thread overview]
Message-ID: <442DE37A.9070405@kenati.com> (raw)
In-Reply-To: <1143856796.2885.4.camel@mindpipe>
Lee Revell wrote:
>On Fri, 2006-03-31 at 17:00 -0800, Carlos Munoz wrote:
>
>
>>Does
>>any one know why
>>snd_pcm_hw_params_get_period_size() would be returning 0 ? Is it
>>something the driver did/didn't do ?
>>
>>
>>
>
>Argh, please disregard last message, that's not how the hw_params
>callback works :-(
>
>Lee
>
>
>
Hi Lee,
I digged further and this is what I found.
snd_pcm_hw_params_get_period_size(...., int *val) does retrieve the
correct period size and updates val with it. However, val does not match
the address passed to it. I mean the caller of
snd_pcm_hw_params_get_period_size(.... 0x41becc) passes the address of
where the period size is to be stored as 0x41becc but
snd_pcm_hw_params_get_period_size() gets 0x7b83c0d8 and that's where it
puts the period size.
This is on the Renesas SH7343 processor. alsa-lib is a dynamic library.
Should I expect the variable address be the same ?
Thanks,
Carlos
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
next prev parent reply other threads:[~2006-04-01 2:20 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-01 1:00 snd_pcm_hw_params_get_period_size() returning 0 Carlos Munoz
2006-04-01 1:57 ` Lee Revell
2006-04-01 1:59 ` Lee Revell
2006-04-01 2:20 ` Carlos Munoz [this message]
2006-04-03 10:22 ` Takashi Iwai
2006-04-03 17:46 ` Carlos Munoz
2006-04-03 18:33 ` Takashi Iwai
2006-04-03 18:38 ` Jaroslav Kysela
2006-04-03 19:37 ` Carlos Munoz
2006-04-05 17:53 ` Carlos Munoz
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=442DE37A.9070405@kenati.com \
--to=carlos@kenati.com \
--cc=alsa-devel@lists.sourceforge.net \
--cc=rlrevell@joe-job.com \
/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.