Browse Source

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>
Bard Liao 10 years ago
parent
commit
a5fe58fd28
1 changed files with 1 additions and 1 deletions
  1. 1 1
      sound/soc/codecs/rt298.c

+ 1 - 1
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):
 	case VERB_CMD(AC_VERB_GET_EAPD_BTLENABLE, RT298_HP_OUT, 0):
 		return true;
 		return true;
 	default:
 	default:
-		return true;
+		return false;
 	}
 	}