[RFC 0/2] ASoC: remove io_mutex

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Eero Nurkkala <ext-eero.nurkkala@xxxxxxxxx>

This RFC set addresses the existence of io_mutex.
A safer method is introduced - but it changes the
semantics quite a bit, as now all drivers calling
snd_soc_update_bits() will need to make sure the
codec mutex is taken.

snd_soc_test_bits() - function does not need to
take the io_mutex at all - all calls to it have
the codec mutex already taken.

Warning: Not even compile tested!

Possible drawback:

dapm_power_widgets() may hold the codec mutex for
a few ms, which may be too long; meanwhile,
calls to snd_soc_update_bits() are stalled.

Of course we wish optimal performance and maybe
the codec mutex should only be taken for such
registers that contain both volume and dapm bits...

Ideas, comments, all welcome.
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux