summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorBard Liao <bardliao@realtek.com>2015-10-12 21:34:59 +0800
committerMark Brown <broonie@kernel.org>2015-10-12 18:02:03 +0100
commita5fe58fd2836987387a6ee8854c529db7f5be650 (patch)
tree7cc33cbcac007fa001f10821e3247c1f09f3938f /sound
parent6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f (diff)
downloadop-kernel-dev-a5fe58fd2836987387a6ee8854c529db7f5be650.zip
op-kernel-dev-a5fe58fd2836987387a6ee8854c529db7f5be650.tar.gz
ASoC: rt298: set register non-volatile by default
It is not necessary to set registers volatile. So, return false for default case of rt298_volatile_register. Signed-off-by: Bard Liao <bardliao@realtek.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/rt298.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/rt298.c b/sound/soc/codecs/rt298.c
index 3c2f0f8..ff126a7 100644
--- a/sound/soc/codecs/rt298.c
+++ b/sound/soc/codecs/rt298.c
@@ -129,7 +129,7 @@ static bool rt298_volatile_register(struct device *dev, unsigned int reg)
case VERB_CMD(AC_VERB_GET_EAPD_BTLENABLE, RT298_HP_OUT, 0):
return true;
default:
- return true;
+ return false;
}
OpenPOWER on IntegriCloud