ASoC: core: Add strobe control
authorKristoffer KARLSSON <kristoffer.karlsson@stericsson.com>
Fri, 20 Apr 2012 09:32:44 +0000 (11:32 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 23 Apr 2012 19:05:06 +0000 (20:05 +0100)
commitdd7b10b30c40dddb9750926d78cfe89c0cd8434d
tree84084ba083aa317576dd37d62070fd160c6e07de
parent4183eed288f31c3b9142476915e842f879f36b8e
ASoC: core: Add strobe control

Added support for a control that strobes a bit in
a register to high then back to low (or the inverse).

This is typically useful for hardware that requires
strobing a singe bit to trigger some functionality
and where exposing the bit in a normal single control
would require the user to first manually set then
again unset the bit again for the strobe to trigger.

Added convenience macro.

SOC_SINGLE_STROBE

Added accessor implementations.

snd_soc_get_strobe
snd_soc_put_strobe

Signed-off-by: Kristoffer KARLSSON <kristoffer.karlsson@stericsson.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
include/sound/soc.h
sound/soc/soc-core.c