From: Takashi Iwai <tiwai@suse.de>
To: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Cc: alsa-devel@alsa-project.org, clemens@ladisch.de,
ffado-devel@lists.sf.net
Subject: Re: [RFC][PATCH 0/8] ALSA: dice: constrain PCM substreams to current sampling transfer frequency
Date: Fri, 20 Nov 2015 12:29:09 +0100 [thread overview]
Message-ID: <s5hegfk9aey.wl-tiwai@suse.de> (raw)
In-Reply-To: <564F01D0.20603@sakamocchi.jp>
On Fri, 20 Nov 2015 12:19:44 +0100,
Takashi Sakamoto wrote:
>
> On Nov 20 2015 18:25, Takashi Iwai wrote:
> >> As a result of applying this patchset, userspace applications cannot
> >> start PCM substreams at sampling rates except for current sampling
> >> transfer frequency. Instead, they gain stability to start PCM substreams
> >> and to probe Dice-based models.
> >
> > Please put this sort of information in the changelog (after some
> > digestion). It's important to know what you're changing by the patch,
> > but more importantly why you're changing it.
> >
> >> At a glance, it looks the backwards or the regressions.
> >
> > Well, it *is* a regression :)
> >
> > So, the question is why this driver cannot change the clock stably by
> > itself while other way works? Can't it be implemented in the driver
> > itself?
>
> The driver can do it with patch 06-08. The limitation comes from PCM
> rules. With patch 01-05, ALSA dice driver has just one PCM rule for
> rate/channels at current sampling transfer frequency.
>
>
> Dice framework gives no ways for drivers to get supported combination
> between rate/channels. We cannot change this design, of cource.
>
> Current ALSA dice driver manage to change the state of clock to generate
> the supported combinations. But this does not always work well with some
> technical reasons. Additionally, this is not preferrable for some users
> who set their configurations to actual device in advance because the
> state of clock is changed unexpectedly.
>
> This is a reason for patch 01-05.
Well, it's still not clear what you're changing. With this change,
what will be fixed, what will be broken and what will keep working at
all? Please explain them concisely.
It's pretty common that a single clock and setup is used for multiple
streams. Such a restriction is found on many drivers. What I don't
understand is what makes this so special.
In your original statement:
> As a result, userspace applications can request PCM substreams at current
> sampling transfer frequency. Therefore, when users want to start PCM
> substreams at different rate, they should set the rate in advance by the
> other ways (i.e. ffado-dbus-server/ffado-mixer).
So, an application cannot change the PCM rate other than the value
currently set by another tool. Is it correct?
thanks,
Takashi
next prev parent reply other threads:[~2015-11-20 11:29 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-15 9:25 [RFC][PATCH 0/8] ALSA: dice: constrain PCM substreams to current sampling transfer frequency Takashi Sakamoto
2015-11-15 9:25 ` [PATCH 1/8] ALSA: dice: limit " Takashi Sakamoto
2015-11-15 9:25 ` [PATCH 2/8] ALSA: dice: limit stream " Takashi Sakamoto
2015-11-15 9:25 ` [PATCH 3/8] ALSA: dice: add MIDI ports according to current number of MIDI substreams Takashi Sakamoto
2015-11-15 9:25 ` [PATCH 4/8] ALSA: dice: get the number of MBLA data channel at opening PCM substream Takashi Sakamoto
2015-11-15 9:25 ` [PATCH 5/8] ALSA: dice: purge generating channel cache Takashi Sakamoto
2015-11-20 0:15 ` Stefan Richter
2015-11-15 9:25 ` [PATCH 6/8] ALSA: dice: ensure phase lock before starting streaming Takashi Sakamoto
2015-11-15 9:25 ` [PATCH 7/8] ALSA: dice: expand timeout to wait for Dice notification Takashi Sakamoto
2015-11-15 9:25 ` [PATCH 8/8] ALSA: dice: wait for ensuring phase lock Takashi Sakamoto
2015-11-18 14:13 ` [RFC][PATCH 0/8] ALSA: dice: constrain PCM substreams to current sampling transfer frequency Takashi Iwai
2015-11-19 3:34 ` Takashi Sakamoto
2015-11-19 10:19 ` Takashi Iwai
2015-11-20 4:11 ` Takashi Sakamoto
2015-11-20 9:25 ` Takashi Iwai
2015-11-20 11:19 ` Takashi Sakamoto
2015-11-20 11:29 ` Takashi Iwai [this message]
2015-11-21 0:29 ` Takashi Sakamoto
2015-11-21 9:46 ` Takashi Iwai
2015-11-24 15:04 ` Takashi Sakamoto
2015-11-24 15:33 ` Takashi Iwai
2015-11-25 0:08 ` Takashi Sakamoto
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=s5hegfk9aey.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=clemens@ladisch.de \
--cc=ffado-devel@lists.sf.net \
--cc=o-takashi@sakamocchi.jp \
/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.