[alsa-devel] [PATCH 05/10] ASoC: twl6040: One workqueue should be enough
peter.ujfalusi at ti.com
Mon Sep 26 19:20:11 CEST 2011
On Mon, Sep 26, 2011 at 5:41 PM, Mark Brown
<broonie at opensource.wolfsonmicro.com> wrote:
> Do we even need specific workqueues at all or can we use the system
> workqueue? Looks OK though.
For the jack detection we might be OK with the system workqueue,
if we got delayed by few tens of ms it does not hurt that much (well
from earpiece/IHF to headset might take longer).
For the ramp code execution we should avoid any delay at all costs, since it can
have audible side effects.
In my past experience the system wq can cause latency, since we usually have
slow devices on it (GPS, proximity sensor, magnetometer, etc).
Reading from those usually takes considerable amount of time, and
we can end up with delayed execution of our ramp code.
As of it now, I would keep the separate wq, and revisit later after I can get
tests running on a 'full' device.
More information about the Alsa-devel