Skip to contentSkip to conversation

ASoC: rt298: set register non-volatile by default

PATCH In review Bard Liao 2 participants 2 messages Oct 12, 2015

Subsystems (3)
lore
Share & tools
lore

Bard Liao

author
#0 lore raw

PATCH 1/1 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.

---
 sound/soc/codecs/rt298.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/rt298.c +1 -1
index 5a9aadb..56e5e1a 100644
@@ -128,7 +128,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;
 	}
 
 
Signature · 1 line
1.8.1.1.439.g50a6b54
maintainer
#1 lore raw

Applied "ASoC: rt298: set register non-volatile by default" to the asoc tree

The patch

ASoC: rt298: set register non-volatile by default

has been applied to the asoc tree at

git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark

Quoted 1 line

From a5fe58fd2836987387a6ee8854c529db7f5be650 Mon Sep 17 00:00:00 2001

From: Bard Liao <[email protected]>
Date: Mon, 12 Oct 2015 21:34:59 +0800
Subject: [PATCH] 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.

---
 sound/soc/codecs/rt298.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/rt298.c +1 -1
index 3c2f0f8..ff126a7 100644
@@ -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;
 	}
 
 
Signature · 1 line
2.5.0