ASoC: rt298: set register non-volatile by default
authorBard Liao <bardliao@realtek.com>
Mon, 12 Oct 2015 13:34:59 +0000 (21:34 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 12 Oct 2015 17:02:03 +0000 (18:02 +0100)
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>
sound/soc/codecs/rt298.c

index 3c2f0f8d6266e358a667aa376fea3d094829845a..ff126a7cee76ff9f164a7f6e3a86f78ef0993b15 100644 (file)
@@ -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;
        }