ASoC: tfa98xx: Update profile info properly
Smart PA profile info is not updated properly.
Fix it by returning proper profile value.
Change-Id: I75af9d7c1d379fb29067dea5c848fe06cd53108f
Signed-off-by: Dhanalakshmi Siddani <dsiddani@codeaurora.org>
diff --git a/sound/soc/codecs/tfa_init.c b/sound/soc/codecs/tfa_init.c
index 1ced553..e004b652 100644
--- a/sound/soc/codecs/tfa_init.c
+++ b/sound/soc/codecs/tfa_init.c
@@ -123,7 +123,7 @@
static int tfa_get_swprofile(struct tfa_device *tfa)
{
- return TFA_GET_BF(tfa, SWPROFIL) - 1;
+ return tfa->profile;
}
static int tfa_set_swvstep(struct tfa_device *tfa, unsigned short new_value)