From: Clemens Ladisch <clemens@ladisch.de>
To: Raymond Yau <superquad.vortex2@gmail.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: snd_pcm_hw_params_free() immediately after snd_pcm_hw_params() ???
Date: Thu, 21 Jan 2010 11:18:50 +0100 [thread overview]
Message-ID: <4B582A0A.8030603@ladisch.de> (raw)
Raymond Yau wrote:
> Is there any flags in substream which can indicate snd_xxx_hw_params() was
> called at first time since snd_xxx_hw_params() were called many times
> during OSS emulation (probing the supported rates , channels , .... ) ?
There is no such flag. It is the responsibility of the driver to track
the resources it has allocated.
If a resource does not depend on the hardware parameters, it might be
a better idea to allocate/free it in the open/close callbacks.
Best regards,
Clemens
next reply other threads:[~2010-01-21 10:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-21 10:18 Clemens Ladisch [this message]
2010-01-24 3:30 ` snd_pcm_hw_params_free() immediately after snd_pcm_hw_params() ??? Raymond Yau
2010-01-24 10:29 ` Takashi Iwai
-- strict thread matches above, loose matches on Subject: below --
2010-01-21 4:32 Raymond Yau
2010-01-21 6:59 ` Takashi Iwai
2010-01-21 9:12 ` 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=4B582A0A.8030603@ladisch.de \
--to=clemens@ladisch.de \
--cc=alsa-devel@alsa-project.org \
--cc=superquad.vortex2@gmail.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.