diff mbox

[7/7] ASoc: codec: sti enable fast io for regmap

Message ID 1477320177-30130-8-git-send-email-arnaud.pouliquen@st.com (mailing list archive)
State Accepted
Commit 7e235deb69dc7b1c4b5e1ac63a3157ef98ceeff3
Headers show

Commit Message

Arnaud POULIQUEN Oct. 24, 2016, 2:42 p.m. UTC
Some registers accesses are done in atomic context.
Enable fast io to use spinlock instead of mutex to protect access.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
---
 sound/soc/codecs/sti-sas.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/sound/soc/codecs/sti-sas.c b/sound/soc/codecs/sti-sas.c
index 21d087b..62c6187 100644
--- a/sound/soc/codecs/sti-sas.c
+++ b/sound/soc/codecs/sti-sas.c
@@ -317,7 +317,7 @@  static int sti_sas_prepare(struct snd_pcm_substream *substream,
 static const struct regmap_config stih407_sas_regmap = {
 	.reg_bits = 32,
 	.val_bits = 32,
-
+	.fast_io = true,
 	.max_register = STIH407_AUDIO_DAC_CTRL,
 	.reg_defaults = stih407_sas_reg_defaults,
 	.num_reg_defaults = ARRAY_SIZE(stih407_sas_reg_defaults),