From: Kai Vehmanen <kai.vehmanen@linux.intel.com>
To: sylvain.bertrand@gmail.com
Cc: alsa-devel@alsa-project.org
Subject: Re: sw_params for a direct-ed(dmix) hw pcm
Date: Thu, 26 Mar 2020 14:02:05 +0200 (EET) [thread overview]
Message-ID: <alpine.DEB.2.21.2003261350380.2957@eliteleevi.tm.intel.com> (raw)
In-Reply-To: <20200325174419.GA1224@freedom>
Hey,
On Wed, 25 Mar 2020, sylvain.bertrand@gmail.com wrote:
> On this issue, I am doing something fundamentaly wrong, but I don't see how to
> do it right.
>
> While configuring a pcm, I should not use sw_params if it is a "direct-ed"
> (direct::dmix) real hw pcm: in pcm_direct.c, snd_pcm_direct_sw_params
> function is empty and it seems coherent with the fact the real hw pcm is
> actually shared and was probably already configured.
how does the problem appear in your program?
Applications should just use the ALSA PCM API and not have any special
casing for different types of PCMs (unless the differences show up via the
public PCM API). If applications started doing plugin specifics, writing
and deploying new ALSA plugins would become much harder and kind of defeat
the whole purpose of the plugin API. In case of dmix, the
pcm.c:snd_pcm_sw_params() should do the right thing and your application
should get the cached values.
Br, Kai
next prev parent reply other threads:[~2020-03-26 12:03 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-21 15:53 monotonic raw setup seems buggy sylvain.bertrand
2020-03-25 17:44 ` sw_params for a direct-ed(dmix) hw pcm sylvain.bertrand
2020-03-26 12:02 ` Kai Vehmanen [this message]
2020-03-26 14:36 ` Jaroslav Kysela
2020-03-26 20:04 ` sylvain.bertrand
2020-03-27 8:08 ` Takashi Iwai
2020-03-27 9:40 ` Jaroslav Kysela
2020-03-28 18:26 ` sylvain.bertrand
2020-03-28 19:15 ` Pierre-Louis Bossart
2020-03-28 20:37 ` sylvain.bertrand
2020-03-28 21:34 ` Pierre-Louis Bossart
2020-03-28 22:20 ` sylvain.bertrand
2020-03-29 7:43 ` Takashi Iwai
2020-03-31 11:32 ` Takashi Iwai
2020-04-01 15:25 ` sylvain.bertrand
2020-04-01 15:59 ` Takashi Iwai
2020-04-01 20:21 ` sylvain.bertrand
2020-04-02 19:03 ` sylvain.bertrand
2020-04-06 13:49 ` sylvain.bertrand
2020-04-14 15:18 ` Takashi Iwai
2020-04-14 23:20 ` sylvain.bertrand
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=alpine.DEB.2.21.2003261350380.2957@eliteleevi.tm.intel.com \
--to=kai.vehmanen@linux.intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=sylvain.bertrand@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.