From: Clemens Ladisch <clemens@ladisch.de>
To: Lars-Peter Clausen <lars@metafoo.de>
Cc: Ramesh Babu <ramesh.babu@linux.intel.com>,
alsa-devel@alsa-project.org, Takashi Iwai <tiwai@suse.de>,
Mark Brown <broonie@opensource.wolfsonmicro.com>,
Trent Piepho <tpiepho@gmail.com>, Liam Girdwood <lrg@ti.com>
Subject: Re: ASoC:Question rate constraint between the dais
Date: Sat, 17 Mar 2012 14:00:57 +0100 [thread overview]
Message-ID: <4F648B09.5090806@ladisch.de> (raw)
In-Reply-To: <4F639BCC.2050703@metafoo.de>
Lars-Peter Clausen wrote:
> On 03/16/2012 08:25 PM, Mark Brown wrote:
>> On Thu, Mar 15, 2012 at 05:28:13PM -0400, Trent Piepho wrote:
>>> There is a race when the constraints change dynamically. See the
>>> fsl_ssi.c driver and the sample size constraint in synchronous mode.
>>
>> This is just a limitation of the ALSA ABI - there's nothing we can do
>> about it without changing the userspace interface so we just have to
>> live with it and error out if an application ever manages to hit the
>> race and pick something incompatible with other active streams (note
>> that the symmetric rates support has a dev_warn() complaining about
>> hitting the race).
>
> I think the real problem with this is, that currently a userspace application
> will usually exit with an error when such a race occurs, while it should be
> possible to just restart the enumeration process and try with another format.
>
> So I'm wondering if we can make it easier for userspace to detect that the
> constraints have changed and it may retry with other parameters?
Devices that have such a restriction must be marked with
SNDRV_PCM_INFO_JOINT_DUPLEX. There is no indication that the race has
actually happened, so applications that care have to retry just in case.
Regards,
Clemens
next prev parent reply other threads:[~2012-03-17 13:01 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-15 9:53 ASoC:Question rate constraint between the dais Ramesh Babu
2012-03-15 17:53 ` Mark Brown
2012-03-15 21:28 ` Trent Piepho
2012-03-16 19:25 ` Mark Brown
2012-03-16 20:00 ` Lars-Peter Clausen
2012-03-17 11:41 ` Mark Brown
2012-03-17 13:00 ` Clemens Ladisch [this message]
[not found] ` <9DF50024A2F6A5439EBFE2E74F4E9198055254@BGSMSX101.gar.corp.intel.com>
2012-03-16 10:05 ` Omair Mohammed Abdullah
2012-03-16 19:22 ` Mark Brown
2012-03-16 22:01 ` Trent Piepho
2012-03-17 11:48 ` Mark Brown
2012-03-17 19:49 ` Trent Piepho
2012-03-17 20:31 ` Mark Brown
2012-03-18 6:22 ` Jassi Brar
2012-03-18 21:27 ` Mark Brown
2012-03-19 16:12 ` James Courtier-Dutton
2012-03-19 16:32 ` Mark Brown
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=4F648B09.5090806@ladisch.de \
--to=clemens@ladisch.de \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=lars@metafoo.de \
--cc=lrg@ti.com \
--cc=ramesh.babu@linux.intel.com \
--cc=tiwai@suse.de \
--cc=tpiepho@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.