[alsa-devel] [PATCH] alsa/soc: add locking to mpc5200-psc-ac97 driver

Grant Likely grant.likely at secretlab.ca
Tue Jun 30 18:53:26 CEST 2009

On Tue, Jun 30, 2009 at 2:59 AM, Mark
Brown<broonie at opensource.wolfsonmicro.com> wrote:
> On Mon, Jun 29, 2009 at 08:26:12PM -0400, Jon Smirl wrote:
>> Does your touchscreen driver use this mutex? Or was this mutex needed
>> just for the AC97 driver?
> It's in the register accesses so everything accessing the chip registers
> will use it.

The mutexes are needed.  The ac97 bus doesn't have any knowledge about
what codec(s) will be wired up to it so it must protect against
multiple access.  In my case both the wm9712 audio codec driver and
the wm9712 touchscreen driver perform register accesses.


Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.

More information about the Alsa-devel mailing list