[alsa-devel] [PATCH] ASoC: rsnd: Protect register accesses with a spinlock instead of a mutex
Ben Dooks
ben.dooks at codethink.co.uk
Sun Jul 27 12:36:47 CEST 2014
On 23/07/14 22:19, Laurent Pinchart wrote:
> The hardware registers are accessed from atomic contexts (the
> rsnd_soc_dai_trigger function, for instance, is called with the PCM
> substream spinlock held). They thus can't be protected by a mutex.
>
> Protect regmap register accesses with a spinlock instead of a mutex by
> setting the fast_io flag.
I reported this ages ago.
I ended up removing regmap entirely, it just locks the machine
solid and provides no useful functionality for the driver.
--
Ben Dooks http://www.codethink.co.uk/
Senior Engineer Codethink - Providing Genius
More information about the Alsa-devel
mailing list