Commit dd1b3d53 authored by Mark Brown's avatar Mark Brown

ASoC: Export snd_soc_update_bits_unlocked()

Allows custom controls to use it.
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
parent 3a7aaed7
...@@ -253,6 +253,9 @@ void snd_soc_jack_free_gpios(struct snd_soc_jack *jack, int count, ...@@ -253,6 +253,9 @@ void snd_soc_jack_free_gpios(struct snd_soc_jack *jack, int count,
/* codec register bit access */ /* codec register bit access */
int snd_soc_update_bits(struct snd_soc_codec *codec, unsigned short reg, int snd_soc_update_bits(struct snd_soc_codec *codec, unsigned short reg,
unsigned int mask, unsigned int value); unsigned int mask, unsigned int value);
int snd_soc_update_bits_locked(struct snd_soc_codec *codec,
unsigned short reg, unsigned int mask,
unsigned int value);
int snd_soc_test_bits(struct snd_soc_codec *codec, unsigned short reg, int snd_soc_test_bits(struct snd_soc_codec *codec, unsigned short reg,
unsigned int mask, unsigned int value); unsigned int mask, unsigned int value);
......
...@@ -1427,7 +1427,7 @@ EXPORT_SYMBOL_GPL(snd_soc_update_bits); ...@@ -1427,7 +1427,7 @@ EXPORT_SYMBOL_GPL(snd_soc_update_bits);
* *
* Returns 1 for change else 0. * Returns 1 for change else 0.
*/ */
static int snd_soc_update_bits_locked(struct snd_soc_codec *codec, int snd_soc_update_bits_locked(struct snd_soc_codec *codec,
unsigned short reg, unsigned int mask, unsigned short reg, unsigned int mask,
unsigned int value) unsigned int value)
{ {
...@@ -1439,6 +1439,7 @@ static int snd_soc_update_bits_locked(struct snd_soc_codec *codec, ...@@ -1439,6 +1439,7 @@ static int snd_soc_update_bits_locked(struct snd_soc_codec *codec,
return change; return change;
} }
EXPORT_SYMBOL_GPL(snd_soc_update_bits_locked);
/** /**
* snd_soc_test_bits - test register for change * snd_soc_test_bits - test register for change
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment